使用Axis2从wsdl生成jar,并在Java应用程序中使用该服务。 生成的请求在soap UI中进行了测试,并给出了响应。但是在通过Web应用程序访问时抛出错误。...
下面是日志跟踪:
java.lang.Throwable: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at atg.servlet.DynamoServlet.service(DynamoServlet.java:152) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:253) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2452) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:191) [_DPS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:178) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:512) [_DPS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:232) [_DPS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:464) [_DPS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:491) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:298) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:392) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:113) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.SecurityServlet.service(SecurityServlet.java:227) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:445) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1294) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:963) [_DAS_slib_sclasses.jar:?]
at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:272) [_DAS_slib_sclasses.jar:?]
at atg.filter.dspjsp.PageFilter.innerDoFilter(PageFilter.java:348) [_DAS_slib_sclasses.jar:?]
at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:206) [_DAS_slib_sclasses.jar:?]
at atg.droplet.EfiPageFilter.doFilter(EfiPageFilter.java:52) [_XXX_slib_sclasses/:?]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3701) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3667) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326) [com.oracle.weblogic.security.subject.jar:12.2.1.3]
at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197) [com.oracle.weblogic.security.subject.jar:12.2.1.3]
at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2443) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2291) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2269) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1705) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1665) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:272) [com.oracle.weblogic.servlet.jar:12.2.1.3]
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352) [com.bea.core.utils.full.jar:12.2.1.3]
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337) [com.bea.core.utils.full.jar:12.2.1.3]
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57) [com.oracle.weblogic.work.jar:12.2.1.3]
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41) [com.bea.core.weblogic.workmanager.jar:12.2.1.3]
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644) [com.bea.core.weblogic.workmanager.jar:12.2.1.3]
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415) [com.bea.core.weblogic.workmanager.jar:12.2.1.3]
at weblogic.work.ExecuteThread.run(ExecuteThread.java:355) [com.bea.core.weblogic.workmanager.jar:12.2.1.3]
Caused by: org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:122) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:66) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:347) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:414) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
... 62 more
Caused by: org.apache.axiom.om.DeferredParsingException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681) ~[_efiliale_slib_saxiom-api-1.2.20.jar:1.2.20]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:184) ~[_efiliale_slib_saxiom-api-1.2.20.jar:1.2.20]
at org.apache.axiom.core.CoreParentNodeSupport.ajc$interMethod$org_apache_axiom_core_CoreParentNodeSupport$org_apache_axiom_core_CoreParentNode$buildNext(CoreParentNodeSupport.aj:96) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.om.impl.llom.OMDocumentImpl.buildNext(OMDocumentImpl.java:1) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.core.CoreParentNodeSupport.ajc$interMethodDispatch1$org_apache_axiom_core_CoreParentNodeSupport$org_apache_axiom_core_CoreParentNode$buildNext(CoreParentNodeSupport.aj) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.core.CoreParentNodeSupport.ajc$interMethod$org_apache_axiom_core_CoreParentNodeSupport$org_apache_axiom_core_CoreParentNode$coreGetFirstChild(CoreParentNodeSupport.aj:113) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.om.impl.llom.OMDocumentImpl.coreGetFirstChild(OMDocumentImpl.java:1) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.core.CoreParentNodeSupport.ajc$interMethodDispatch1$org_apache_axiom_core_CoreParentNodeSupport$org_apache_axiom_core_CoreParentNode$coreGetFirstChild(CoreParentNodeSupport.aj) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.core.CoreDocumentSupport.ajc$interMethod$org_apache_axiom_core_CoreDocumentSupport$org_apache_axiom_core_CoreDocument$coreGetDocumentElement(CoreDocumentSupport.aj:42) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.om.impl.llom.OMDocumentImpl.coreGetDocumentElement(OMDocumentImpl.java:1) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.om.impl.common.AxiomDocumentSupport.ajc$interMethod$org_apache_axiom_om_impl_common_AxiomDocumentSupport$org_apache_axiom_om_impl_intf_AxiomDocument$getOMDocumentElement(AxiomDocumentSupport.aj:32) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:1) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:557) ~[_efiliale_slib_saxiom-api-1.2.20.jar:1.2.20]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:553) ~[_efiliale_slib_saxiom-api-1.2.20.jar:1.2.20]
at org.apache.axis2.transport.TransportUtils.createDefaultDocumentElement(TransportUtils.java:230) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:207) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:144) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:107) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:66) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:347) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:414) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
... 62 more
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:689) ~[com.fasterxml.woodstox.woodstox-core.jar:5.0.2]
at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2213) ~[com.fasterxml.woodstox.woodstox-core.jar:5.0.2]
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2119) ~[com.fasterxml.woodstox.woodstox-core.jar:5.0.2]
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1173) ~[com.fasterxml.woodstox.woodstox-core.jar:5.0.2]
at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225) ~[_efiliale_slib_saxiom-api-1.2.20.jar:1.2.20]
at org.apache.axiom.util.stax.dialect.DisallowDoctypeDeclStreamReaderWrapper.next(DisallowDoctypeDeclStreamReaderWrapper.java:34) ~[_efiliale_slib_saxiom-api-1.2.20.jar:1.2.20]
at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225) ~[_efiliale_slib_saxiom-api-1.2.20.jar:1.2.20]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:666) ~[_efiliale_slib_saxiom-api-1.2.20.jar:1.2.20]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:184) ~[_efiliale_slib_saxiom-api-1.2.20.jar:1.2.20]
at org.apache.axiom.core.CoreParentNodeSupport.ajc$interMethod$org_apache_axiom_core_CoreParentNodeSupport$org_apache_axiom_core_CoreParentNode$buildNext(CoreParentNodeSupport.aj:96) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.om.impl.llom.OMDocumentImpl.buildNext(OMDocumentImpl.java:1) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.core.CoreParentNodeSupport.ajc$interMethodDispatch1$org_apache_axiom_core_CoreParentNodeSupport$org_apache_axiom_core_CoreParentNode$buildNext(CoreParentNodeSupport.aj) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.core.CoreParentNodeSupport.ajc$interMethod$org_apache_axiom_core_CoreParentNodeSupport$org_apache_axiom_core_CoreParentNode$coreGetFirstChild(CoreParentNodeSupport.aj:113) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.om.impl.llom.OMDocumentImpl.coreGetFirstChild(OMDocumentImpl.java:1) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.core.CoreParentNodeSupport.ajc$interMethodDispatch1$org_apache_axiom_core_CoreParentNodeSupport$org_apache_axiom_core_CoreParentNode$coreGetFirstChild(CoreParentNodeSupport.aj) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.core.CoreDocumentSupport.ajc$interMethod$org_apache_axiom_core_CoreDocumentSupport$org_apache_axiom_core_CoreDocument$coreGetDocumentElement(CoreDocumentSupport.aj:42) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.om.impl.llom.OMDocumentImpl.coreGetDocumentElement(OMDocumentImpl.java:1) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.om.impl.common.AxiomDocumentSupport.ajc$interMethod$org_apache_axiom_om_impl_common_AxiomDocumentSupport$org_apache_axiom_om_impl_intf_AxiomDocument$getOMDocumentElement(AxiomDocumentSupport.aj:32) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:1) ~[_efiliale_slib_saxiom-impl-1.2.20.jar:?]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:557) ~[_efiliale_slib_saxiom-api-1.2.20.jar:1.2.20]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:553) ~[_efiliale_slib_saxiom-api-1.2.20.jar:1.2.20]
at org.apache.axis2.transport.TransportUtils.createDefaultDocumentElement(TransportUtils.java:230) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:207) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:144) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:107) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:66) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:347) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:414) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150) ~[_efiliale_slib_saxis2-kernel-1.7.7.jar:1.7.7]
当我使用肥皂测试服务并获得响应时,响应不为空。
让我知道我是否想念东西