线程" main"中的例外情况javax.xml.ws.WebServiceException:java.lang.NullPointerException

时间:2017-06-09 09:52:57

标签: java web-services nullpointerexception wsdl

我试图执行应该使用Main方法访问webservice的程序,我得到以下错误,我在独立类上工作,而不是在任何服务器上,

线程中的异常" main" javax.xml.ws.WebServiceException:java.lang.NullPointerException     在com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:194)     在com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:93)     在com.sun.xml.ws.api.pipe.Fiber .__ doRun(Fiber.java:598)     在com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)     在com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)     在com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)     在com.sun.xml.ws.client.Stub.process(Stub.java:222)     在com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)     at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)     at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)     在com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)     at com.sun.proxy。$ Proxy28.eccBPNoSyncSI(Unknown Source)     在za.co.interfile.cf.BPDetailsRoe.getBPDetails(BPDetailsRoe.java:71)     在za.co.interfile.cf.BPDetailsRoe.getBPNumber(BPDetailsRoe.java:38)     在za.co.interfile.cf.BPDetailsRoe.main(BPDetailsRoe.java:145)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     在com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) 引起:java.lang.NullPointerException     在com.sun.xml.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:202)     在com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:177)     ......还有19个

我能够使用SOAP UI访问web服务,或者当我部署到glassfish时,现在我试图执行将执行webservice的独立程序,我已经搜索了类似的问题,他们大多数都是在部署时讨论的到某个服务器,我没有为这个问题部署到任何服务器,

0 个答案:

没有答案