当前位置: 代码迷 >> J2EE >> 。xfire hibernate spring webservice
  详细解决方案

。xfire hibernate spring webservice

热度:76   发布时间:2016-04-22 02:11:06.0
高手请进。。xfire hibernate spring webservice
服务端从数据库中查询一条语句,服务端junit测试没什么问题。可在客户端访问的时候报:Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Cannot open connection
org.codehaus.xfire.fault.XFireFault: Cannot open connection
at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)
at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)
at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Client.onReceive(Client.java:406)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
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 $Proxy2.login(Unknown Source)
at com.dao.ClientWebService.main(ClientWebService.java:32)


------解决方案--------------------
不能打开连接呀,客户端用什么调的???
------解决方案--------------------
URL在浏览器里能不能打开?
------解决方案--------------------
断点 调试 下
Cannot open connection!!
  相关解决方案