1 Reply Latest reply on Dec 24, 2004 12:28 AM by mazz

    NPE when creating Socket

    mazz Master

      The underlying cause of this may be me (I'm telling my client to connect to 127.0.0.1 but TCPView shows my true IP as the one bound by the server - would have thought that would work but maybe not)... anyway, this is throwing a NullPointerException in a weird place. Not sure if that's what is intended or if there is some weirdness going on that needs to be fixed. See stack trace below. Consider this an FYI, because I'm not sure the actual cause of the problem isn't me.

      Calling remote echo server with locator uri of: socket://127.0.0.1:8084
      java.lang.NullPointerException
       at org.jboss.remoting.transport.socket.SocketClientPool.access$0(SocketClientPool.java:32)
       at org.jboss.remoting.transport.socket.SocketClientPool$1.close(SocketClientPool.java:117)
       at java.net.Socket.<init>(Socket.java:311)
       at java.net.Socket.<init>(Socket.java:153)
       at org.jboss.remoting.transport.socket.SocketClientPool$1.<init>(SocketClientPool.java:107)
       at org.jboss.remoting.transport.socket.SocketClientPool.getNextAvailable(SocketClientPool.java:107)
       at org.jboss.remoting.transport.socket.SocketClientPool.connect(SocketClientPool.java:48)
       at org.jboss.remoting.transport.socket.SocketClientInvoker.handleConnect(SocketClientInvoker.java:81)
       at org.jboss.remoting.RemoteClientInvoker.connect(RemoteClientInvoker.java:316)
       at org.jboss.remoting.Client.connect(Client.java:89)
       at org.jboss.remoting.Client.invoke(Client.java:167)
       at org.jboss.network.watchdog.command.echo.client.EchoCommandClient.makeInvocation(EchoCommandClient.java:46)
       at org.jboss.network.watchdog.command.echo.client.EchoCommandClient.main(EchoCommandClient.java:73)