Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-307

NPE when unmarshalling null xsd:base64Binary, xsd:hexBinary byte array

XMLWordPrintable

      $ ant -Dtest=org.jboss.test.webservice.marshalltest.MarshallDocLiteralTestCase one-test

      <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
      <env:Header/>
      <env:Body>
      <ns1:echoBase64Binary xmlns:ns1='http://org.jboss.webservice/marshalltest-doclit/types' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
      <arrayOfbyte_1 xsi:nil='1'/>
      </ns1:echoBase64Binary>
      </env:Body>
      </env:Envelope>

      java.lang.NullPointerException
      at org.jboss.xml.binding.sunday.unmarshalling.impl.runtime.RtUtil.set(RtUtil.java:105)
      at org.jboss.xml.binding.sunday.unmarshalling.impl.runtime.RtElementHandler.setParent(RtElementHandler.java:742)
      at org.jboss.xml.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:152)
      at org.jboss.xml.binding.parser.xni.XniJBossXBParser$DocumentParser.endElement(XniJBossXBParser.java:379)
      at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.jboss.xml.binding.parser.xni.XniJBossXBParser.parse(XniJBossXBParser.java:194)
      at org.jboss.xml.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:112)
      at org.jboss.ws.jaxb.JAXBUnmarshallerImpl.unmarshal(JAXBUnmarshallerImpl.java:67)

              tdiesler@redhat.com Thomas Diesler
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: