This content has been marked as final.
Show 7 replies
-
1. Re: rmi.NoSuchObjectException
jsloup Sep 12, 2005 4:46 AM (in response to kurdt)This is my code, try it:
p.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); p.put("java.naming.provider.url","jnp://" + host + ":" + port); p.put("java.naming.factory.url.pkgs","org.jnp.interfaces");
I think your problem is because of protocol and port is missing. Try it.
Jiri Sloup -
2. Re: rmi.NoSuchObjectException
kurdt Sep 12, 2005 9:03 AM (in response to kurdt)Jiri:
First, Thanks for answering me ! :)
Second, I tried that and i get this that is Really strange!javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
127.0.0.1 ? i am not connecting to my computer anymore, why i am getting this ?
this is my code now:p.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); p.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces"); p.put("java.naming.provider.url","jnp://192.168.1.52:1099");
-
3. Re: rmi.NoSuchObjectException
kurdt Sep 12, 2005 9:08 AM (in response to kurdt)Ok, i can't edit i want to add this:
This is what i get when i try to telnet 192.168.1.52 1099, i see "127.0.0.1" is there something wrong with my jboss setup?
(I have a web server running with it and is working just fine)¼?sr?java.rmi.MarshalledObject|??ù?c?>??I?hashlocBytest?[BobjBytesq~?xp6<ur?[B¼?
°T??xp?¼?thttp://web:83/q~q~uq~??¼?sr org.jnp.server.NamingServer_Stub??xrjava.r
mi.server.RemoteStub????ïße?xr?java.rmi.server.RemoteObject?a?æ
a3??xpw4
UnicastRe
f2 127.0.0.1?J??~?^æÄrÇ?x
Connection to host lost. -
4. Re: rmi.NoSuchObjectException
darranl Sep 12, 2005 9:30 AM (in response to kurdt)Is the machine running JBoss a Linux machine?
You need to edit /etc/hosts so that it contains the IP address of the machine instead of 127.0.0.1 -
5. Re: rmi.NoSuchObjectException
kurdt Sep 12, 2005 9:45 AM (in response to kurdt)It's a FreeBSD Server,and YES it works now!
i am ashamed.. Thanks again -
6. Re: rmi.NoSuchObjectException
gnokit Oct 18, 2005 5:14 AM (in response to kurdt)"Kurdt" wrote:
It's a FreeBSD Server,and YES it works now!
i am ashamed.. Thanks again
thanks alot~!!!!! -
7. Re: rmi.NoSuchObjectException
cypnsv Dec 11, 2006 4:22 AM (in response to kurdt)Hi
I have the same problem , But this is no windows machine, Please help me
I am accessing the rmi in a different wayString rmihost = schedulerURL + "/" + schedulerName; //"rmi://localhost:1099/Scheduler"; logger.debug("scheduler rmi host is : " + rmihost); sch = (Scheduler) Naming.lookup(rmihost); logger.debug("scheduler is : " + sch);
Please help...