来自tomcat 6 Web服务器的轴异常

时间:2014-07-09 14:38:42

标签: java web-services tomcat axis

我正在运行安装了Axis的Tomcat6。 我在轴服务器中设置了webservices。在服务器启动后,一切都工作了几个小时,然后它为每个新请求抛出以下异常。有人可以帮帮我吗?

'org.apache.axis2.AxisFault  
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)  
        at org.apache.axis2.transport.http.ApplicationXMLFormatter.writeTo(ApplicationXMLFormatter.java:146)  
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:337)  
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:214)  
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)  
        at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)  
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)  
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)  
        at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)  
        at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)  
        at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829)  
        at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255)  
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)  
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)  
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)  
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)  
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)  
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)  
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)  
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)  
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)  
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)  
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)  
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)  
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)  
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)  
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)  
        at java.lang.Thread.run(Thread.java:675)  
Caused by: com.ctc.wstx.exc.WstxIOException: null  
        at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteEndTag(BaseNsStreamWriter.java:671)  
        at com.ctc.wstx.sw.BaseNsStreamWriter.writeEndElement(BaseNsStreamWriter.java:282)  
        at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeEndElement(MTOMXMLStreamWriter.java:129)  
        at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeEndpart(OMSerializerUtil.java:61)  
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:926)  
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947)  
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:918)  
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947)  
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:918)  
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947)  
        at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:471)  
        at org.apache.axis2.transport.http.ApplicationXMLFormatter.writeTo(ApplicationXMLFormatter.java:143)  
        ... 26 more  
Caused by: ClientAbortException:  java.net.SocketException: Connection timed out  
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)  
        at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432)  
        at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:347)  
        at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:392)  
        at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:381)  
        at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)  
        at com.ctc.wstx.io.UTF8Writer.write(UTF8Writer.java:139)  
        at com.ctc.wstx.sw.BufferingXmlWriter.flushBuffer(BufferingXmlWriter.java:1103)  
        at com.ctc.wstx.sw.BufferingXmlWriter.fastWriteRaw(BufferingXmlWriter.java:1149)  
        at com.ctc.wstx.sw.BufferingXmlWriter.writeEndTag(BufferingXmlWriter.java:803)  
        at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteEndTag(BaseNsStreamWriter.java:669)  
        ... 37 more  
         Caused by: java.net.SocketException: Connection timed out  
        at java.net.SocketOutputStream.socketWrite0(Native Method)  
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)  
        at java.net.SocketOutputStream.write(SocketOutputStream.java:154)  
        at        org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:750)

' 


enter code here

1 个答案:

答案 0 :(得分:0)

找到答案“与请求会话不同,SOAP会话有一个默认的超时时间;如果客户端未在30秒内触摸该服务,则会话将过期。在这种情况下,发送旧serviceGroupId的客户端将获得AxisFault。我们可以通过更改服务器的axis2.xml来更改默认超时时间,如下所示:30000“

来自链接

http://wso2.com/library/articles/axis2-session-management-part-2/