简体   繁体   English

org.apache.cxf.interceptor.Fault:编组错误:null

[英]org.apache.cxf.interceptor.Fault: Marshalling Error: null

I have created a webservice using cxf 3.4.1 我已经使用cxf 3.4.1创建了一个Web服务

When I send a request to the webservice it works fine but sometimes for one or other request it gives me error with the following stack trace on the console. 当我向Web服务发送请求时,它可以正常工作,但有时对于一个或其他请求,它在控制台上显示以下堆栈跟踪信息时给我错误。

I am using jdk 1.6 , jboss 5.1.0 GA , jbossws-cxf-3.4.1.GA 我正在使用jdk 1.6,jboss 5.1.0 GA,jbossws-cxf-3.4.1.GA

Can anybody help me resolving this issue? 有人可以帮我解决这个问题吗?

I receive the following error: 我收到以下错误:

 org.apache.cxf.interceptor.Fault: Marshalling Error: null
    at org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:252)
    at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:169)
    at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.jav:110)

Nirmal is right. 尼尔玛是对的。 That's the typical error of CXF when the client closes the connection early. 这是客户端提前关闭连接时CXF的典型错误。 But there can be too many causes to get the specific answer just putting the exception message. 但是,仅放置异常消息就可能有太多原因无法获得特定的答案。

I had the same error, and in my case the reason was that I had declared an abstract class of exception in the WS, so when the client tried to unmarshall it, an exception was thrown and client had closed the connection early. 我有同样的错误,在我的情况下,原因是我在WS中声明了异常的抽象类,因此当客户端尝试取消编组时,将引发异常,并且客户端已提前关闭连接。

My advice is to put a breakpoint in the cause exception and debug the error. 我的建议是在原因异常中放置一个断点并调试错误。

Put the source code alongwith your questions for better responses. 将源代码和您的问题一起放入以获得更好的响应。

This looks like the client has closed the connection for some reason. 客户端似乎由于某种原因关闭了连接。 Either it timed out or the client ended or similar. 它超时或客户端结束或类似原因。 Basically, the server is trying to write a response out, but the socket has been closed. 基本上,服务器正在尝试写出响应,但是套接字已关闭。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 org.apache.cxf.interceptor.Fault:编组错误:遇到非法字符(NULL,Unicode 0):在任何内容中均无效 - org.apache.cxf.interceptor.Fault: Unmarshalling Error: Illegal character (NULL, unicode 0) encountered: not valid in any content CXF 2.7.7 org.apache.cxf.interceptor.Fault:意外元素 - CXF 2.7.7 org.apache.cxf.interceptor.Fault: Unexpected element 获取异常org.apache.cxf.interceptor.Fault:org / apache / camel / CamelContext - Getting exception org.apache.cxf.interceptor.Fault: org/apache/camel/CamelContext CXF:org.apache.cxf.interceptor.Fault:调用时arguments的编号错误 - CXF : org.apache.cxf.interceptor.Fault: wrong number of arguments while invoking org.apache.cxf.interceptor.Fault:[警告] org.eclipse.jetty.io.EofException:超时 - org.apache.cxf.interceptor.Fault: [warning] org.eclipse.jetty.io.EofException: timeout org.apache.cxf.interceptor.Fault:com / itextpdf / text / Document NoClassDefFoundError - org.apache.cxf.interceptor.Fault: com/itextpdf/text/Document NoClassDefFoundError org.apache.cxf.interceptor.Fault:找不到MIME边界 - org.apache.cxf.interceptor.Fault: Couldn't find MIME boundary org.apache.cxf.interceptor.Fault:无法初始化类net.sf.cglib.proxy.Enhancer - org.apache.cxf.interceptor.Fault: Could not initialize class net.sf.cglib.proxy.Enhancer org.apache.cxf.interceptor.Fault:无法发送消息。 引起:java.io.IOException: IOException invoking Service: Authentication failure - org.apache.cxf.interceptor.Fault: Could not send Message. Caused by: java.io.IOException: IOException invoking Service: Authentication failure 未调用Apache CXF故障拦截器 - Apache CXF Fault Interceptor not invoked
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM