问题描述
java.lang.NullPointerExceptionatcom.sun.xml.internal.ws.model.RuntimeModeler.processRpcMethod(RuntimeModeler.java:904)atcom.sun.xml.internal.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:574)atcom.sun.xml.internal.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:351)atcom.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:231)atcom.sun.xml.internal.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:672)atcom.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:660)atcom.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:329)atcom.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:312)atcom.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:294)atjavax.xml.ws.Service.getPort(Service.java:119)atcom.zip.service.ZipDataService.getZipDataServicePort(ZipDataService.java:73)atTest.News.main(News.java:27)
解决方案
解决方案二:
看你的atcom.zip.service.ZipDataService.getZipDataServicePort(ZipDataService.java:73)
解决方案三:
@WebEndpoint(name="zipDataServicePort")publicZipDatagetZipDataServicePort(){returnsuper.getPort(newQName("http://service.zip.com","zipDataServicePort"),ZipData.class);}
解决方案四:
我使用的是自定义的实体类,没有用webservice生成的实体类
解决方案五:
getZipDataServicePort()这个方法有问题
解决方案六:
我知道那个方法有问题呀,不知道怎么改