You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Ashish Srivastava <as...@yahoo.com> on 2006/03/30 02:06:32 UTC

SocketException with HttpClient and SOAP service

Hi,
   I have a SOAP server which uses the JAXM APIs and
implements the onMessage (SOAPMessage) method. When I
send a SOAPMessage using the soap apis everything
works fine. I get the SocketException: socket closed
exception when I use apache's commons HttpClient
object to send an XML content. The error I get is:

java.net.SocketException: socket closed^M
        at
java.net.SocketInputStream.socketRead0(Native
Method)^M
        at
java.net.SocketInputStream.read(SocketInputStream.java:129)^M
        at
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)^M
        at
java.io.BufferedInputStream.read(BufferedInputStream.java:235)^M
        at
org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBuff
eredInputStream.java:67)^M
        at
java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java
:2200)^M
        at
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Object
InputStream.java:2380)^M
        at
java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStre
am.java:2447)^M
        at
java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream
.java:2519)^M
@
java.net.SocketException: socket closed^M
        at
java.net.SocketInputStream.socketRead0(Native
Method)^M
        at
java.net.SocketInputStream.read(SocketInputStream.java:129)^M
        at
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)^M
        at
java.io.BufferedInputStream.read(BufferedInputStream.java:235)^M
        at
org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBuff
eredInputStream.java:67)^M
        at
java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java
:2200)^M
        at
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Object
InputStream.java:2380)^M
        at
java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStre
am.java:2447)^M
        at
java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream
.java:2519)^M
@

I am at my wit's end and any help is highly
appreciated.

Thanks,
-Ashish

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: SocketException with HttpClient and SOAP service

Posted by Ashish Srivastava <as...@yahoo.com>.
Thanks but it turns out to be a local component and
how it handled certain messages.

Thanks,
-Ashish

--- Oleg Kalnichevski <ol...@apache.org> wrote:

> On Wed, 2006-03-29 at 16:06 -0800, Ashish Srivastava
> wrote:
> > Hi,
> >    I have a SOAP server which uses the JAXM APIs
> and
> > implements the onMessage (SOAPMessage) method.
> When I
> > send a SOAPMessage using the soap apis everything
> > works fine. I get the SocketException: socket
> closed
> > exception when I use apache's commons HttpClient
> > object to send an XML content. The error I get is:
> > 
> Ashish,
> Please post a *complete* wire/context log of the
> HTTP session [1] and a
> *complete* exception stack trace. I can't see a
> single reference to a
> HttpClient class in the stack trace you have posted
> 
>
[1]http://jakarta.apache.org/commons/httpclient/logging.html
> 
> Oleg
> 
> 
> > java.net.SocketException: socket closed^M
> >         at
> > java.net.SocketInputStream.socketRead0(Native
> > Method)^M
> >         at
> >
>
java.net.SocketInputStream.read(SocketInputStream.java:129)^M
> >         at
> >
>
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)^M
> >         at
> >
>
java.io.BufferedInputStream.read(BufferedInputStream.java:235)^M
> >         at
> >
>
org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBuff
> > eredInputStream.java:67)^M
> >         at
> >
>
java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java
> > :2200)^M
> >         at
> >
>
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Object
> > InputStream.java:2380)^M
> >         at
> >
>
java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStre
> > am.java:2447)^M
> >         at
> >
>
java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream
> > .java:2519)^M
> > @
> > java.net.SocketException: socket closed^M
> >         at
> > java.net.SocketInputStream.socketRead0(Native
> > Method)^M
> >         at
> >
>
java.net.SocketInputStream.read(SocketInputStream.java:129)^M
> >         at
> >
>
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)^M
> >         at
> >
>
java.io.BufferedInputStream.read(BufferedInputStream.java:235)^M
> >         at
> >
>
org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBuff
> > eredInputStream.java:67)^M
> >         at
> >
>
java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java
> > :2200)^M
> >         at
> >
>
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Object
> > InputStream.java:2380)^M
> >         at
> >
>
java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStre
> > am.java:2447)^M
> >         at
> >
>
java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream
> > .java:2519)^M
> > @
> > 
> > I am at my wit's end and any help is highly
> > appreciated.
> > 
> > Thanks,
> > -Ashish
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> > 
> > 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: SocketException with HttpClient and SOAP service

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Wed, 2006-03-29 at 16:06 -0800, Ashish Srivastava wrote:
> Hi,
>    I have a SOAP server which uses the JAXM APIs and
> implements the onMessage (SOAPMessage) method. When I
> send a SOAPMessage using the soap apis everything
> works fine. I get the SocketException: socket closed
> exception when I use apache's commons HttpClient
> object to send an XML content. The error I get is:
> 
Ashish,
Please post a *complete* wire/context log of the HTTP session [1] and a
*complete* exception stack trace. I can't see a single reference to a
HttpClient class in the stack trace you have posted

[1]http://jakarta.apache.org/commons/httpclient/logging.html

Oleg


> java.net.SocketException: socket closed^M
>         at
> java.net.SocketInputStream.socketRead0(Native
> Method)^M
>         at
> java.net.SocketInputStream.read(SocketInputStream.java:129)^M
>         at
> java.io.BufferedInputStream.fill(BufferedInputStream.java:218)^M
>         at
> java.io.BufferedInputStream.read(BufferedInputStream.java:235)^M
>         at
> org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBuff
> eredInputStream.java:67)^M
>         at
> java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java
> :2200)^M
>         at
> java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Object
> InputStream.java:2380)^M
>         at
> java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStre
> am.java:2447)^M
>         at
> java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream
> .java:2519)^M
> @
> java.net.SocketException: socket closed^M
>         at
> java.net.SocketInputStream.socketRead0(Native
> Method)^M
>         at
> java.net.SocketInputStream.read(SocketInputStream.java:129)^M
>         at
> java.io.BufferedInputStream.fill(BufferedInputStream.java:218)^M
>         at
> java.io.BufferedInputStream.read(BufferedInputStream.java:235)^M
>         at
> org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBuff
> eredInputStream.java:67)^M
>         at
> java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java
> :2200)^M
>         at
> java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Object
> InputStream.java:2380)^M
>         at
> java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStre
> am.java:2447)^M
>         at
> java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream
> .java:2519)^M
> @
> 
> I am at my wit's end and any help is highly
> appreciated.
> 
> Thanks,
> -Ashish
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org