Could not invoke service.. Nested exception is ... Couldn't send message.
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't send message.org.codehaus.xfire.fault.XFireFault: Couldn't send message.
at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:30)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
at org.codehaus.xfire.client.Client.invoke(Client.java:336)
at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy142.compareData(Unknown Source)
at webclient.dao.impl.SyncDataServiceImpl.SyncData(SyncDataServiceImpl.java:133)
at com.norteksoft.quartz.web.SimpleService.testMethod42(SimpleService.java:261)
at com.norteksoft.quartz.web.MyQuartzJobBean.executeInternal(MyQuartzJobBean.java:62)
at org.springframework.sche易做图ng.quartz.QuartzJobBean.execute(QuartzJobBean.java:79)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: org.codehaus.xfire.XFireException: Couldn't send message.
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:145)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
... 13 more
Caused by: java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
at java.io.FilterOutputStream.write(FilterOutputStream.java:80)
at org.apache.commons.httpclient.methods.ByteArrayRequestEntity.writeRequest(ByteArrayRequestEntity.java:89)
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:369)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
... 15 more
这个问题怎么解决啊? --------------------编程问答-------------------- 没遇到过唉.... --------------------编程问答-------------------- 偶也遇到了,求助,顶起。。 --------------------编程问答-------------------- 服务端地址错误或者服务端没有启动 找不到服务端。 --------------------编程问答-------------------- 怎么解决,搞了2天了,也是这个错误,服务器的话,我通过plsql 能够访问 --------------------编程问答-------------------- 你这是用spring管理service提交事务还会用XFire发布webService啊?看看你的是不是少了连接数据库的jar包,如果没缺,用的tomcat的话,那就清除工作目录缓存(work下面都删除),重新编译一下试试 --------------------编程问答-------------------- 应该是缓存的问题 --------------------编程问答-------------------- 我的服务器和客户端都是我自己的电脑,我在写serviceURL里用localhost就报这个错,改成我的ip地址就ok了 --------------------编程问答-------------------- 不知道是不是你的错误 --------------------编程问答-------------------- xfire的配置文件的server配置项的wsdlUrl路径是不是没配对? --------------------编程问答-------------------- 我遇到个类似的错误 你这个问题解决了么 --------------------编程问答-------------------- 我把这个问题解决了 你把出现异常的程序语句让他别只打印axis异常 把别的异常也打印出来 有很大可能是因为别的地方异常导致的这个异常 我就这么解决的
补充:Java , Java EE