(急!急!急!)Java使用axis2调用一个.net 的webservice,在本机和测试服务器上面都可以使用,转移到正式环境就不能使用了,报错如下:
java.lang.reflect.InvocationTargetException
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:585)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:229)
at ims.common.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:34)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
.......................................(字数限制,这里滤去)
Caused by: java.lang.NoSuchMethodError: doWriteMTOM
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:151)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at ims.sys.service.asmx.GridMapServiceStub.BssorgToGIS(GridMapServiceStub.java:544)
各位大侠急救呀!!
哦,测试环境是使用的windows 环境weblogic9.2,JDK为weblogic自带
正式环境是集群liunx系统,weblogic9.2,JDK为weblogic自带
...的webservice,报错java.lang.NoSuchMethodError: doWriteMTOM_百度知...
1、命名空间,在设置调用action的时候指定action的命名空间,具体可以看wsdl文件中的声明。setOperationName(new QName("http:\/\/tempuri.org\/HelloWorld","HelloWorld"))2、http协议版本不同造成的,axis2在做http传输时采用的chunked模式,而.net的webserver不支持axis中使用的是HTTP\/1.0协议,而.NET和...