`
terry0501
  • 浏览: 313711 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExcep

    博客分类:
  • Axis
 
阅读更多

这个错误困扰了我短短嘘嘘长达两个星期,还不睡不好,最后发现原来是装weblogic的时候没有选jdk,默认的和我工程使用的不一样,郁闷啊,希望能帮到遇到类似朋友的问题。

AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

faultSubcode:

 faultString: java.lang.NullPointerException

faultActor:

 faultNode:

 faultDetail:

      {http://xml.apache.org/axis/}hostname:GAOHAI1

 

java.lang.NullPointerException

      at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

      at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

      at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

      at weblogic.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585)

      at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:898)

      at weblogic.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:644)

      at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1008)

      at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)

      at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)

      at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)

      at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)

      at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)

      at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)

      at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)

      at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152)

      at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)

      at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

      at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

      at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

      at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

      at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

      at org.apache.axis.client.Call.invoke(Call.java:2767)

      at org.apache.axis.client.Call.invoke(Call.java:2443)

      at org.apache.axis.client.Call.invoke(Call.java:2366)

      at org.apache.axis.client.Call.invoke(Call.java:1812)

      at com.wep.ifw.service.AccountAssociationServiceSoapBindingStub.getAccountDetails(AccountAssociationServiceSoapBindingStub.java:197)

      at junit.wise.AccountServiceTest.testGetAccountDetails(AccountServiceTest.java:57)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at junit.framework.TestCase.runTest(TestCase.java:154)

      at junit.framework.TestCase.runBare(TestCase.java:127)

      at junit.framework.TestResult$1.protect(TestResult.java:106)

      at junit.framework.TestResult.runProtected(TestResult.java:124)

      at junit.framework.TestResult.run(TestResult.java:109)

      at junit.framework.TestCase.run(TestCase.java:118)

      at junit.framework.TestSuite.runTest(TestSuite.java:208)

      at junit.framework.TestSuite.run(TestSuite.java:203)

      at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)

      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

 

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

分享到:
评论

相关推荐

    webservice启动没有问题,通过自动生成的客户端报错

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.reflect.InvocationTargetException faultActor: faultNode: faultDetail: {...

    AXIS2简单例子

    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://example.com/helloworld" parts="parameters"/> </input> <soap:body use="encoded" encodingStyle=...

    axis example.doc

    String requestPayload = "<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\">\n" + " <soap:Header/>\n" + " <soap:Body>\n" + " <RevokeCertRequest>\n" + " <Issuer>ABC</Issuer>\n" ...

    SOAP客户端用例

    SOAP(Simple Object Access Protocol)是一种基于XML的网络通信协议,常用于Web服务的交互。SOAP客户端是使用SOAP协议与远程Web服务进行通信的应用程序。在本案例中,我们将探讨如何创建和使用SOAP客户端,特别是在...

    java.lang.runtimeexception unexpected subelement

    当你尝试解析一个XML文档,例如使用DOM(Document Object Model)解析器,如果XML文档中的某个元素不符合预期的结构,或者解析器在预期的元素之外找到了其他元素,就会抛出“Unexpected Subelement”异常。...

    axis开发webservices.doc

    import org.apache.axis2.AxisFault; import org.apache.axis2.client.Options; import org.apache.axis2.client.ServiceClient; import org.apache.axis2.context.ConfigurationContext; import org.apache....

    java-webservice-axis2简单开发实例.doc

    Axis2支持通过两种方式注册服务:一是将Java类转换为`.jws`文件,二是通过修改`server-config.xml`配置文件。这里推荐第二种方式,因为它更灵活且易于维护。 在`WEB-INF`目录下创建或修改`server-config.xml`,将...

    Axis使用Stub方式开发Webservice只要看这个

    throw AxisFault.makeFault(e); } } } ``` 注意:在部署文件中需要配置`LogHandler`,例如将其添加到`<service>`元素内。 ##### 4.4 部署服务 最后,我们需要使用`AdminClient`工具来部署服务。运行以下命令: `...

    axis2 InvocationTargetException

    Apache Axis2是一个流行的开源Web服务引擎,用于处理SOAP消息和构建Web服务。它提供了高度模块化和可扩展的架构,使得开发和部署Web服务变得更加便捷。当开发者遇到"InvocationTargetException"时,这通常是由于服务...

    Axis2在eclipse中搭建

    import org.apache.axis2.AxisFault; import org.apache.axis2.addressing.EndpointReference; import org.apache.axis2.client.Options; import org.apache.axis2.rpc.client.RPCServiceClient; public class ...

    addressing-1.5.5.jar

    axis2生成java客户端代码用到解决异常Exception in thread "main" org.apache.axis2.AxisFault: Must Understand check failed for header http://www.w3.org/2005/08/addressing : Action

    webservice

    import org.apache.axis2.AxisFault; import org.apache.axis2.addressing.EndpointReference; import org.apache.axis2.client.Options; public class WebServiceAxis2 { private static RPCServiceClient ...

    出现java.util.ConcurrentModificationException 问题及解决办法

    在Java编程中,`java.util.ConcurrentModificationException` 是一个常见的运行时异常,通常发生在尝试并发修改集合时。这个异常的产生是由于集合类(如HashMap)的非线程安全特性,当你在一个线程中使用迭代器遍历...

    axis2 webservice开发总结文档

    import org.apache.axis2.AxisFault; import org.apache.axis2.addressing.EndpointReference; import org.apache.axis2.client.Options; import org.apache.axis2.rpc.client.RPCServiceClient; public class...

    axis2常见异常总结

    如果我们在使用 Axis2 时抛出了 org.apache.axis2.AxisFault: The input stream for an incoming message is null 异常,就说明 services.xml 中没有加入 scope="transportsession"。解决方法是将 services.xml 配置...

    Java动态调用webService,axis2动态调用webService

    import org.apache.axis2.AxisFault; import org.apache.axis2.client.ServiceClient; import org.apache.axis2.context.ConfigurationContext; import org.apache.axis2.description.AxisService; public class ...

    java调用WebService实例

    WebService是一种基于XML的网络服务,它提供了标准的接口定义(WSDL,Web Services Description Language)和消息交换协议(SOAP,Simple Object Access Protocol)。通过WebService,不同的应用系统,无论它们运行...

    通向架构师的道路(第十天)之Axis2_Web_Service(一).

    import org.apache.axis2.AxisFault; import javax.xml.stream.XMLStreamException; public class HelloWorld { public OMElement sayHello(OMElement element) throws XMLStreamException { element.build(); /...

    webservice客户端以及服务端

    import org.apache.axis2.AxisFault; import org.apache.axis2.client.ServiceClient; import org.apache.axis2.context.ConfigurationContext; import org.apache.axis2.context.ConfigurationContextFactory; ...

    axis生成webservice服务端和客户端详细说明及实例

    import org.apache.axis2.AxisFault; import HelloWorldServiceStub.HelloWorld; public class HelloWorldClient { public static void main(String[] args) { try { HelloWorld service = new ...

Global site tag (gtag.js) - Google Analytics