A NullPointerException does not give us much to
For 10,000 time post the full stack trace.
Have you checked /etc/hosts or FAQ forum
"Cannot connect to 127.0.0.1" or similar
> A NullPointerException does not give us much to
> work with.
> For 10,000 time post the full stack trace.
> Have you checked /etc/hosts or FAQ forum
> "Cannot connect to 127.0.0.1" or similar
The strange thing is that I can execute the program correctly on my localhost, but when it goes to remote host: viktor.ld.ttu.ee, then the problem arise. The jboss installation on viktor.ld.ttu.ee is absolutely the same as on my localhost, and the port 1099 seems to be open (I tried telnet). I just wonder what could be wrong with it.
The only exception I got is: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
Assuming you don't have any other network related errors, have you tried using the TimedSocketFactory to see if this has any impact? Add the following to your context properties before you do the lookup:
Context jndiContext = new InitialContext(jndiProps);
You can obviously add timeouts. I can't remember when we had this problem or what the exact conditions were but this did solve the issue for the particular environment.
Hope it helps.