关于axis2

浩瀚天堂 2014-11-07 12:17:20
我运行一个axis2的程序,报

Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The type SendSmsServiceStub.SendSms8 must implement the inherited abstract method ADBBean.serialize(QName, XMLStreamWriter)
at cn.com.chinatelecom.www.wsdl.ctcc.sms.send.v2_1.service.SendSmsServiceStub$SendSms8.serialize(SendSmsServiceStub.java:9128)
at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:691)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:965)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:283)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:245)
at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:193)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:79)
at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:557)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:438)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at cn.com.chinatelecom.www.wsdl.ctcc.sms.send.v2_1.service.SendSmsServiceStub.sendSms(SendSmsServiceStub.java:275)
at TestSendSms.main(TestSendSms.java:100)
网上说报(3),The type CreateResponse must implement the inherited abstract method ADBBean.serialize(QName, OMFactory, 时 这个问题是由于产生java代码的Axis2和Axis2 runtime 版本不匹配而导致的,具体说来,Axis2插件中用的是axis2-adb-1.6.0.jar,在这个版本中ADBDataSource是一个实体类。而在java build path中引入的jar包为axis2-adb-1.5.4.jar,在这个版本中ADBDataSource是一个抽象类。解决方法:统一为 axis2-adb-1.6.0.jar
但我换了包还是不行,我用 axis2-adb-1.6.0.jar包报上页面那个错,换成axis2-adb-1.5.4.jar包又报下面这个错
cn.com.chinatelecom.www.wsdl.ctcc.sms.send.v2_1.service.SendSmsServiceStub$SendSms8@ed0338
ServiceException:
SVC0901 : CP/SP authenticate access failed:Authentication FailedThe Sp IP address is Wrong, the source ip is218.202.220.14
cn.com.chinatelecom.www.wsdl.ctcc.sms.send.v2_1.service.ServiceException: ServiceException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at cn.com.chinatelecom.www.wsdl.ctcc.sms.send.v2_1.service.SendSmsServiceStub.sendSms(SendSmsServiceStub.java:297)
at TestSendSms.main(TestSendSms.java:100)
这是怎么回事?纠结啊!
...全文
1142 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
紫舞玥汐 2015-08-20
  • 打赏
  • 举报
回复
同问同问,有人解决这个问题了么?
lovewff 2015-02-12
  • 打赏
  • 举报
回复
碰到同样的问题 在线等
wangwei208 2015-01-31
  • 打赏
  • 举报
回复
楼上的 你这个问题解决了吗
lyl_zsu 2014-11-21
  • 打赏
  • 举报
回复
楼主,问题解决没有,我也碰到这个问题 SVC0901 : CP/SP authenticate access failed:Authentication FailedThe Sp IP address is Wrong, the source ip isXXXXXXXXX

50,550

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧