4 Replies Latest reply on Oct 13, 2004 4:20 AM by min-changcha

    Receive timed out

    min-changcha Newbie

      Hi All.

      I am using JBOSS 3.2.5 and testing variety examples.

      I had uploaded my ejb components and tested clients successfully .
      The clients was performing well.

      But when I was calling ejb component in standalone java application that is the one of my clients for testing, the client application occurs a error message.

      The error message is

      "javax.naming.CommunicationException: Receive timed out [Root exception is java.n
      et.SocketTimeoutException: Receive timed out]"

      I am wondering. Because my server was not busy And EJB component call on standalone application was always slower than calling on web application.

      Why do server occurs a error message?
      Please Help me.

        • 1. Re: Receive timed out
          Robert Szalai Newbie

          Please show your client's jndi.properties.

          • 2. Re: Receive timed out
            Joe Woon Newbie

            Hi,
            I am geting the same stuff as well. My screen dump is below. Is there a dummy starter guide for jboss? Some tutorial stuff will be good. How do you check the properties? Appreciate your help.

            # ./RUN_Compiere2.sh
            Compiere Client /software/compiere251/Compiere2
            17:45:27.633 Compiere: Compiere(tm) Release 2.5.1f_2004-09-09 - Smart ERP & CRM - Copyright (c) 1999-2004 Jorg Janke; Implementation: 2.5.1f 20040910-0117 - ComPiere Inc. (C) 1999-2004 Jorg Janke
            17:45:27.654 Compiere: /software/compiere251/Compiere2 - Java HotSpot(TM) Client VM 1.4.2_04-b05 - SunOS 5.8 unknown
            ParseFont= - cannot parse - java.lang.StringIndexOutOfBoundsException: String index out of range: -5
            ParseFont= - cannot parse - java.lang.StringIndexOutOfBoundsException: String index out of range: -5
            ParseFont= - cannot parse - java.lang.StringIndexOutOfBoundsException: String index out of range: -5
            ParseFont= - cannot parse - java.lang.StringIndexOutOfBoundsException: String index out of range: -5
            ParseFont= - cannot parse - java.lang.StringIndexOutOfBoundsException: String index out of range: -5
            ParseFont= - cannot parse - java.lang.StringIndexOutOfBoundsException: String index out of range: -5
            PLAF = Compiere - Compiere Theme
            17:45:33.660 DB: setDBTarget - host2{compiere-compiere-compiere} - DS=true
            CConection.setAppsServerInfo - jnp://host2:1099
            - javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
            - {java.naming.provider.url=jnp://host2:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, jnp.discoveryTimeout=5000, jnp.timeout=5000, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, jnp.sotimeout=5000}
            DB_Oracle.getCachedConnection - java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
            DB_Oracle[null-OracleDataSource,ImplCache=true,MaxStmts=20]
            CConnection.getConnection - jdbc:oracle:thin:@compiere:1521:compiere, AutoCommit=true, TrxIso=READ_COMMITTED - java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
            Language=[English,Locale=en_US,AD_Language=en_US,DatePattern=MM/DD/YYYY,DecimalPoint=true]
            17:45:52.720 DB: closeTarget
            17:45:52.721 DB: setDBTarget - host2{compiere-compiere-compiere} - DS=true
            DB_Oracle.getCachedConnection - java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
            DB_Oracle[jdbc:oracle:thin:@compiere:1521:compiere-OracleDataSource,ImplCache=true,MaxStmts=20]
            CConnection.getConnection - jdbc:oracle:thin:@compiere:1521:compiere, AutoCommit=true, TrxIso=SERIALIZABLE - java.sql.SQLException: Io exception: The Network Adapter could not establish the connection

            • 3. Re: Receive timed out
              min-changcha Newbie

              Hi Robisz

              My jndi-property is below.

              prop = new TISAProperties();
              lookupProp.put(
              Context.INITIAL_CONTEXT_FACTORY,
              "org.jnp.interfaces.NamingContextFactory");
              lookupProp.put(Context.PROVIDER_URL, "jnp://" + prop.get("SERVER_IP") + ":" + prop.get("LOOKUP_PORT"));

              I am thinking jndi-properties don`t have any problems.^^

              • 4. Re: Receive timed out
                min-changcha Newbie

                Hi extremepower^^

                When do the error occurs?
                server start? look up?