ws-soap-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prashant Jain" <>
Subject Connection aborted by peer
Date Fri, 03 Aug 2001 10:36:55 GMT

I have created a simple servlet called LoginServlet where I want to
extract some data from the incoming SOAP request and then forward the
request to the rpcrouter servlet. On the server side I don't seem to get
any errors but on the client side, I get the following exception:

[SOAPException: faultCode=SOAP-ENV:Client; msg=Connection aborted by
peer: JVM_recv in socket input stream read; Connection aborted by peer:
JVM_recv in socket input stream read]
        at org.apache.soap.rpc.Call.invoke(

When I remove my LoginServlet and the request goes directly to
rpcrouter, everything works fine. I did not change anything on my client
side except for the URL that is invoked by the Call object. I changed
that from rpcrouter to that of my servlet. The only thing that I am
doing in LoginServlet is the following:

public void doPost (HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    ServletConfig config = getServletConfig();
    ServletContext context = config.getServletContext ();
    RequestDispatcher dispatcher =
    if (dispatcher != null) {
     try {
         dispatcher.forward (req, res);
         } catch (Exception e) {
             e.printStackTrace ();

I tried both dispatcher.forward() as well as dispatcher.include() and
got the same problem.

I searched the archives and found some others having reported a similar
problem. However, I could not find any solution posted. Is there
something that I am doing wrong or missing?


- Prashant

View raw message