You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ja...@us.ibm.com on 2002/08/20 16:22:37 UTC

SocketException when sending attachments in WebSphere 4





Hi,

Sorry if this is a repost - having trouble posting to list.

I posted about this problem awhile ago and unfortunately I am still not
having any success.  I have gotten emails from other users who are having
similar problems.  I installed AXIS beta 2 on WebSphere 4.  I run into
problems when I try to use attachments - the EchoAttachment sample in
particular.  The error I get (below) is a SocketException - connection
aborted by peer - socket write error.    I have tried adding mail.jar to
the classpath with no success.  Does this have anything to do with support
for chunking?  If you have any idea why this is occurring please let me
know.  Thank you very much.

Jay

Here is the error trace:

- java.io.IOException:
java.net.SocketException: Connection aborted by peer: socket write error
        at java.net.SocketOutputStream.socketWrite(Native Method)
        at java.net.SocketOutputStream.write(Unknown Source)
        at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
        at java.io.BufferedOutputStream.flush(Unknown Source)
        at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1090)
        at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
        at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(Mim
s.java:202)
        at org.apache.axis.attachments.AttachmentsImpl.writeContentToStream
chmentsImpl.java:319)
        at org.apache.axis.Message.writeContentToStream(Message.java:352)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java

        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationSt
y.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:154)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:121)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:174)
        at org.apache.axis.client.Call.invoke(Call.java:1905)
        at org.apache.axis.client.Call.invoke(Call.java:1690)
        at org.apache.axis.client.Call.invoke(Call.java:1608)
        at org.apache.axis.client.Call.invoke(Call.java:1169)
        at samples.attachments.EchoAttachment.echo(EchoAttachment.java:138)
        at samples.attachments.EchoAttachment.main(EchoAttachment.java:310)
java.net.SocketException: Connection aborted by peer: socket write error
java.net.SocketException: Connection aborted by peer: socket write error
java.net.SocketException: Connection aborted by peer: socket write error
        at java.net.SocketOutputStream.socketWrite(Native Method)
        at java.net.SocketOutputStream.write(Unknown Source)
        at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
        at java.io.BufferedOutputStream.flush(Unknown Source)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java

        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationSt
y.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:154)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:121)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:174)
        at org.apache.axis.client.Call.invoke(Call.java:1905)
        at org.apache.axis.client.Call.invoke(Call.java:1690)
        at org.apache.axis.client.Call.invoke(Call.java:1608)
        at org.apache.axis.client.Call.invoke(Call.java:1169)
        at samples.attachments.EchoAttachment.echo(EchoAttachment.java:138)
        at samples.attachments.EchoAttachment.main(EchoAttachment.java:310)