jaxb
  1. jaxb
  2. JAXB-949

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.6
    • Fix Version/s: None
    • Component/s: runtime
    • Labels:
      None
    • Environment:

      Windows, SUN JDK

      Description

      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).

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Iaroslav Savytskyi
            Reporter:
            gprovost
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 1 hour
              1h
              Remaining:
              Remaining Estimate - 1 hour
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified