小编典典

重新部署后,JAX-WS Client无法连接(SymbolTable中的NullPointerException)

tomcat

当我们使用jax-ws客户端重新部署Web应用程序时,该客户端无法连接到Web服务。连接到服务器时,它将引发以下异常:

java.lang.NullPointerException: null
at com.ctc.wstx.util.SymbolTable.findSymbol(SymbolTable.java:385) ~[woodstox-core-asl-4.0.8.jar:4.0.8]
at com.ctc.wstx.sr.StreamScanner.parseLocalName(StreamScanner.java:1833) ~[woodstox-core-asl-4.0.8.jar:4.0.8]
at com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:2963) ~[woodstox-core-asl-4.0.8.jar:4.0.8]
at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2907) ~[woodstox-core-asl-4.0.8.jar:4.0.8]
at com.ctc.wstx.sr.BasicStreamReader.handleRootElem(BasicStreamReader.java:2049) ~[woodstox-core-asl-4.0.8.jar:4.0.8]
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2029) ~[woodstox-core-asl-4.0.8.jar:4.0.8]
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1100) ~[woodstox-core-asl-4.0.8.jar:4.0.8]
at com.sun.xml.internal.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:81) ~[na:1.7.0-ea]
at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:78) ~[na:1.7.0-ea]
at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:99) ~[na:1.7.0-ea]
at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:89) ~[na:1.7.0-ea]
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.hasWSDLDefinitions(RuntimeWSDLParser.java:231) ~[na:1.7.0-ea]
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:141) ~[na:1.7.0-ea]
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:120) ~[na:1.7.0-ea]
at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:256) ~[na:1.7.0-ea]
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:219) ~[na:1.7.0-ea]
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:167) ~[na:1.7.0-ea]
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:95) ~[na:1.7.0-ea]
at javax.xml.ws.Service.<init>(Service.java:77) ~[na:1.7.0-ea]

重新启动TomCat之后,客户端可以再次成功连接到服务器。(已通过JDK 6和JDK 7测试)


阅读 328

收藏
2020-06-16

共1个答案

小编典典

我们将使用spring-ws进行重新部署测试,而不会出现问题。

2020-06-16