-
Bug
-
Resolution: Fixed
-
P2
-
6
-
6.0
-
generic
-
generic
Reported by an user of JAX-WS as follows. NPE inside JAXP when JAX-WS
is run on Mustang.
Note that the said code is working fine when JAX-WS is tested with Tiger.
So I suspect:
1. an integration issue in JAXP, or
2. StAX RI in user land refers to an com.sun.org.apache class, which belongs
to rt.jar, and version mismatch between them (only possible if StAX is NOT in Mustang b46)
3. JAX-WS integration issue
My version of XMLNSDocumentScannerImpl.reset doesn't match with what the stack trace
suggests, so I can't diagnose this problem better than this. As a result, I don't even know
who this problem belongs to. Therefore, I'll tentatively file this for JAXP, just because
the top of the stack trace is from JAXP.
Quoting e-mail:
---------------------------------------------
On the other hand, wsimport with a simple WSDL causes the following
error:
error: java.lang.NullPointerException
java.lang.NullPointerException
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.rese
t(XMLNSDocumentScannerImpl.java:133)
at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.reset(XML
StreamReaderImpl.java:230)
at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.init(XMLS
treamReaderImpl.java:203)
at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.<init>(XM
LStreamReaderImpl.java:162)
at
com.sun.xml.stream.XMLInputFactoryImpl.getXMLStreamReaderImpl(XMLInpu
tFactoryImpl.java:234)
at
com.sun.xml.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInput
FactoryImpl.java:133)
at com.sun.xml.ws.streaming.StAXReader.<init>
(StAXReader.java:78)
at
com.sun.xml.ws.streaming.XMLReaderFactoryImpl.createXMLReader(XMLRead
erFactoryImpl.java:41)
at
com.sun.xml.ws.streaming.XMLReaderFactoryImpl.createXMLReader(XMLRead
erFactoryImpl.java:37)
at
com.sun.xml.ws.streaming.XMLReaderFactoryImpl.createXMLReader(XMLRead
erFactoryImpl.java:29)
at
com.sun.tools.ws.processor.config.parser.Reader.validateInput(Reader.
java:67)
at com.sun.tools.ws.processor.config.parser.Reader.parse
(Reader.java:48)
at com.sun.tools.ws.wscompile.CompileTool.createConfiguration
(CompileToo
l.java:510)
at com.sun.tools.ws.wscompile.CompileTool.run
(CompileTool.java:269)
at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:43)
at com.sun.tools.ws.WsImport.main(WsImport.java:21)
is run on Mustang.
Note that the said code is working fine when JAX-WS is tested with Tiger.
So I suspect:
1. an integration issue in JAXP, or
2. StAX RI in user land refers to an com.sun.org.apache class, which belongs
to rt.jar, and version mismatch between them (only possible if StAX is NOT in Mustang b46)
3. JAX-WS integration issue
My version of XMLNSDocumentScannerImpl.reset doesn't match with what the stack trace
suggests, so I can't diagnose this problem better than this. As a result, I don't even know
who this problem belongs to. Therefore, I'll tentatively file this for JAXP, just because
the top of the stack trace is from JAXP.
Quoting e-mail:
---------------------------------------------
On the other hand, wsimport with a simple WSDL causes the following
error:
error: java.lang.NullPointerException
java.lang.NullPointerException
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.rese
t(XMLNSDocumentScannerImpl.java:133)
at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.reset(XML
StreamReaderImpl.java:230)
at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.init(XMLS
treamReaderImpl.java:203)
at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.<init>(XM
LStreamReaderImpl.java:162)
at
com.sun.xml.stream.XMLInputFactoryImpl.getXMLStreamReaderImpl(XMLInpu
tFactoryImpl.java:234)
at
com.sun.xml.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInput
FactoryImpl.java:133)
at com.sun.xml.ws.streaming.StAXReader.<init>
(StAXReader.java:78)
at
com.sun.xml.ws.streaming.XMLReaderFactoryImpl.createXMLReader(XMLRead
erFactoryImpl.java:41)
at
com.sun.xml.ws.streaming.XMLReaderFactoryImpl.createXMLReader(XMLRead
erFactoryImpl.java:37)
at
com.sun.xml.ws.streaming.XMLReaderFactoryImpl.createXMLReader(XMLRead
erFactoryImpl.java:29)
at
com.sun.tools.ws.processor.config.parser.Reader.validateInput(Reader.
java:67)
at com.sun.tools.ws.processor.config.parser.Reader.parse
(Reader.java:48)
at com.sun.tools.ws.wscompile.CompileTool.createConfiguration
(CompileToo
l.java:510)
at com.sun.tools.ws.wscompile.CompileTool.run
(CompileTool.java:269)
at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:43)
at com.sun.tools.ws.WsImport.main(WsImport.java:21)