0 0

xfire webservice偶尔的异常~50

linux 环境,tomcat
偶然出现
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: ParseError at [row,col]:[2,1]
Message: Element type "null" must be followed by either attribute specifications, ">" or "/>".
org.codehaus.xfire.fault.XFireFault: ParseError at [row,col]:[2,1]
Message: Element type "null" must be followed by either attribute specifications, ">" or "/>".
at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
at org.codehaus.xfire.client.Client.onReceive(Client.java:410)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
at org.codehaus.xfire.transport.http.XFireServletChannel.send(XFireServletChannel.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 $Proxy8.hklotNotify(Unknown Source)
at com.topman.molo.forward.MolocnSerive.hklotNotify(MolocnSerive.java:76)
at nxfc.notify.WebServiceNotifyThread.sendData2Molo(WebServiceNotifyThread.java:88)
at nxfc.notify.WebServiceNotifyThread.run(WebServiceNotifyThread.java:58)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
Message: Element type "null" must be followed by either attribute specifications, ">" or "/>".
at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:563)
at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:44)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Client.onReceive(Client.java:406)
有时候又抛出
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: There must be a method name element.
org.codehaus.xfire.fault.XFireFault: There must be a method name element.
at org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:32)
at org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
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.XFireServletChannel.send(XFireServletChannel.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 $Proxy8.hklotNotify(Unknown Source)
at com.topman.molo.forward.MolocnSerive.hklotNotify(MolocnSerive.java:76)
at nxfc.notify.WebServiceNotifyThread.sendData2Molo(WebServiceNotifyThread.java:88)
at nxfc.notify.WebServiceNotifyThread.run(WebServiceNotifyThread.java:58)
异常不一,偶尔,1000多条记录,会出现几十条异常....
尝试了很多办法,jar包也都一致,但是会有,求牛人帮忙下...

问题补充:
lkw225657 写道
好像是你页面的标签写的有问题。

页面标签?什么地方,会造成偶尔的错误码?

问题补充:
shenhui134 写道
如果是通过 ObjectServiceFactory、XFireProxyFactory方式来动态生成的,
需要把访问路径的WSDL去掉,
类似于
http://www.xxx.com/xfire/demoCommonService?WSDL
改成
http://www.xxx.com/xfire/demoCommonService


?wsdl是 去掉的
2010年4月10日 16:03

2个答案 按时间排序 按投票排序

0 0

如果是通过 ObjectServiceFactory、XFireProxyFactory方式来动态生成的,
需要把访问路径的WSDL去掉,
类似于
http://www.xxx.com/xfire/demoCommonService?WSDL
改成
http://www.xxx.com/xfire/demoCommonService

2010年4月13日 17:07
0 0

好像是你页面的标签写的有问题。

2010年4月13日 13:13

相关推荐

Global site tag (gtag.js) - Google Analytics