SocketException: Connection reset in readLine()

I am new to socket programming in java...
A client program from another application connects to my server and sends a string input to my server.
My server thread looks like this:
public class CallBankAPIClientSendThread extends Thread {
     Socket socket=null;
     String inputLine="";
     public CallBankAPIClientSendThread(Socket socket) {
          super("CallBankAPIClientSendThread");
          this.socket=socket;
     public void run(){
          /***Get input from the client****************/
     DataInputStream streamIn;
          try {
               streamIn = new
               DataInputStream(new BufferedInputStream(socket.getInputStream()));
               inputLine=streamIn.readLine();
               //do some processing...
               streamIn.close();
               } catch (IOException e1) {
                    System.out.println(e1);
               //do some processing here again
I am getting SocketException: Connection reset error...
Please help...

SharadaC wrote:
I tried closing the socket connection... It doesn't help...
I am still getting the same exception...
sigh
You don't seem to be grasping yet that (according to what you keep claiming the exception is) the client is terminating the socket.
So that means the socket at your end is dead. D. E. A. D. So you'll just have to close it.
But no, that won't solve your problem of your client terminating the socket will it? You need to investigate that and fix that.

Similar Messages

  • JCOM throwing SocketException: Connection reset by peer: socket write error

    I have an ejb which is calling a simple ActiveX component using JCOM.
    Ocassionally the ejb loses the ability to connect to the ActiveX component. Any attempt to call a method results in a java.net.SocketException: Connection reset by peer: socket write error.
    However the ActiveX component continues to run correctly. I can still connect to it using a vb test client. This is using com to connect, not DCOM as used by JCOM(JIntegra).
    The application server and the ActiveX component are running on the same server.
    Any suggestions as to why the JIntegra DCOM request could be failing?
    Thanks,
    Greg.

    I have an ejb which is calling a simple ActiveX component using JCOM.
    Ocassionally the ejb loses the ability to connect to the ActiveX component. Any attempt to call a method results in a java.net.SocketException: Connection reset by peer: socket write error.
    However the ActiveX component continues to run correctly. I can still connect to it using a vb test client. This is using com to connect, not DCOM as used by JCOM(JIntegra).
    The application server and the ActiveX component are running on the same server.
    Any suggestions as to why the JIntegra DCOM request could be failing?
    Thanks,
    Greg.

  • How to avoid a SocketException: Connection reset by peer

    Hi,
    My problem sounds very simple at first, but I couldn't figure out how to get out of it. It's tricky.
    A have a JSP page which makes some processing and yields output to the user. Everything runs OK, until the user decide to stop the window (or to close the window) before the results render to the browser. When the next browser tries to load this page, the right page is loaded, but before it, the error garbage (error page, stack trace) from the previous user is showed in the browser...the exception is SocketException: Connection Reset by Peer.
    As I could see in the error log for the web server, the server flushes the page to the client browser, but the browser closed the HTTP connection, then this error is returned. That's OK, but this error output that was not sent appears to be "stored" somewhere in the server, and then is sent to the next client that requests the page. I tried to clear the buffer with out.clearBuffer() in the beginning of the page, but it didn't work.
    The solution would simply be to ignore this error output, i.e., to clean the output before the next user try to load the page. but I don't know how to do that.
    Sorry about the long posting, I hope I was clear in my explanation. I am using Websphere Studio Testing Web Server...and this situation happens on any browser (the problem seems to be in the server).
    Thanks in advance,
    Tiago.

    try using out.flush() in your code, use finalize ??
    out.flush();
    out.close();
    all the best !

  • JspException: Input/output errror: SocketException: Connection reset by pee

    In weblogic 8.1, getting below exception often,
              javax.servlet.jsp.JspException: Input/output errror: java.net.SocketException: Connection reset by peer.
              at org.apache.struts.util.ResponseUtils.write method
              Although no problem, but it seems to slow down.
              Technology used is mix of jsp, servlets & struts framework
              Any comments will be highly appreciated

    I also experience this. I have wenlogic 8.1sp6.
              It was affecting one part of my application in that no data is being returned. I had to stop and restart the server to get connection going again. I notice no one with weblogic 9 has the problem. I may upgrade to version 9 soon if that will help to solve this problem.

  • Java SocketException Connection Reset???

    Hi,
    I have written a client/server app that works fine conceptually, but eventually at some point a SocketException Connection Reset gets thrown and brings my app down. I open and close a ton of Sockets, but this error kills me. How can I preven this exception or at least catch it in a way that will stop it from bringing my app down? I would rather prevent it. Is this an error that just happens when you are opening and closing sockets? I'm using TCP sockets.

    Re: Java SocketException Connection Reset???
    I have written a client/server app that works fine
    conceptually, but eventually at some point a
    SocketException Connection Reset gets thrown and
    brings my app down.
    I open and close a ton of
    Sockets, but this error kills me. How can I preven
    this exception or at least catch it in a way that
    will stop it from bringing my app down? I would
    rather prevent it. Is this an error that just happens
    when you are opening and closing sockets? I'm using
    TCP sockets.IIRC tthis usually means the other end closed the socket
    (possibly without following the proper procedure?).
    In an application that handles many sockets,
    you should just catch the exception, close the socket in question and tidy up any resources linked to it.

  • RE: SocketException: Connection reset by peer

     

    I am getting a same exception in WebLogic6.1 SP1.
    java.net.SocketException: Connection reset by peer: socket write error
         at java.net.SocketOutputStream.socketWrite(Native Method)
         at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
         at weblogic.servlet.internal.ChunkUtils.writeHeaderChunk(ChunkUtils.java:151)
         at weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:380)
         at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:827)
         at weblogic.servlet.internal.ServletOutputStreamImpl.sendHeaders(ServletOutputStreamImpl.java:222)
         at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:241)
         at weblogic.servlet.internal.ChunkOutput.checkForFlush(ChunkOutput.java:306)
         at weblogic.servlet.internal.MultibyteOutput.write(ChunkOutput.java:413)
         at weblogic.servlet.internal.MultibyteOutput.print(ChunkOutput.java:389)
         at weblogic.servlet.internal.ChunkOutputWrapper.print(ChunkOutputWrapper.java:134)
         at weblogic.servlet.jsp.JspWriterImpl.print(JspWriterImpl.java:111)
    Anybody has any idea?

  • SocketException: Connection reset , using HttpURLConnection

    hello everybody, i'm using this to read a xml from internet:
           URL url;
                HttpURLConnection urlcon;
                url = new URL (urlString);
                System.out.print("Connecting ....\t");
                urlcon = (HttpURLConnection)url.openConnection();
                if(!urlcon.getResponseMessage().equals("OK"))
                    return -1;
                System.out.println("Done!");it gives me:
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read1(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unkno
    at java.net.HttpURLConnection.getResponseCode(Unknown Source)
    at java.net.HttpURLConnection.getResponseMessage(Unknown Source)
    when i do urlcon.getResponseMessage()....
    Any ideas why this happens?
    PS: when i try the same URL in a browser, it opens the file fine .....

    My suggestion is run that with Wireshark (ethereal)
    monitoring the data. That way you can see what is
    really going on in the traffic and compare that to
    the browsers traffic. It's possible that the server
    is attempting to block bots, and I think Java tells
    the server that it is a JRE connecting and not a
    normal browser. There are ways to get around that
    though if that is the issue.You were right, the first thing i tried was to set the user-agent property in the request, and that was it, looks like the server was blocking me, thx everybody

  • (Linux) SocketException: Connection reset

    I get a nasty exception while reading on a socket.
    SocketException: Connection reset
    The exception occurrs when running on Linux Redhat 8.0. I can't reproduce it when running on Windows. Could anyone explain why it happen.
    I'm using sdk 1.4.0_01.
    public class Test {
    void transfer() throws IOException {
    Socket socket = null;
    try {
    //Open a socket connection to server
    socket = new Socket("127.0.0.1",4321);
    //Enable SO_TIMEOUT with the specified timeout
    socket.setSoTimeout(60000);
    //Create channels
    ReadableByteChannel readableChannel = Channels.newChannel(socket.getInputStream());
    WritableByteChannel writableChannel = Channels.newChannel(socket.getOutputStream());
    //Create and fill buffer
    ByteBuffer buffer = ByteBuffer.allocate(32);
    while(buffer.hasRemaining())
    buffer.put((byte)1);
    buffer.flip();
    //Send
    while(buffer.hasRemaining()) {
    //Write message
    writableChannel.write(buffer);
    //Clear buffer
    buffer.clear();
    try {
    readableChannel.read(buffer);
    } catch(SocketException se) {
    System.err.println(se.getMessage());
    catch(IOException ioe) {
    finally {
    try {
    if(socket != null)
    socket.close();
    }catch(IOException ioe) {}
    Output:
    SocketException: Connection reset

    No, I actually can't. It's written by a third party in C, and I can't get the source.
    The thing is that I want to keep my connection open for several transfers, and when running on Linux suddenly my connection goes down. Sometimes it takes 20 min (about 100 transfers) and sometimes just after a few minutes (about 10 transfers). I haven't seen the problem when running on Windows.
    There were some mistakes in my code above. I hope I correct them here.
    I'm using sdk 1.4.1_01 and NOT 1.4.0_x.
    public class Test {
    private Socket socket = null;
    private ReadableByteChannel readableChannel;
    private WritableByteChannel writableChannel;
    public Test() throws IOException {
    //Open a socket connection to server
    socket = new Socket("127.0.0.1",4321);
    //Enable SO_TIMEOUT with the specified timeout
    socket.setSoTimeout(60000);
    //Create channels
    readableChannel = Channels.newChannel(socket.getInputStream());
    writableChannel = Channels.newChannel(socket.getOutputStream());
    void transfer() throws IOException {
    try {
    //Create and fill buffer
    ByteBuffer buffer = ByteBuffer.allocate(32);
    while(buffer.hasRemaining())
    buffer.put((byte)1);
    buffer.flip();
    //Send
    while(buffer.hasRemaining()) {
    //Write message
    writableChannel.write(buffer);
    //Clear buffer
    buffer.clear();
    try {
    readableChannel.read(buffer);
    } catch(SocketException se) {
    System.err.println("Nasty exception: "+se.getMessage());
    catch(IOException ioe) {
    System.out.println("This never happen");
    public void close() {
    try {
    if(socket != null)
    socket.close();
    }catch(IOException ioe) {}
    Output:
    Nasty exception: SocketException: Connection reset

  • Recurring Page Exception  -  'SocketException: Connection reset by peer'

    I have implemented a popup calendar that is implemented as an include of a file in a lower directory (i.e. 'script/calendar.jsp') that uses an iframe. This calendar is only in a few of my pages, but I get the below exception in each page which implements it.
    Is this happening after the page is sent? It's after the afterRenderResponse() method. Any thoughts? Thanks.
    [#|2005-06-30T21:44:37.593-0500|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web
         |_ThreadID=19;|org.apache.catalina.core.StandardHostValve@1a70476: Exception Processing ErrorPage[errorCode=404, location=/faces/error.jsp]
         ClientAbortException:  java.net.SocketException: Software caused connection abort: socket write error
         at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:378)
         at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:401)
         at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:320)
         at org.apache.coyote.tomcat5.OutputBuffer.flush(OutputBuffer.java:302)
         at org.apache.coyote.tomcat5.CoyoteResponse.flushBuffer(CoyoteResponse.java:512)
         at org.apache.coyote.tomcat5.CoyoteResponseFacade$1.run(CoyoteResponseFacade.java:212)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.coyote.tomcat5.CoyoteResponseFacade.flushBuffer(CoyoteResponseFacade.java:207)
         at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:306)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
         at java.lang.Thread.run(Thread.java:534)References: http://forum.java.sun.com/thread.jspa?messageID=3767674�

    Hi,
    Please go throught the following link:
    http://www.websina.com/bugzero/errors/http-connection-reset.html
    Hope this helps
    Cheers
    Giri :-)

  • SocketException - Connection reset by peer

    Hi,
    I'm running a j2ee app on WAS5.0. I get this abrupt exception for no reason. It comes just while the jsp is loading or just moving the mouse around on the page.
    Kindly let me know what the problem could be.
    regards,
    Arif

    Thrown to indicate that there is an error in the underlying protocol, such as a TCP error.
    there is much information about this exceptio...
    Read this article
    Network Programming with J2SE 1.4
    http://java.sun.com/features/2002/08/j2se-network.html
    Other forums with same problem:
    http://forum.java.sun.com/thread.jsp?forum=46&thread=294609&tstart=0&trange=15
    http://forum.java.sun.com/thread.jsp?thread=294609&forum=46&message=1797877

  • Getting connection reset.

    Hi All,
    I am working on a client/server based program.The client is sending messages to server. For some messages it is giving the following
    exception but also working fine for same messages sometimes.
    java.net.SocketException: Connection reset
            at java.net.SocketInputStream.read(SocketInputStream.java:168)
            at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:408)
            at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:450)
            at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
            at java.io.InputStreamReader.read(InputStreamReader.java:167)
            at java.io.BufferedReader.fill(BufferedReader.java:136)
            at java.io.BufferedReader.readLine(BufferedReader.java:299)
            at java.io.BufferedReader.readLine(BufferedReader.java:362)some help which i got saying the length of message may be long but its not true in my application. Within our domain it worked fine but over firewalls its giving the exception. Is this due to firewall? If yes how can we solve this?
    please help me in solving this issue

    hi
    Iam getting connection reset during processing a file.
    java.net.SocketException: Connection reset
            at java.net.SocketInputStream.read(SocketInputStream.java:168)
            at com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA6275)
            at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
            at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
            at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
            at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
            at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:406)
            at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:446)
            at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180)
            at java.io.InputStreamReader.read(InputStreamReader.java:167)
            at java.io.BufferedReader.fill(BufferedReader.java:136)
            at java.io.BufferedReader.readLine(BufferedReader.java:299)
            at java.io.BufferedReader.readLine(BufferedReader.java:362)
            at EndMonitor.run(ApacheCommunication1.java:1502)
            at java.util.TimerThread.mainLoop(Timer.java:432)
            at java.util.TimerThread.run(Timer.java:382)

  • Connection reset error while calling web service deployed on tomcat

    Hello Friends,
    I am trying to invoke a web service from web dynpro application. The web service is deployed on tomcat 5.5 server.
    I am creating an adaptive web service model using wsdl file. The model gets created without any error.
    But when application is deployed and run it is giving following exception:
    java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:254)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
        ... 102 more
    I tried to call the service from a simple java application. There the service works fine.
    Also, in the web services navigator, if I specify the wsdl url for testing it gives the same error of "Connection reset".
    I don't think this is a proxy server issue as the tomcat is within the local network.
    Can someone please help me with this?
    Thanks and regards,
    Mayuresh
    Edited by: Mayuresh Kanvinde on Mar 27, 2008 7:03 PM

    Hi Sumit,
    Thanks for the reply.
    Here is the stack trace:
    com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WSDL URL 'http://<host>:<port>/WebServicesTest/DummyWebService?wsdl' and service factory configuration 'null'
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:422)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:372)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:342)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:326)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo$Cache.getModelInfo(WSModelInfo.java:199)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:1035)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:248)
         at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(WSTypedModel.java:41)
         at com.tcs.vis.Vishy.<init>(Vishy.java:73)
         at com.tcs.app.AppView.wdDoInit(AppView.java:101)
         at com.tcs.app.wdp.InternalAppView.wdDoInit(InternalAppView.java:143)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model. See nested exception for details.
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:150)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:50)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:91)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:420)
         ... 45 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Problem with WSDL file parsing. See nested message.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:182)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:147)
         ... 49 more
    Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Connection reset -> java.net.SocketException: Connection reset
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1039)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1126)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:178)
         ... 50 more
    Caused by: java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:168)
         at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
         at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
         at com.sap.engine.services.webservices.jaxm.soap.LimitedInputStream.read(LimitedInputStream.java:61)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.readData(EncodedDataReader.java:269)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.fetchData(EncodedDataReader.java:332)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.read(EncodedDataReader.java:165)
         at com.sap.engine.lib.xml.parser.helpers.AdvancedXMLStreamReader.read(AdvancedXMLStreamReader.java:143)
         at com.sap.engine.lib.xml.parser.helpers.AdvancedXMLStreamReader.addInputFromInputStream(AdvancedXMLStreamReader.java:292)
         at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:220)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
         at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280)
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342)
         at com.sap.engine.lib.xml.parser.DOMParser.parse(DOMParser.java:101)
         at com.sap.engine.lib.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:127)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1023)
         ... 52 more
    Thanks and regards,
    Mayuresh
    Edited by: Mayuresh Kanvinde on Mar 28, 2008 1:10 PM

  • HTTP response error :Connection reset

    Hi all,
    I am getting following error in log while sending message to the trading partner and the main problem is that once this error comes then after that I am not able to send any more message to any of my Trading Partners. Even if I try to send message to any other Trading Partner, nothing comes in the B2B log and report as well. After restarting the B2B I am able to send message again to other Trading Partners.
    Can anyone please tell the reason for getting this error? I also want to know that after getting this error once, why am I not able to send message to any Trading Partner?
    2008.12.12 at 06:41:07:647: Thread-13: B2B - (WARNING)
    Message Transmission Transport Exception
    Transport Error Code is OTA-HTTP-SEND-1006
    StackTrace oracle.tip.transport.TransportException: [IPT_HttpSendHttpResponseError] HTTP response error :Connection reset.
    at oracle.tip.transport.TransportException.create(TransportException.java:91)
    at oracle.tip.transport.basic.HTTPSender.send(HTTPSender.java:627)
    at oracle.tip.transport.b2b.B2BTransport.send(B2BTransport.java:311)
    at oracle.tip.adapter.b2b.transport.TransportInterface.send(TransportInterface.java:980)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1744)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:968)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1147)
    at oracle.tip.adapter.b2b.transport.AppInterfaceListener.onMessage(AppInterfaceListener.java:137)
    at oracle.tip.transport.basic.jms.JMSMonitor.processMessages(JMSMonitor.java:610)
    at oracle.tip.transport.basic.jms.JMSMonitor.run(JMSMonitor.java:236)
    Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    at com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA12275)
    at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:112)
    at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:3018)
    at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java:2843)
    at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:2635)
    at HTTPClient.HTTPConnection.Post(HTTPConnection.java:1107)
    at oracle.tip.transport.basic.HTTPSender.send(HTTPSender.java:590)
    ... 8 more
    2008.12.12 at 06:41:07:647: Thread-13: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:send Error in sending message
    2008.12.12 at 06:41:07:648: Thread-13: B2B - (INFORMATION) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab Request Message Transmission failed
    2008.12.12 at 06:41:07:648: Thread-13: B2B - (DEBUG) DBContext beginTransaction: Enter
    2008.12.12 at 06:41:07:648: Thread-13: B2B - (DEBUG) DBContext beginTransaction: Transaction.begin()
    2008.12.12 at 06:41:07:648: Thread-13: B2B - (DEBUG) DBContext beginTransaction: Leave
    2008.12.12 at 06:41:07:648: Thread-13: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab [IPT_HttpSendHttpResponseError] HTTP response error :Connection reset.
    Connection reset
    2008.12.12 at 06:41:07:651: Thread-13: BusinessLogicLayer - (DEBUG) Authorization disabled. UserBootstrapped:false, useAuthorization:true, configType:Runtime
    2008.12.12 at 06:41:07:652: Thread-13: BusinessLogicLayer - (DEBUG) Push Stack: updateBusinessMessage
    2008.12.12 at 06:41:07:656: Thread-13: BusinessLogicLayer - (DEBUG) Pop Stack: updateBusinessMessage
    2008.12.12 at 06:41:07:656: Thread-13: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:notifyApp retry value <= 0, so sending exception to IP_IN_QUEUE
    2008.12.12 at 06:41:07:658: Thread-13: B2B - (DEBUG) Engine:notifyApp Enter
    2008.12.12 at 06:41:07:663: Thread-13: B2B - (DEBUG) Enqueue Engine AQJMSCorrelationID = null
    2008.12.12 at 06:41:07:663: Thread-13: B2B - (DEBUG) notifyApp:notifyApp Enqueue the ip exception message:
    <Exception xmlns="http://integration.oracle.com/B2B/Exception" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <correlationId>null</correlationId>
    <b2bMessageId>0AF77A6111E29ED374E000001BDE3D60</b2bMessageId>
    <errorCode>AIP-50079</errorCode>
    <errorText>Transport error: [IPT_HttpSendHttpResponseError] HTTP response error :Connection reset.
    Connection reset</errorText>
    <errorDescription>
    <![CDATA[Machine Info: (dys094w004)
    Transport error: [IPT_HttpSendHttpResponseError] HTTP response error :Connection reset.
    Connection reset ]]>
    </errorDescription>
    <errorSeverity>2</errorSeverity>
    </Exception>
    2008.12.12 at 06:41:07:692: Thread-13: B2B - (DEBUG) Engine:notifyApp Exit
    2008.12.12 at 06:41:07:693: Thread-13: B2B - (DEBUG) DBContext commit: Enter
    2008.12.12 at 06:41:07:696: Thread-13: B2B - (DEBUG) DBContext commit: Transaction.commit()
    2008.12.12 at 06:41:07:696: Thread-13: B2B - (DEBUG) DBContext commit: Leave
    2008.12.12 at 06:41:07:696: Thread-13: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequest Exit
    2008.12.12 at 06:41:07:696: Thread-13: B2B - (INFORMATION) oracle.tip.adapter.b2b.engine.Engine:processOutgoingMessage:
    ***** REQUEST MESSAGE *****
    Please help.
    Thanks & Regards,
    Anuj Dwivedi

    Hi Sinkar,
    Thanks for the reply. I confirmed it with my Trading Partner and their server is not running but still I want to know that why am I not able to send message to any other Trading Partner after getting this error once. And if I restart the server, it again acts normally and I am able to send message to other Trading Partners.
    SSL is configured properly because I was able to communicate with this Trading Partner earlier when their server was up.
    We are working on 10.1.2.3.0 with 7457066 MLR 5 patch. Please guide if any other patch required.
    Thanks for the help.
    Warm Regards,
    Anuj Dwivedi

  • Connection Reset while making http web service call to remote server

    Hello guys,
    Our environment details are as follows:
    WebLogic version: 10.3.3
    Cluster: yes
    Database: Oracle
    Web service server: Remote application
    When our WebLogic server makes a http Web service call to another remote application which runs on IIS server for creating a record. The record gets created in remote application but WebLogic server log says java.net.SocketException: Connection reset and the same record doesn't get created in WebLogic application. We have confirmed that remote application is running and it is behaving as expected. Also, we installed web service client on our WebLogic machine just to isolate any network related issues, when we make a same request through this client it works fine and we get answer. At this point in time, it looks like it could be WebLogic or application which is behaving goofy. we are running out of ideas, it would be nice if someone have any thoughts on it like turning on any flags or any other troubleshooting steps. Please, let me know.
    Here is the stack trace:
    ####<Sep 18, 2011 12:31:40 AM MDT> <Info> <com.blah.blah> <server1> <WLSserver> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Defaul
    t (self-tuning)'> <user> <BEA1-69D606DA85BDB1A0A7D5> <> <1316327500388> <BEA-000000> <ERROR com.blah.blah - Error during creating a order remoteappja
    va.net.SocketException: Connection reset
    com.sun.jersey.api.client.ClientHandlerException: java.net.SocketException: Connection reset
    at com.sun.jersey.api.client.Client.handle(Client.java:569)
    at com.sun.jersey.api.client.WebResource.handle(WebResource.java:556)
    at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:69)
    at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:451)
    Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:173)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
    at weblogic.net.http.MessageHeader.isHTTP(MessageHeader.java:220)
    at weblogic.net.http.MessageHeader.parseHeader(MessageHeader.java:143)
    at weblogic.net.http.HttpClient.parseHTTP(HttpClient.java:462)
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:364)
    at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:37)
    at weblogic.net.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:952)
    at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:215)
    at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:126)
    ... 58 more
    >
    thanks a lot for your help in advance
    Regards,

    Here's what the issue was for us:
    When the web service was initializing, Weblogic? was trying to retrieve the WSDL first before initializing the service.
    Though the web service URL was proper, the WSDL itself was unresolvable. This led to this strange connection reset error.
    So, if you're experiencing this consistently, check your WSDL URL.
    We used "strace" to discover this problem by running it for a brief time while the web service initialization was attempted - and it very clearly showed that the code was attempting to laod something from a bogus address / IP

  • XI 2.0 Inbound file adapter : Connection reset by peer

    I am using XI 2.0 and have an inbound file adapter. It polls every 5 minutes. But at least 1 or twice a day the file adapter stops with the following error message.
    "java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read" occurred \par
    There have been times when this runs for days or weeks without any problems.
    Has anyone else seen this issue and how do your correct it?
    Currently I have to go into the file adpaters and restart them manually. It would be nice if there was some way to automate this function. Any ideas?
    Regards,
    Jim

    With JDK 5.0 use ojdbc5.jar instead of ojdbc14.jar.

Maybe you are looking for

  • Why did iOS 5 make my brand new iPod Touch so slow?

    Recently downloaded the new iOS which, by the way, took nearly an entire night due to connection failure with host.  Since then my iPod has been almost glitchy.  I keep my apps pretty clean.  I don't have a lot.  And when I'm done with one I close it

  • Web Dynpro file save dialog - for portal

    Hi everyone, I am currently building a Web Dynpro application in which I need to display a File Save Dialog popup on the Netweaver Portal. Now, I used the standard file_save_dialog method from the class CL_GUI_FRONTEND_SERVICES, but this gives me a d

  • ME5A Report - Request for Help

    Dear All, I am working on the Report (ME5A) - Purchase Requisition List.  I have completed the following items, viz, a) Additon of Two more fields MRP Type and Lot Size in the Screen Input. b) Appended the structure MEREP_OUTTAB_EBAN with the above t

  • I am Using Premier Pro CC 2014 release v8.1sound synch issues

    I am using PP CC, I have imported an AVCHD clips through media browser (this is not the 1st time using software or importing) on this isolated occasion when files imported the sound is miles out of synch. I have done the same with Final cut X and fin

  • Service entry sheet tree on/off

    hi... there is problem in service entry sheet tree on/off is minimized by mistake..i can't maximize it..anyone can help...??? regards prashant