com.sun.xml.ws.streaming.XMLStreamReaderException:XML reader error:com.ctc.wstx.exc.WstxEOFException:prolog中的意外EOF

时间:2013-02-25 10:17:24

标签: java jax-ws

我使用本地wsdl文件中的wsimport生成了一个jax-ws Web服务客户端。每当我尝试调用服务时,我都会收到错误:com.ctc.wstx.exc.WstxEOFException:prolog中出现意外的EOF 这是错误堆栈;

Exception in thread "main" com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog

at [row,col,system-id]:[1,0,“http://dataimpact.co.ke/SmsNotificationManagerService/services/SmsNotificationManager”]     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:271)     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:99)     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:114)     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:104)     at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.hasWSDLDefinitions(RuntimeWSDLParser.java:246)     在com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:156)     在com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:135)     at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:275)     在com.sun.xml.ws.client.WSServiceDelegate。(WSServiceDelegate.java:238)     在com.sun.xml.ws.client.WSServiceDelegate。(WSServiceDelegate.java:186)     at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:111)     在javax.xml.ws.Service。(未知来源)     在org.csapi.wsdl.parlayx.sms.notification_manager.v2_3.service.SmsNotificationManagerService。(SmsNotificationManagerService.java:42)     在com.test.Test.main(Test.java:51) 引起:com.ctc.wstx.exc.WstxEOFException:prolog中意外的EOF  在[row,col,system-id]:[1,0,“http://dataimpact.co.ke/SmsNotificationManagerService/services/SmsNotificationManager”]     在com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)     在com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)     在com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)     在com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)     at com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:96)     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:80)     ......还有12个

我缺少一些东西,我无法弄清楚它是什么。任何帮助都将受到高度赞赏。

0 个答案:

没有答案