[JBoss-user] Receive timed out exception when looking up Entity bean
Title: Receive timed out exception when looking up Entity bean Hi I am trying to connect to an Entity bean from a java class. I am getting the following exception. 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 day10.Client.main(Client.java:21) My client code is --- Properties env = new Properties(); env.put(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory); env.put(Context.PROVIDER_URL, jnp://localhost:1099); env.put( java.naming.factory.url.pkgs,org.jboss.naming:org.jnp.interfaces); initialContext = new InitialContext(env); Object object = initialContext.lookup(); I am using JBoss 3.2.2. Can anyone pls help. Regards Rajesh This electronic mail (including any attachment thereto) may be confidential and privileged and is intended only for the individual or entity named above. Any unauthorized use, printing, copying, disclosure or dissemination of this communication may be subject to legal restriction or sanction. Accordingly, if you are not the intended recipient, please notify the sender by replying to this email immediately and delete this email (and any attachment thereto) from your computer system...Thank You
RE: [JBoss-user] Receive timed out
I can also specify it through code right ? that's what I'm doing now. -Original Message- From: Sacha Labourey [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 11:26 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Receive timed out you need to set correctly your jndi settings in jndi.properties for the *client* (it must be on the client classpath). -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de [EMAIL PROTECTED] Envoyé : lundi, 12 août 2002 12:16 À : [EMAIL PROTECTED] Objet : [JBoss-user] Receive timed out Hello ! I have a simple session bean. Also have a client that calls a method on the session bean. The initial context is obtained, but when I go get the home interface the following exception is thrown to the client : 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:91 9) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:997) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:436) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429) at javax.naming.InitialContext.lookup(InitialContext.java:347) I have JBoss 3.0.0 and the client on the same machine both with jdk1.4.0. Many thanks --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Receive timed out
So, post your lookup code so we can see what is wrong. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de [EMAIL PROTECTED] Envoyé : mardi, 13 août 2002 11:52 À : [EMAIL PROTECTED] Objet : RE: [JBoss-user] Receive timed out I can also specify it through code right ? that's what I'm doing now. -Original Message- From: Sacha Labourey [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 11:26 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Receive timed out you need to set correctly your jndi settings in jndi.properties for the *client* (it must be on the client classpath). -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de [EMAIL PROTECTED] Envoyé : lundi, 12 août 2002 12:16 À : [EMAIL PROTECTED] Objet : [JBoss-user] Receive timed out Hello ! I have a simple session bean. Also have a client that calls a method on the session bean. The initial context is obtained, but when I go get the home interface the following exception is thrown to the client : 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:91 9) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:997) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:436) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429) at javax.naming.InitialContext.lookup(InitialContext.java:347) I have JBoss 3.0.0 and the client on the same machine both with jdk1.4.0. Many thanks --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Receive timed out
Hello ! I have a simple session bean. Also have a client that calls a method on the session bean. The initial context is obtained, but when I go get the home interface the following exception is thrown to the client : 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:91 9) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:997) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:436) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429) at javax.naming.InitialContext.lookup(InitialContext.java:347) I have JBoss 3.0.0 and the client on the same machine both with jdk1.4.0. Many thanks --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Receive timed out
you need to set correctly your jndi settings in jndi.properties for the *client* (it must be on the client classpath). -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de [EMAIL PROTECTED] Envoyé : lundi, 12 août 2002 12:16 À : [EMAIL PROTECTED] Objet : [JBoss-user] Receive timed out Hello ! I have a simple session bean. Also have a client that calls a method on the session bean. The initial context is obtained, but when I go get the home interface the following exception is thrown to the client : 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:91 9) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:997) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:436) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429) at javax.naming.InitialContext.lookup(InitialContext.java:347) I have JBoss 3.0.0 and the client on the same machine both with jdk1.4.0. Many thanks --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user