Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-2121

Sun JAXB Accepts Message Despite Failure During Parsing

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.GA_CP07
    • 4.3.0.GA_CP04, 4.3.0.GA_CP05
    • Web Services
    • None
    • Release Notes

      The Sun JAXB message silently drops errors during parsing.

      This is related to the following issue: -

      https://jira.jboss.org/jira/browse/JBPAPP-2114

      The fix for JBPAPP-2114 corrects the parsing of the int '1-1' and results in a java.lang.NumberFormatException being thrown when this is parsed, JAXB subsequently drops this exception leaving the field set to it's default value of '0'.

      We are using JAXB to use the default event handler which is supposed to reject errors and fatal errors: -

      http://java.sun.com/javaee/5/docs/api/javax/xml/bind/Unmarshaller.html#setEventHandler%28javax.xml.bind.ValidationEventHandler%29

      However JAXB is only stopping on fatal errors which is why this is not being picked.

            pskopek@redhat.com Peter Skopek
            darran.lofthouse@redhat.com Darran Lofthouse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: