[JIRA] Created: (JAXB-949) NullPointerException: com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleEvent(UnmarshallerImpl.java:534) when using MTOM

  • From: "gprovost (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Created: (JAXB-949) NullPointerException: com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleEvent(UnmarshallerImpl.java:534) when using MTOM
  • Date: Fri, 1 Mar 2013 08:20:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated

NullPointerException: 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleEvent(UnmarshallerImpl.java:534)
 when using MTOM
--------------------------------------------------------------------------------------------------------------------------------------

                 Key: JAXB-949
                 URL: http://java.net/jira/browse/JAXB-949
             Project: jaxb
          Issue Type: Bug
          Components: runtime
    Affects Versions: 2.2.6
         Environment: Windows, SUN JDK
            Reporter: gprovost
            Assignee: Iaroslav Savytskyi
            Priority: Minor


Send a SOAP request with Attachement(MTOM) that contains an invalid href.

--> NullPointerException: 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleEvent(UnmarshallerImpl.java:534).

The issue is located in the MTOMDecorator (startElement)

            DataHandler attachment = au.getAttachmentAsDataHandler(href);
            if(attachment==null) {
                // report an error and ignore
                parent.getEventHandler().handleEvent(null);
                // TODO
            }

parent.getEventHandler().handleEvent(null) leads to the NullPointerException.

Solution : create an event that specifies the exact reason (invalid href 
value).



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Created: (JAXB-949) NullPointerException: com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleEvent(UnmarshallerImpl.java:534) when using MTOM

gprovost (JIRA) 03/01/2013
Terms of Use; Privacy Policy; Copyright ©2013-2017 (revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close