2 Replies Latest reply on Jan 21, 2004 11:29 AM by gary_kephart

    ConnectException on NamingContext.lookup

    gary_kephart

       

      "gary_kephart" wrote:
      I've looked around on the web and the JBoss forums, but can't find an answer. Maybe the EJB faeries will magically have an answer for me by morning. :)

      I'm running a Swing client app which connects to JBoss 3.2.1. On its first NamingContext.lookup, the app hangs and then times out (I guess) and gets a ConnectException. I've checked that the java.naming.provider.url property is set (68.4.172.99:1099). In the server log, I see this:

      2004-01-20 21:57:22,726 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[default]: Servlet.service() for servlet default threw exception
      java.net.SocketException: Software caused connection abort: socket write error
      at java.net.SocketOutputStream.socketWrite0(Native Method)

      My machine is connected to a wireless router (but hardwired) and that is connected to a cable modem. Zone Alarm's not showing anything being blocked.

      This all works well when running on my machines on my network. It's just that none of my real users can get it to work. So, it seems like it's some sort of network problem, but I'm _not_ a network guru.

      Can anyone give me a hint on what's going wrong?

      TIA,
      Gary

      BTW, if you try to connect to my machine (while trying to solve this) and it asks for a username/password, use demo/demo. That will connect you to the demo database.


        • 1. Re: ConnectException on NamingContext.lookup
          milowe

           

          "milowe" wrote:
          Whats the cause of the ConnectException?
          Have you verified the routing?
          telnet 68.4.172.99 1099
          traceroute 68.4.172.99 (tracert 68.4.172.99)
          What JDK version is used?

          And browse the log file of the router.


          • 2. Re: ConnectException on NamingContext.lookup
            gary_kephart

             

            "gary_kephart" wrote:
            We're using JDK 1.4

            Here's the excerpt from the Web Start log. I'll post the tracert later.

            Logging to file: C:\My Documents\dr_dee.err
            java.naming.provider.url=68.4.172.99:1099
            [OpenEditorAction.handleServerException] java.net.ConnectException:
            java.net.ConnectException: Connection timed out: connect
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(Unknown Source)
            at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
            at java.net.PlainSocketImpl.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at java.net.Socket.<init>(Unknown Source)
            at java.net.Socket.<init>(Unknown Source)
            at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
            at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
            at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
            at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
            at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
            at sun.rmi.server.UnicastRef.invoke(Unknown Source)
            at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
            at javax.naming.InitialContext.lookup(Unknown Source)
            at com.dr_dee_sw.dr_dee.api.delegate.Lookup.lookup(Lookup.java:51)
            at com.dr_dee_sw.dr_dee.api.delegate.SessionLookup.lookup(SessionLookup.java:87)
            at com.dr_dee_sw.dr_dee.api.delegate.FaireEditorDelegate.<init>(FaireEditorDelegate.java:56)
            at com.dr_dee_sw.dr_dee.client.main.action.OpenFaireEditorAction.getEditorDelegate(OpenFaireEditorAction.java:50)
            at com.dr_dee_sw.dr_dee.client.main.action.OpenEditorAction$1.run(OpenEditorAction.java:72)
            at foxtrot.AbstractWorkerThread$2.run(AbstractWorkerThread.java:49)
            at java.security.AccessController.doPrivileged(Native Method)
            at foxtrot.AbstractWorkerThread.runTask(AbstractWorkerThread.java:45)
            at foxtrot.workers.DefaultWorkerThread.run(DefaultWorkerThread.java:153)
            at java.lang.Thread.run(Unknown Source)