Socket read time out

Hi,
A java class I use is connecting to another system via socket.
This always works fine when using Java 1.3. However my database installation forces me to use Java 1.2.1 where the same code fails.
Does anybody know of a workaround to this problem?
I use Solaris.
When using Java 1.2.1 I get
Read timed out
java.io.InterruptedIOException: Read timed out
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.socketRead(Compiled Code)
at java.net.SocketInputStream.read(Compiled Code)
at java.net.SocketInputStream.read(Compiled Code)
at java.io.InputStreamReader.fill(Compiled Code)
at java.io.InputStreamReader.read(Compiled Code)
at java.io.InputStreamReader.read(Compiled Code)
at java.io.StreamTokenizer.read(Compiled Code)
at java.io.StreamTokenizer.nextToken(Compiled Code)
at com.posten.autent.AutentClient.receive(Compiled Code)
at com.posten.autent.AutentClient.connect(AutentClient.java:265)
Here is the code
// Attempt to connect to server.
try {
socket = new Socket( host, port );
in = new InputStreamReader( socket.getInputStream() ) ;
input = new StreamTokenizer( in );
output = new PrintStream( socket.getOutputStream() );
input.resetSyntax();
input.wordChars( '\u0021', '\uffff' );
input.whitespaceChars( '\u0010', '\u0020' );
input.whitespaceChars( '=', '=' );
input.quoteChar( 39 );
socket.setSoTimeout( timeout );
catch( Exception e ) { ...
The timeout is 10000 (10 seconds) which is far much more than necessary.
Regards,
Erika Biesse

Well now, I've found a way around the problem myself.
The java bug is Bug Id 4150737 and it was corrected in Java 1.2.2.
The reason why I must stick to java 1.2.1 is that I call the java code from stored procedures in Oracle 8.1.7, which is JDK 1.2.1 compliant only. (If you the other way around call the OracleDB from java, you can use any java version.)
Here is the WO:
Before the very first input.nextToken I send an empty command, an extra
newline.
After each 'real' command I send, I call input.nextoken until TT_EOF or TT_EOL
because the other system answers 'Error' on the empty command.
Then I send another empty command, and then input.nextoken can read the answer
of the 'real' command.
Ugly, but it works!

Similar Messages

  • Java.sql.SQLException: Io exception: Socket read timed out

    Hello,
    I've a interface RFC - JDBC - RFC.
    When this interface is executing, i have the follow error in RuntimeWorkbench::
    'Unable to execute statement for table or stored procedure. 'TABLAERR' (Structure 'STATEMENT') due to java.sql.SQLException: Io exception: Socket read timed out'
    In SXMB_MONI do not see any message, only
    '  <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry> '
    this error don't occurs always, when and why i don't know..
    I searched for information about this error and nothing found
    why it is happens?
    thank very much

    HI,
    This is not a problem in ur mapping or configuration.
    This is a problem with JDBC connection. This is a common error, that generally comes when the DB server is receiving and processing numerous records. Connection time out or socket read time out.
    First try this:
    In ur JDBC adapter go to Advanced Tab Page and check Transaction Isolation Level as Serializable.
    If still problem persists then take help of basis guys and increase the timeout for the connection, same thing can be asked from DB team.

  • JDBC pooling Oracle driver Socket read timed out

    I run Java EE application on Glassfish server v3 together with Oracle 12 DB on the same machine under Windows Server 2012 64bit. I use latest ojdbc7 driver.
    Connection pool config:
      <jdbc-connection-pool validation-table-name="DUAL" steady-pool-size="20" statement-cache-size="100" associate-with-thread="true" statement-timeout-in-seconds="30" idle-timeout-in-seconds="60" max-wait-time-in-millis="2000" validate-atmost-once-period-in-seconds="20" datasource-classname="oracle.jdbc.pool.OracleDataSource" pool-resize-quantity="5" max-pool-size="60" res-type="javax.sql.DataSource" name="dbPool" is-connection-validation-required="true">
      <property name="driverClass" value="oracle.jdbc.OracleDriver"></property>
      <property name="user" value="xxx"></property>
      <property name="url" value="jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))"></property>
      <property name="password" value="xxx"></property>
      <property name="portNumber" value="1521"></property>
      <property name="databaseName" value="orcl"></property>
      <property name="serverName" value="127.0.0.1"></property>
      <property name="oracle.jdbc.ReadTimeout" value="300000"></property>
      <property name="oracle.net.CONNECT_TIMEOUT" value="10000"></property>
      </jdbc-connection-pool>
    After 2 or 3 hours, when there is more than 1 user (3-5) using my application, it stops responding and I get this in glassfish logs
      javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.allocator|_ThreadID=152;_ThreadName=Thread-2;|RAR5038:Unexpected exception while creating resource for pool dbPool. Exception : javax.resource.spi.ResourceAllocationException: Connection could not be allocated because: IO Error: Socket read timed out
      Local Exception Stack:
      Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException
      Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: IO Error: Socket read timed out
    From the database side it looks like this
    Fatal NI connect error 12560, connecting to:
      (LOCAL=NO)
      VERSION INFORMATION:
      TNS for 64-bit Windows: Version 12.1.0.1.0 - Production
      Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 12.1.0.1.0 - Production
      Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 12.1.0.1.0 - Production
      Time: 13-JUN-2014 03:14:49
      Tracing not turned on.
      Tns error struct:
      ns main err code: 12560
      TNS-12560: TNS:protocol adapter error
      ns secondary err code: 0
      nt main err code: 0
      nt secondary err code: 0
      nt OS err code: 0
      opiodr aborting process unknown ospid (3404) as a result of ORA-609
    When I just reset db listener everything works ok for next 1-2 hours (depends on application load). So temporary solution is to run bat script from windows scheduler to reset the listener every 1h.
    I tried everything I could find - applied these parameters:
      - Sqlnet.ora:
      SQLNET.INBOUND_CONNECT_TIMEOUT=180
      SQLNET.EXPIRE_TIME=5
      - Listener.ora:
      INBOUND_CONNECT_TIMEOUT_LISTENER_IPC=120
    But still without success

    Is the problem here just that you need a connection pool that closes idle connections?  Some pools will close idle connections after a time out period.  And the pool lets you set that time out period.  If the pool you are using doesn't provide that then use a different pool.

  • WebLogic 11g data source connection pooling failed with IO error:socket read timed out.

    Hi all,
    We encountered IO Error: Socket read timed out( <Received exception while creating connection for pool "DS_1": IO Error: Socket read timed out> ) during the creation of data sources in WebLogic 11g. Manual data source testing seems to indicate intermittent connection and the server seems to take a long time to start up with multiple IO errors. We increased the timeout at the database side but it does not seems to help. The database is 11g (11.2.0.3). The database services and listener are up which does not indicate that the database instance is down.

    This particular error means your database is down and socket is timedout. Or the query takes so long that the reader timedout -- unlikely.
    Also, the general weblogic socket write errors, which you might see sometimes means that the client got disconnected before the server wrote results back. This is harmless

  • IO Error: Socket read timed out / IOP_iopinstance1_datasource" closed

    Hi ,
    Can somebody suggest what could be the probable cause of following errors showing up in IOP log file?
    ####<Aug 16, 2011 10:49:11 PM PDT> <Info> <Common> <sc-csttest> <IOPServer_iopinstance1> <weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@357ac2f7> <<anonymous>> <> <0000J7MI9kZFk3vLsYw0yX1EIpFA00002K> <1313560151943> <BEA-000628> <Created "1" resources for pool "IOP_iopinstance1_datasource", out of which "1" are available and "0" are unavailable.>
    ####<Aug 16, 2011 10:49:12 PM PDT> <Info> <JDBC> <sc-csttest> <IOPServer_iopinstance1> <weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@357ac2f7> <<anonymous>> <> <0000J7MI9kZFk3vLsYw0yX1EIpFA00002K> <1313560152146> <BEA-001128> <Connection for pool "IOP_iopinstance1_datasource" closed.>
    java.sql.SQLRecoverableException: IO Error: Socket read timed out
    Thanks
    Lokesh

    This particular error means your database is down and socket is timedout. Or the query takes so long that the reader timedout -- unlikely.
    Also, the general weblogic socket write errors, which you might see sometimes means that the client got disconnected before the server wrote results back. This is harmless

  • About Sun Fire E25K I2c read time out error

    Hi,
    Can anybody give me a breif explaination about the following errors
    which capatured by Sun Fire E25K System Controller:
    Nov 7 08:16:36 2006 E25K-ORADR-sc0 hwad[11914]: [1123
    20621355893934396 ERR I2cComm.cc 410] I2c read time out - bus: 10,
    address: 21
    Nov 7 08:16:36 2006 E25K-ORADR-sc0 hwad[11914]: [1128
    20621356152372741 ERR SelectPll.cc 292] Reading bus failed in address
    0, ecode=1123
    Nov 7 18:45:40 2006 E25K-ORADR-sc0 hwad[11914]: [1123
    20659099583593289 ERR I2cComm.cc 410] I2c read time out - bus: 10,
    address: 21
    Nov 7 18:45:40 2006 E25K-ORADR-sc0 hwad[11914]: [1128
    20659099584735868 ERR SelectPll.cc 138] Reading bus failed in address
    0, ecode=1123
    Nov 8 02:15:01 2006 E25K-ORADR-sc0 hwad[11914]: [1124
    20686060070434628 ERR I2cComm.cc 1095] I2c write time out - bus: 10,
    address: 21
    Nov 8 02:15:01 2006 E25K-ORADR-sc0 hwad[11914]: [1129
    20686060083304777 ERR SelectPll.cc 181] Writing bus failed in address
    0, ecode=1124
    What is the reason to cause "I2c read time out" ?
    TIA.
    Rgds,
    Simon

    Hello Simon,
    these forums are user-to-user. The Fire E25K is definetely beyond the scope of these forums (too expensive, too critical for your business, too complex).
    This system should be under Spectrum coverage (Platinum/Gold).
    Open a service case !
    Let's if you get any response to your posting on the Sun Managers mailing list.
    Michael
    Message was edited by:
    MAALATFT

  • Java.sql.SQLException: Socket read timed out

    // DbTest.java
    <code>
    import java.sql.*;
    import java.io.*;
    public class DbTest
    public static void main(String args[])
    System.out.println("DbTest main(-)");
    Connection con = null;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("class loaded");
    con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcldb","scott","tiger");
    System.out.println("con obj created");
    System.out.println("con obj retrived");
    if (con!=null)
    System.out.println("Connection created successfully");
    else
    System.out.println("Connection refused");
    catch (SQLException e)
    e.printStackTrace();
    catch(Exception e)
    e.printStackTrace();
    </code>
    e:\JavaPrgms\JDBC>javac DbTest.java
    e:\JavaPrgms\JDBC>java DbTest
    DbTest main(-)
    class loaded
    java.sql.SQLException: Socket read timed out
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    531)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:32)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at DbTest.main(DbTest.java:17)
    Caused by: oracle.net.ns.NetException: Socket read timed out
    at oracle.net.ns.Packet.receive(Packet.java:320)
    at oracle.net.ns.NSProtocol.connect(NSProtocol.java:286)
    at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
    ... 7 more
    i am using win 7 64bit os , Oracle 11.2, Jdk 1.7 how can i resolve this problem?
    Edited by: 910776 on Oct 4, 2012 10:49 AM

    Your other thread got locked because all you did was post a bunch of code without explaining what your question or issue was or what the code is supposed to be doing.
    java.sql.SQLException: Socket read timed out
    Simply reposting in this forum isn't enough. Edit your post and and add \ tags on the line before and the line after the code to preserve the formatting.
    Also explain what you are trying to do, the problem you are having and answer the questions I ask you in your other thread.
    {quote}
    What is it you are trying to do?
    Why are you trying to connect to two different databases?
    Do either of those databases actually exist?
    Do they exist on the local machine that Java is running on?
    Can you connect to either of them without using Java?
    {quote}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • ServletInputStream.read() causes read time out error

    this part of the jsp page
    <jsp:useBean id="testServlet" scope="page" class="testServlet" />
    <%
    testServlet.doUpload(request);
    %>
    this is part of the servlet
    public void doUpload(HttpServletRequest request) throws IOException
    BufferedInputStream br = new BufferedInputStream(request.getInputStream());
    /* error here! */
    int i = br.read();
    it will produce an read time out error when i reach the error line
    btw..... i am using tomcat as server and parsing the form :
    <form name="form1" enctype="multipart/form-data" method="get" action="converter.jsp">
    <input type="file" name="filename">
    </form>
    thnx in advance!

    I'd think for the request to have an input stream, the request method on the form would need to be post, not get. Other than that, I don't know why you've created a Servlet - seems like you could have just created a simple class that takes a HttpServletRequest object (doesn't have to be a servlet). Your jsp page is the real servlet that's being called.

  • Socket mostly times out, connection refused.

    Hello,
    I am writing my own version of dc-hub in Java. This is my first networking program I make.
    The main class has a ServerSocket running on port 411 and it will then make another socket when someone connects. Although at the moment 198 users are connected, it seems that the server mostly gives a time out when you try to connect. It's not a firewall problem, because I get them (localhost) as well. The server also runs on localhost.
    This is the code:
    ServerSocket serverSock = new ServerSocket(411);while(true) {      Socket sock = serverSock.accept();      new ConnectorThread(sock,P,U);}
    I really have no clue why I and a lot of other users get time outs...
    I'll post the results from the client program (DC++):
    [17:39] *** Connection refused by target machine
    [17:39] *** Connecting to localhost...
    [17:39] *** Connection refused by target machine
    [17:39] *** Connecting to localhost...
    [17:40] *** Connection refused by target machine
    [17:40] *** Connecting to localhost...
    [17:40] *** Connected
    [17:40] <Hub-Security> Welcome to Tom's personal hubsoftware V1.0
    Oh... yeah... I get Connection refused, while my friends are receiving "Connection time out..."
    Again: It's not a firewall or router problem... I know that 100% sure...
    I hope someone knows how to fix this problem, I've searched the forum without a result for my problem.
    Thank you in advance,
    Tom

    I am running 1.4.2_05 on win2000
    Client code
    //{{{  Imports
    import java.io.*;
    import java.net.* ;
    * This class provides access to the IOR String via HTTP protocol.
    * Server accepts connection from anywhere
    public class SockClient // extends Thread
    //  public static int HTTPIORPort = 2096;
    //  ServerSocket incommingSocket = null;
    //  private int SockTimeout = 5000; // 5 seconds
      SockClient()
        for (int i = 0 ; i < 40 ; i++)
          try
            new GetThread(i);
          catch (Exception e)
            System.out.println("Caught Exception:");
            e.printStackTrace();
      public static void main (String args[])
        new SockClient();   
      class GetThread extends Thread
        int gen;
        GetThread(int i)
          //setDaemon(true);
          setDaemon(false);
          gen = i;
          start();
        public void run()
          int count = 69;
          try
            Socket socket = new Socket(InetAddress.getByName("localhost"), 2096);
            //System.out.println("timeout="+ socket.getSoTimeout());
            InputStream in = socket.getInputStream();
            OutputStream out = socket.getOutputStream();
            String get = "GET / HTTP/1.1\r\n\r\n";
            out.write(get.getBytes());
            byte[] buf = new byte[1024];
            while (count > 0)
              count = in.read(buf);
          catch (Exception e)
            System.out.println("Caught exception (g="+gen+"):("+count+")"+e.toString());
            //e.printStackTrace();
    }Server code:
    *  Handles HTTP requests
    //{{{  Imports
    import java.io.*;
    import java.net.* ;
    import java.util.* ;
    * This class provides access to the IOR String via HTTP protocol.
    * Server accepts connection from anywhere
    public class SockServer // extends Thread
      public static int HTTPIORPort = 2096;
      ServerSocket incommingSocket = null;
      private int sockTimeout = 5000; // 5 seconds
      public static void main (String args[])
        try
          new SockServer();
        catch (Exception e)
          System.out.println("main: Exception"+e.toString());
      SockServer() throws IOException
        System.out.println("Thread running: HTTPListener");
        Socket incommingRequest = null;
        try
          incommingSocket = new ServerSocket(HTTPIORPort);
          System.out.println("Timeout set to "+incommingSocket.getSoTimeout());
          //incommingSocket.setSoTimeout(sockTimeout); // 5 seconds
        catch (Exception e)
          System.out.println("Unable to start HTTP IOR Server");
          System.exit(1);
        //  Ready to Accept connections
        System.out.println("Started HTTPListener listening on "+HTTPIORPort);
        while (true)
          try
            synchronized(incommingSocket)
              incommingRequest = incommingSocket.accept();
              handleRequest(incommingRequest);
          catch (java.net.SocketTimeoutException to)
          catch (Exception e)
            System.out.println("Could not accept HTTP request: "+e.toString());
            break;
        // Close sockets
        try
          incommingRequest.close();
          incommingSocket.close();
        catch (Exception e) { }
        System.out.println("Thread exit: HTTPListener");
      void handleRequest(Socket ic)
        System.out.println("Received HTTP IOR Request from: "+
            ic.getInetAddress().getHostAddress()+":"+ic.getPort());
        final Socket httpRequest = ic;
        final String qmVersion = "1.0";
        final BufferedReader inData ;
        final OutputStream outData;
        try
          inData = new BufferedReader(new InputStreamReader(httpRequest.getInputStream()));
          //PrintWriter outData = new PrintWriter(httpRequest.getOutputStream(), true);
          //DataOutputStream outData = new DataOutputStream(httpRequest.getOutputStream());
          outData = httpRequest.getOutputStream();
        catch (Exception e)
          System.out.println("Caught set up streams:" +e.toString());
          return;
        new Thread (null, null, "HTTPAnswerThread", 10 * 1024)
            String page = null;
            // Anonymous contructor
              setDaemon(true);
              start();
            // Anonymous Thread to handle http request
            public void run ()
                String input = "starting";
              try
                // Ditch incoming header
                while (input.length() != 0)
                  input = inData.readLine();
                  if (input == null)
                    System.out.println("input == null");
                    break;
                page = "IOR:000000000000002349444C3A515F5175656E74696E2F515F496E7465726E616C506F7274616C3A312E300000000000020000000000000070000102000000000D31302E3136322E36332E3438000011690000001C5374616E64617264496D706C4E616D652F011147170A2C332E013928000000020000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000010000002C0000000000000001000000010000001C00000000000100010000000105010001000101090000000105010001";
    //            outData.print(getHeader(page.length()));
    //            outData.print(page);
    //            outData.writeBytes(getHeader(page.length()));
    //            outData.writeBytes(page);
                //byte[] b = getHeader(page.length()).getBytes("ISO-8859-1");
                byte[] b = stringToBytes(getHeader(page.length()));
                outData.write(b);
                outData.flush();
                //byte[]
                //b = page.getBytes("ISO-8859-1");
                b = stringToBytes(page);
                outData.write(b);
                outData.flush();
                outData.close();
                inData.close();
                httpRequest.close();
              catch (Exception e)
                System.out.println("Unhandled http request:");
                e.printStackTrace();
            byte[] stringToBytes(String s)
              ByteArrayOutputStream os = new ByteArrayOutputStream();
              try
                DataOutputStream cob = new DataOutputStream(os);
                cob.writeBytes(s);
                cob.close();
              catch(Exception e)
                System.out.println("Caught unhandled exception:");
                e.printStackTrace();
              return os.toByteArray();
            String getHeader(int len)
              return
                 "HTTP/1.1 200 OK\r\n"+
                 "Date: "+ (new Date()).toString() + "\r\n"+
                 "Content-Type: text/plain\r\n"+
                 "Content-Length: "+ len +"\r\n"+
                 "Server: "+ qmVersion + "\r\n"+
                 "\r\n";
      }

  • Java Socket Connection Time out

    Goal*
    I want to check host/port availability of computers in our network (~100 computers) .. Just check if host is alive and if it has port 445 opened. I want to do this somehow in parallel, so the code execution is as quick as possible.
    My implementation*
    I do this by creating socket connection to the host. Something like this:
            Socket s = null;
            try {
                s = new Socket();
                InetSocketAddress socketAddress = new InetSocketAddress(ipAddress, 445);
                s.connect(socketAddress, 3000);
                if (s.isConnected()) {
                    // do something
            } catch (ConnectException ex) {
                //exception thrown
            } catch (IOException ex1) {
                //exception thrown
            } finally {
                try {
                    // close socket
                    s.close();
                } catch (IOException ex) {
                    Logger.getLogger(ComputerModel.class.getName()).log(Level.SEVERE, null, ex);
            }This code is executed in a loop, where a separate thread is created for every iteration = ~100 separate threads.
    Problem:*
    1.
    It seems to me, that first ~10-15 connections are created ok, but then my code reaches 'IOException' catch block for every subsequent itteration and ex.getMessage() returns "connection time out" (I try to use different timeout values in the 2nd parameter. Values from 3000 up to 20000).
    Is it valid to create 100 separate threads in a loop? Can't I make my NIC to bussy with this ??? What is the maximum ammount of threads, I can create? I did not use threads before, so I have no idea, if max values are near to 10, 100, 1000, or 10000 ..
    2.
    After my code is executed, I enter 'netstat -an' command in my command line and I get bunch of connections, which report status of SYN_SENT for several connections.
    TCP 10.20.11.140:4557 10.30.11.119:445 SYN_SENT
    TCP 10.20.11.140:4558 10.30.11.176:445 SYN_SENT
    TCP 10.20.11.140:4559 10.30.11.100:445 SYN_SENT
    TCP 10.20.11.140:4560 10.30.11.142:445 SYN_SENT
    TCP 10.20.11.140:4561 10.30.11.171:445 SYN_SENT
    TCP 10.20.11.140:4562 10.30.11.143:445 SYN_SENT
    TCP 10.20.11.140:4563 10.30.12.12:445 SYN_SENT
    TCP 10.20.11.140:4564 10.30.12.11:445 SYN_SENT
    TCP 10.20.11.140:4565 10.30.12.21:445 SYN_SENT
    TCP 10.20.11.140:4566 10.30.11.150:445 SYN_SENT
    I also feel, that my computer network response (e.g. firefox browsing) is a bit slower ..
    How shall I handle this problem properly?
    Thx in advance,
    Juraj

    kajbj wrote:
    tschodt wrote:
    kajbj wrote:
    The documentation for netstat explains what SYN_SENT is, but
    I don't know why you have them.The app has asked the TCP stack to transmit SYN
    the TCP stack is now waiting for SYN-ACK.
    If there is no host at that IP address or a host that drops connections (SYN packets) for TCP port 445
    there will never be a SYN-ACK.
    After a few minutes the TCP stack will time out the connection attempt.Yes, I was rather commenting on why his hosts aren't answering. I thought that his case was that all of them should answer :)Akkurat. I was answering more for clarification.
    Someone who does not know your posting history could easily assume you meant
    it was a mystery why netstat was showing SYN_SENT.
    And I figured it would not harm to hint that one possible reason would be that those machines are powered off (no host).

  • ERROR while saving the runtime systems(read time out exception)

    Hi e xperts
    I am configuring NWDI and assigned asll the permissions and roles to the CMS user.I created Domain,in landscape configurater
    created track and saved.
    while saving the rumtime systems the error thrown is
    com.sap.cms.util.exception.conf.CMSCCBSCommunicationException: CBS (URL http://dtlepdev:54400/tc.CBS.Appl/archiveapi2/) communication exception: Read timed out (Service call exception; nested exception is:
    java.net.SocketTimeoutException: Read timed out)
    at com.sap.cms.pcs.conf.communicator.CBSConfCommunicator.removeBuildspace(CBSConfCommunicator.java:382)
    at com.sap.cms.pcs.conf.communicator.CBSConfCommunicator.deleteCreateBuildspace(CBSConfCommunicator.java:338)
    at com.sap.cms.pcs.conf.communicator.CBSConfCommunicator.editBuildspace(CBSConfCommunicator.java:277)
    at com.sap.cms.pcs.conf.communicator.CBSConfCommunicator.createBuildspace(CBSConfCommunicator.java:168)
    at com.sap.cms.pcs.conf.core.services.SystemManagerObject.saveSystem(SystemManagerObject.java:261)
    at com.sap.cms.pcs.conf.core.plugin.DefaultTrack.newTrack(DefaultTrack.java:292)
    at com.sap.cms.pcs.conf.core.TrackManager.editTrack(TrackManager.java:208)
    at com.sap.cms.pcs.conf.manager.CmsConfManager.editTrackConfiguration(CmsConfManager.java:1002)
    at com.sap.cms.pcs.conf.manager.proxy.CmsConfProxyBean.editTrackConfiguration(CmsConfProxyBean.java:489)
    at com.sap.cms.pcs.conf.manager.proxy.LocalCmsConfProxyLocalObjectImpl0_0.editTrackConfigurationand also ..
    Unable to instantiate a Build Space administrator!
    Build Space "DTL_ETRACK_C" [bsID: 27, version: 0] [in-queue: on (privileged), out-queue: "on", processing: off]
    <null>
    [EXCEPTION]
    Buildspace DTL_ETRACK_C does not own the workspace ws/ETRACK/dtl.com_DEFAULTIME/cons/inactive/ .  It is currently not owned by any other buildspace
    at com.sap.tc.cbs.server.rt.bs._BuildSpaceValidator.checkWorkspace(_BuildSpaceValidator.java:120)
    at com.sap.tc.cbs.server.rt.bs._BuildSpaceValidator.validateWSs(_BuildSpaceValidator.java:74)
    at com.sap.tc.cbs.server.rt.bs.BSAdmin.validate(BSAdmin.java:192)
    at com.sap.tc.cbs.server.rt.bs.BSAdmin.updateState(BSAdmin.java:260)
    at com.sap.tc.cbs.server.rt.bs.BSAdminOrc.determineChanges(BSAdminOrc.java:439)
    at com.sap.tc.cbs.server.rt.bs.BSAdminOrc.validateBuildSpaceData(BSAdminOrc.java:219)
    at com.sap.tc.cbs.server.rt.bs.BSAdminOrc.act(BSAdminOrc.java:341)
    at com.sap.tc.cbs.server.rt.impl.CourteousTimer.run(CourteousTimer.java:139)
    at java.lang.Thread.run(Thread.java:534
    In cbs i checked the parametrs they are open and on..
    please suggest me on this ASAP..since 2 days i have been struggling and searched in forums..no perfect solution
    help me out
    perfect soln is immediately awarded...
    I
    THanks
    Mayu

    Hi Mayu,
    here apparently the CMS cannot communicate to CBS properly and then when CMS tries to talk to CBS using a webservice, it times out due to various reasons, see below.
    Strange, I always had this error when the CMS was on a different release like CBS and this caused the communication problem.
    Don't you have an entry in your cms log like this?
    com.sap.cms.util.exception.CMSUnexpectedException                          
    at com.sap.cms.pcs.conf.manager.CmsConfManager.newTrackConfiguration(CmsConfManager.java:666)                                                    
    Caused by: java.lang.IncompatibleClassChangeError
    at com.sap.cms.pcs.conf.communicator.CBSConfCommunicator.openConnection(CBSConfCommunicator.java:84)                                             
    Please provide me the version of the DI_CMS, DI_CBS (and DI_DTR for the sake of completeness).
    You can find this info on the ComponentInfo page.
    On 640/700 this is http://<host>:<port>/sap/monitoring/ComponentInfo
    as of 710 you find this on the "Components" tab of http://<host>:<port>/nwa/sysinfo
    I also think that this is not due to the runtime systems. I guess you have the same problem if you try to create the track without runtime systems, right?
    (The "Unable to instantiate a Build Space administrator!" is not necessarily an error, see the note:
    #1175019 - Unable to instantiate a Build Space administrator!)
    Thank you!
    Best Regards,
    Ervin

  • Read Time Out Exception while generating PDF Document

    Hi,
    We are working on Netweaver 04,Patch SP 16 and trying to generate a Non Interactive PDF on ADS Version SP 14 for printing purpose (Eg.Invoice). This extracts data using EJBs. We used Interactive Form UI element which has various sub elements like static image, etc.
    We are using Acrobat Reader 7.0 for generating PDF.
    The form fetches the records and prints perfectly in the Development System, While creates a 'java.net.SocketTimeoutException: Read timed
    out ' Exception in Production.
    Time Out period for web service container is set to 180 sec in both Dev and Prod.
    Default trace in the production is continously throwing following  error."com.adobe.document.XMLFormService#com.adobe/AdobeDocumentServices#com.adobe.document.XMLFormService
    Thread[XMLForm.exe Error Reader,5,SAPEngine_Application_Thread[impl:3]
    _Group]##0#0#Error##Plain###Service XMLFormService: Native process
    (PID=0) /usr/sap/NWP/JC00/j2ee/os_libs/adssap/XMLFormService/bin/XMLForm.exe terminated abnormally with error code 127# "
    We are running following services in both Prod and Dev for using ADS.
    1. IIOP Provider
    2. Data Manager Service
    3. Data Font Manager Service
    4. XML Module
    5. Document Services Configuration
    6. Document Services License Support Service
    Could some one please  let us know what could be the problem?
    Thanks And Regards,
    Apeksha.

    Hi Markus,
    Thanks for the prompt reply. However, SAP notes 867502
    and 811342 speak about PDF manipulation services, which we are not using in our application. We need to create non interactive form which simply reads the data from the DB and displays it to the users for printing.
    The other 2 notes-826419 and  849851 talk about SP 10,11 and 12, while we are using SP14 for Adobe Services and SP 16 for Netweaver Java Stack.
    The application works perfectly on the Development Server, but not on Production Server. Though all the configurations are same on both the servers, still can you suggest what all things need to be considered ?
    Thanks and Regards,
    Apeksha

  • BI Java SDK in BI 7.0: Read Time out when executing MDX Statements

    Hi all,
    we´ve implemented some functions with the BI JAVA SDK which gets informations out of our BI via the SOAP / XMLA  Service. For some Queries this is not working and the following exception occurs on Java Side:
    --- snip ---     
    Caused by: java.rmi.RemoteException: Service call exception; nested exception is:
         java.net.SocketTimeoutException: Read timed out
    --- snip ---
    The same query works on our Test Enviroment (which has longer execution times) so the difference has to be in some parameters set on the BI System. So the question is:
    Which parameters affect the queries sent via the SOAP / XMLA Service ?
    Any clues ?
    Thank for your help.
    Marco

    Hi Shan,
    that was also my first idea - but it didn´t help. It also does not explain, why the same codings works against the testsystem. Thats why i think the problem is related to some type of (profile-?) parameters on the BI Server itself. But its just a guess ....
    Marco

  • Socket connection time Out - Sender File adapter (Intermittent Issue )

    Dear FrIends,
    In our sender file adapter i am getting the following issue:
    I have already places timout : 120 secs.
    This isssue is occuring intermittently.
    Error occurred while connecting to the FTP server "100.142.131.30:21": java.net.ConnectException: Socket connection timed out: 100.142.131.30:21

    Hi Renu,
    You need to increase the timeout Seconds and check.
    Run the report RSFTP002.
    and check whether the connection to FTP works. Provide the below parameters:
    user = <your ftp user>
    pwd = <your ftp pwd>
    host= <your ftp host/ip>
    command1 = <ls>
    RFC Dest = SAPFTP
    Compress = N
    If the issue still exists, then check  with your BASIS Team.
    http://www.sap2048.com/socket-and-connection-issues-in-java-web-services-1351.htm
    Thanks,

  • ERM 5.3 Error - READ TIME OUT

    Hello GRC Community,
    <br><br>
    I'm running into an issue in GRC 5.3 SP10 for the ERM Module.  When we're building a role and get to the risk analysis step, the analysis runs (at the transaction or object level) for a very long time before it kicks back the following error:
    <br><br>
    <b>Risk analysis failed; Service call exception; nested exception is: java.net.SocketTimeoutException: Read timed out</b>
    <br><br>
    Here are the system Logs, can someone offer any suggestions as to why we're getting this error?
    <br><br>
    2010-04-05 15:48:12,548 [SAPEngine_Application_Thread[impl:3]_11] ERROR com.virsa.re.role.actions.RiskAnalysisAction
    java.lang.Throwable: Service call exception; nested exception is:
         java.net.SocketTimeoutException: Read timed out<br>
         at com.virsa.re.bo.impl.RiskAnalysisBO.performTranLvlRiskAnalysis(RiskAnalysisBO.java:584)<br>
         at com.virsa.re.bo.impl.RiskAnalysisBO.performRiskAnalysisOnSystemFromRiskAnalysisPage<br><br>(RiskAnalysisBO.java:167)<br>
         at com.virsa.re.role.actions.RiskAnalysisAction.performAndShowRiskAnalysis(RiskAnalysisAction.java:1657)<br>
         at com.virsa.re.role.actions.RiskAnalysisAction.execute(RiskAnalysisAction.java:105)<br>
         at com.virsa.framework.NavigationEngine.execute(NavigationEngine.java:273)<br>
         at com.virsa.framework.servlet.VFrameworkServlet.service(VFrameworkServlet.java:230)<br>
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<br>
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)<br>
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)<br>
         at com.virsa.comp.history.filter.HistoryFilter.doFilter(HistoryFilter.java:43)<br>
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)<br>
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:384)<br>
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)<br>
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)<br>
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)<br>
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)<br>
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)<br>
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)<br>
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)<br>
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process<br><br>(ApplicationSessionMessageListener.java:33)<br>
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)<br>
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)<br>
         at java.security.AccessController.doPrivileged(Native Method)<br>
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)<br>
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)<br>
    Edited by: suggsda on Apr 5, 2010 10:28 PM

    Yes, my connectors were established per the configuration guide. The issue with this error was a result of the new connector being established in both ERM & RAR. I neglected to run the proper background jobs in RAR for this connector, so when ERM tried to leverage RAR for the risk analysis the results would time out because there was no data on the RAR side for it to return. Unfortunately this was an oversite on my part as we were migrating from sandbox to development.

Maybe you are looking for