3 Replies Latest reply on Feb 17, 2014 5:55 AM by Tomaz Cerar

    NPE on JAXBAttachmentMarshaller.addSwaRefAttachment

    Frank Cornelis Apprentice

      I've found a weird bug. I've got two EARs. One of which contains JAXB 2.2.1 under its lib directory.

      If I first use some functionality from the EAR with JAXB, and afterwards I use the other EAR's functionality, which involves sending over SOAP using Swa, I get the following lovely exception:

      Caused by: java.lang.NullPointerException
          at org.apache.cxf.jaxb.attachment.JAXBAttachmentMarshaller.addSwaRefAttachment(JAXBAttachmentMarshaller.java:84)
          at com.sun.xml.bind.v2.runtime.SwaRefAdapter.marshal(SwaRefAdapter.java:84)