2010-06-22 57 views
1

我的代碼始終生成以下錯誤:Axis2的超時等待連接

org.apache.axis2.AxisFault: Timeout waiting for connection 
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) 
    at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:203) 
    at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76) 
    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400) 
    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225) 
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435) 
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402) 
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) 
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) 

經過大量的搜索解決方案似乎是在這裏:

http://amilachinthaka.blogspot.com/2009/05/improving-axis2-client-http-transport.html

除了我不能直接訪問HTTP客戶端(這是在自動生成的代碼中完成的)。

相反,我曾嘗試:

http://wiki.apache.org/ws/FrontPage/Axis/AxisCommonsHTTP

這似乎略有幫助。然而它只會延遲問題,我總是得到超時。此外,由於Axis2不具有AxisProperties,因此這些說明似乎適用於舊版本的Axis。我正在使用版本1.5.1。有什麼建議麼?

回答

1

我認爲這是一個錯誤,請參閱here,並已使用Axis2 1.5.2修復(至少對於生成的代碼)。使用自定義代碼,您需要手動解決此問題。