You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2007/06/08 05:34:26 UTC
[jira] Commented: (AXIS2-1426) An error thrown when submitting a
large attachment using the mtom sample client
[ https://issues.apache.org/jira/browse/AXIS2-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502639 ]
Davanum Srinivas commented on AXIS2-1426:
-----------------------------------------
I think this is fixed already. please re-test with Axis2 1.2 or better with nightly.
thanks,
dims
> An error thrown when submitting a large attachment using the mtom sample client
> -------------------------------------------------------------------------------
>
> Key: AXIS2-1426
> URL: https://issues.apache.org/jira/browse/AXIS2-1426
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: samples
> Affects Versions: 1.1
> Environment: Win XP, Apache tomcat 5.5.16, JDK 1.5, Axis2-1.1 RC1
> Reporter: Charitha Kankanamge
> Assignee: Thilina Gunarathne
>
> Following exception thrown when submitting ~30MB file using the mtom sample client.
> [java] org.apache.axis2.AxisFault: Read timed out; nested exception is:
> [java] java.net.SocketTimeoutException: Read timed out; nested exceptio
> n is:
> [java] org.apache.axis2.AxisFault: Read timed out; nested exception is:
> [java] java.net.SocketTimeoutException: Read timed out
> [java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.in
> voke(CommonsHTTPTransportSender.java:225)
> [java] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:642)
> [java] at org.apache.axis2.description.OutInAxisOperationClient.send(Ou
> tInAxisOperation.java:351)
> [java] at org.apache.axis2.description.OutInAxisOperationClient.execute
> (OutInAxisOperation.java:281)
> [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie
> nt.java:571)
> [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie
> nt.java:502)
> [java] at sample.mtom.filetransfer.client.MTOMClientModel.sendFilesUsin
> gMTOM(MTOMClientModel.java:193)
> [java] at sample.mtom.filetransfer.client.UserInterface.send(UserInterf
> ace.java:432)
> [java] at sample.mtom.filetransfer.client.UserInterface.execute(UserInt
> erface.java:389)
> [java] at sample.mtom.filetransfer.client.UserInterface.actionPerformed
> (UserInterface.java:300)
> [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton
> .java:1849)
> [java] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractBu
> tton.java:2169)
> [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultBut
> tonModel.java:420)
> [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.
> java:258)
> [java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Basi
> cButtonListener.java:234)
> [java] at java.awt.Component.processMouseEvent(Component.java:5488)
> [java] at javax.swing.JComponent.processMouseEvent(JComponent.java:3126
> )
> [java] at java.awt.Component.processEvent(Component.java:5253)
> [java] at java.awt.Container.processEvent(Container.java:1966)
> [java] at java.awt.Component.dispatchEventImpl(Component.java:3955)
> [java] at java.awt.Container.dispatchEventImpl(Container.java:2024)
> [java] at java.awt.Component.dispatchEvent(Component.java:3803)
> [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.j
> ava:4212)
> [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.ja
> va:3892)
> [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3
> 822)
> [java] at java.awt.Container.dispatchEventImpl(Container.java:2010)
> [java] at java.awt.Window.dispatchEventImpl(Window.java:1774)
> [java] at java.awt.Component.dispatchEvent(Component.java:3803)
> [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
> [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
> spatchThread.java:242)
> [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
> atchThread.java:163)
> [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
> ava:157)
> [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
> ava:149)
> [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:110
> )
> [java] Caused by: org.apache.axis2.AxisFault: Read timed out; nested except
> ion is:
> [java] java.net.SocketTimeoutException: Read timed out
> [java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.wr
> iteMessageWithCommons(CommonsHTTPTransportSender.java:339)
> [java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.in
> voke(CommonsHTTPTransportSender.java:205)
> [java] ... 33 more
> [java] Caused by: java.net.SocketTimeoutException: Read timed out
> [java] at java.net.SocketInputStream.socketRead0(Native Method)
> [java] at java.net.SocketInputStream.read(SocketInputStream.java:129)
> [java] at java.io.BufferedInputStream.fill(BufferedInputStream.java:218
> )
> [java] at java.io.BufferedInputStream.read(BufferedInputStream.java:235
> )
> [java] at org.apache.commons.httpclient.HttpParser.readRawLine(HttpPars
> er.java:77)
> [java] at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.
> java:105)
> [java] at org.apache.commons.httpclient.HttpConnection.readLine(HttpCon
> nection.java:1115)
> [java] at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(H
> ttpMethodBase.java:1832)
> [java] at org.apache.commons.httpclient.HttpMethodBase.readResponse(Htt
> pMethodBase.java:1590)
> [java] at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMeth
> odBase.java:995)
> [java] at org.apache.commons.httpclient.HttpMethodDirector.executeWithR
> etry(HttpMethodDirector.java:397)
> [java] at org.apache.commons.httpclient.HttpMethodDirector.executeMetho
> d(HttpMethodDirector.java:170)
> [java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpCl
> ient.java:396)
> [java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpCl
> ient.java:346)
> [java] at org.apache.axis2.transport.http.AbstractHTTPSender.executeMet
> hod(AbstractHTTPSender.java:534)
> [java] at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPO
> verHTTPSender.java:119)
> [java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.wr
> iteMessageWithCommons(CommonsHTTPTransportSender.java:333)
> [java] ... 34 more
> Please note that, I Uncommented following section in axis2.xml in order to enable attachment caching.
> <parameter name="cacheAttachments" locked="false">true</parameter>
> <parameter name="attachmentDIR" locked="false">C:\attachement_temp</parameter>
> <parameter name="sizeThreshold" locked="false">4000</parameter>
> Steps to reproduce:
> ===================
> 1. Start Axis2 Attachment Sample client
> 2. Modify axis2.xml to enable attachment caching and restart tomcat
> 3. Attach a file with ~30 MB size and send using MTOM
> Issue:-
> =======
> The above exception can be seen in the console after some time. However, the file is transferred to the specified location.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org