-
1. Re: java.net.SocketTimeoutException: Read timed out
adrian.brock Feb 24, 2004 5:53 AM (in response to csplrj1)Your jndi properties are wrong.
This has been posted a thousand times. Is search broken again?
Also post full stacktraces.
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jnp.interfaces
java.naming.provider.url=localhost
Regards,
Adrian -
2. Re: java.net.SocketTimeoutException: Read timed out
csplrj1 Feb 26, 2004 2:17 AM (in response to csplrj1)I tried out but then also the same error
The whole stack trace is as follows
javax.naming.CommunicationException. Root exception is java.rmi.ConnectIOExcept
ion: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:274
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
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(InitialContext.java:347)
at GreetingClient.Greeting1.(Greeting.java:42)
at GreetingClient.Greeting1.main(Greeting.java:83)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:116)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at java.io.DataInputStream.readByte(DataInputStream.java:276)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215
... 8 more
Thanks for the reply and Thanks in advance for your future reply -
3. Re: java.net.SocketTimeoutException: Read timed out
csplrj1 Feb 26, 2004 5:21 AM (in response to csplrj1)I had not included jnet.jar and jnp-client.jar Files in ClassPath
After including these files following is the error
Can you tell me what all files are to included for Client Application to access JBoss Server
Following is the error
javax.naming.CommunicationException: Receive timed out. Root exception is java.
net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive(Native Method)
at java.net.DatagramSocket.receive(DatagramSocket.java:670)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:10
93)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1192)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at GreetingClient.Greeting1.(Greeting.java:42)
at GreetingClient.Greeting1.main(Greeting.java:83)
Again Thanks in advance -
4. Re: java.net.SocketTimeoutException: Read timed out
boxhead Apr 28, 2004 10:48 PM (in response to csplrj1)HAVE YOU FOUND A SOLUTION TO THIS PROBLEM? I BELIEVE THERE IS A BUG IN JBOSS.
-
5. Re: java.net.SocketTimeoutException: Read timed out
thuryn Oct 10, 2007 7:04 AM (in response to csplrj1)have somebody a solution? I've the same problem on 4.0.5 and I cannot find where is the problem.
-
6. Re: java.net.SocketTimeoutException: Read timed out
eminil Sep 30, 2008 7:54 AM (in response to csplrj1)We get the same error, however it appears AFTER the application has been running for awhile. First it works alright.
The problem occurs in Tomcat when trying to lookup an EJB running in JBoss. -
7. Re: java.net.SocketTimeoutException: Read timed out
tiagoaugusto Nov 28, 2012 8:27 AM (in response to csplrj1)Hello guys, i saw that this thread is old, but i got the same error.
When is a single user, no problems appear, but when i put jmeter to run, with about 50 iteration, the error show up. Have you solved the problem? I am using Jboss5.
The got the error from the bold line.
public static T getEjbAsRemote(String jndi, Class clazz) throws NamingException {
Context jndiContext = getInitialContext();
Object ref = jndiContext.lookup(jndi);
T t = (T) PortableRemoteObject.narrow(ref, clazz); return t;
}