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

Sun JAXB Accepts Message Despite Failure During Parsing

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • EAP 5.0.1.CR1
    • EAP 5.0.0
    • Web Services
    • None
    • Release Notes

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-asoldano Alessio Soldano
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: