`
jiangzhenghua
  • 浏览: 601432 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

{http://xml.apache.org/axis/}stackTrace: java.lang

阅读更多

使用客户端访问WebService程序出现了一个问题,总是报如下错误,很多人都遇到过这个错误:

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.NullPointerException
 faultActor:
 faultNode:
 faultDetail:
 {http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException
 at java.util.Hashtable.put(Hashtable.java:396)
 at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
 at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
 at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
 at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
 at org.apache.axis.client.Call.invoke(Call.java:2553)
 at org.apache.axis.client.Call.invoke(Call.java:2248)
 at org.apache.axis.client.Call.invoke(Call.java:2171)
 at org.apache.axis.client.Call.invoke(Call.java:1691)
 at com.founder.cetv.webservice.WebServiceClient.invoke(WebServiceClient.java:48)
 at com.founder.cetv.bo.OssMgr.getUserGoodsNum(OssMgr.java:18)
 at org.apache.jsp.cetv.kk.ShopOwner_jsp._jspService(ShopOwner_jsp.java:78)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:595)


java.lang.NullPointerException
 at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
 at org.apache.axis.client.Call.invoke(Call.java:2251)
 at org.apache.axis.client.Call.invoke(Call.java:2171)
 at org.apache.axis.client.Call.invoke(Call.java:1691)
 at com.founder.cetv.webservice.WebServiceClient.invoke(WebServiceClient.java:48)
 at com.founder.cetv.bo.OssMgr.getUserGoodsNum(OssMgr.java:18)
 at org.apache.jsp.cetv.kk.ShopOwner_jsp._jspService(ShopOwner_jsp.java:78)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
 at java.util.Hashtable.put(Hashtable.java:396)
 at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
 at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
 at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
 at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
 at org.apache.axis.client.Call.invoke(Call.java:2553)
 at org.apache.axis.client.Call.invoke(Call.java:2248)
 ... 23 more
出错原因:jar包冲突导致,axis.jar更新到1.4即可解决问题

 

分享到:
评论

相关推荐

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

    {http://xml.apache.org/axis/}stackTrace: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.reflect.InvocationTarget...

    eclipse java axis2

    在下载和使用Axis2时,需要注意的是,从http://axis.apache.org/axis2/java/core/download.cgi这个链接可以获取最新版本的Axis2库。在本例中,我们得到了`axis2-1.6.3`版本,这包含了运行和开发Web服务所需的所有...

    抛出无法找到主类:org.apache.axis.wsdl.WSDL2Java

    抛出无法找到主类:org.apache.axis.wsdl.WSDL2Java(Throws Could not find main class: org.apache.axis.wsdl.WSDL2Java)。 添加本文的jar包压缩包解压出来的所有jar包到当前使用的java.exe 命令的lib目录下的ext...

    axis2.jar 解决 org.apache.axis2.util.JavaUtils.callStackToString问题

    <Call Stack = DEBUG_FRAME = org.apache.axis2.util.JavaUtils.callStackToString(JavaUtils.java:564) DEBUG_FRAME = org.apache.axis2.description.ParameterIncludeImpl.debugParameterAdd(ParameterIncludeImpl...

    org.xml.sax.SAXException: Invalid element

    NULL 博文链接:https://wilian.iteye.com/blog/1992365

    webservice 发布步骤

    java -cp %AXIS_CLASSPATH% org.apache.axis.client.AdminClient deploy.wsdd ``` - 如果部署成功,将会看到类似`<Admin>Done processing</Admin>`的消息提示。 3. **测试WebService**: - 启动Tomcat服务器。 ...

    wsdl2java_jar.zip

    `wsdl2java`工具是Apache Axis项目的一部分,它能够自动根据WSDL文件生成Java客户端存根类,这些类使得Java应用程序能够方便地与符合WS-I标准的Web服务进行交互。 【标签】"webservice"和"java"进一步确认了这个...

    ESB接入接出技术规范(超实用)

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <uWTrans0010 xmlns="http://esb.hxlife.com"> <in>InputData</in> </uWTrans0010> </...

    axis2的eclispe 插件

    axis2的eclispe插件分为2个,一个是帮助我们生成aar文件的,另一个是帮我们用wsdl文件生成stub代码的 ...http://www.apache.org/dyn/mirrors/mirrors.cgi/ws/axis2/tools/1_4_1/axis2-eclipse-codegen-wizard.zip

    axis2解决 org.apache.axis2.util.JavaUtils.callStackToString问题

    在开发基于Axis2的Web服务时,可能会遇到各种错误和异常,其中之一就是与`org.apache.axis2.util.JavaUtils.callStackToString`相关的问题。这个问题通常出现在Axis2尝试获取并打印堆栈跟踪信息时。 `...

    Tomcat_与_Apache_AXIS集成.pdf

    下载地址为:[http://archive.apache.org/dist/xml/xerces-j/](http://archive.apache.org/dist/xml/xerces-j/),需要下载`Xerces-J-bin.2.11.0.zip`。 6. **Xmlsec.jar**:这是一个用于加密和签名XML文档的安全库。...

    axis2c-src-1.6.0

    http://ws.apache.org/axis2/1_0/Axis2ArchitectureGuide.html for an overview on Axis2 architecture. Axis2/C supports both SOAP 1.1 and SOAP 1.2. The soap processing model is built on the AXIOM XML...

    java调用.net写的返回值为dataset的webservice(2)实例项目

    包内容太大,无法用一个压缩文件上传。放在另一个。 网上的调用例子太多了,有的要用cmd来解析webserive,有的没有包,有的代码报错。...GetWebService2 类实现原理:从webservice取值后保存为xml,然后读取,

    webservice :spring 3+cxf3.4服务方,AXIS1.4请示方调用

    java -Djava.ext.dirs=lib org.apache.axis.wsdl.WSDL2Java F:/businessLinkageService.xml ``` 以上步骤详细介绍了如何使用Spring 3 + CXF 3.4搭建WebService服务端,并通过Axis 1.4客户端进行调用的过程。通过...

    java.lang.runtimeexception unexpected subelement

    在Java编程中,`java.lang.RuntimeException` 是一个非检查异常(unchecked exception),它表示程序运行时出现的不正常情况。通常,这类异常是由于程序员的错误或代码逻辑的疏忽造成的,例如类型转换错误、空指针...

    经典入门:Axis2创建webservice.pdf

    【 Axis2 创建 Web Service 入门教程】 Apache Axis2 是一个功能强大的 Web ... - 下载插件:`http://www.apache.org/dyn/mirrors/mirrors.cgi/ws/axis2/tools/1_4_1/axis2-eclipse-service-archiver-wizard.zip` 和 `...

    COS——R.log

    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) at org.apache.axis.strategies....

    eclipse的Axis2插件

    axis2-eclipse-codegen-wizard.zip和axis2-eclipse-service-archiver-wizard.zip 解压后得到两个文件夹:Axis2_Codegen_Wizard_1.3.0和Axis2_Service_Archiver_1.3.0,拷贝至eclipse\dropins,重启eclipse即可。

    WebService之WSDL文件讲解

    例如,JAX-RPC提供商(如BEA WebLogic)可以通过API读取WSDL文档并生成相应的代理类(stub),IBM WebSphere、Microsoft .NET 和 Apache Axis 等也有类似的工具来生成客户端和服务端所需的代码。 #### 二、WSDL的...

Global site tag (gtag.js) - Google Analytics