File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes rmi.NoSuchObjectException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "rmi.NoSuchObjectException" Watch "rmi.NoSuchObjectException" New topic
Author

rmi.NoSuchObjectException

Andres Gorzelany
Greenhorn

Joined: Aug 29, 2005
Posts: 13
Hi Guys !

This is the situation: i always ran my application on the same computer as my beans were deployed (JBoss) in this way:



and then



and finally:



Well, the problem is that now i have to run my app not in the same computer as JBoss, so i change "localhost" to "192.168.1.52" but this is i get when i try to start the application:

javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647)


The exception references to the second Code i write on this post, what i am doing wrong ? do i have to do more to connect to another JBoss Server?

Please Help me,

Thanks in advance
Andres Gorzelany
Greenhorn

Joined: Aug 29, 2005
Posts: 13
Anyone, please ?
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
You need to supply the environment variables to the InitialContext constructor. Check JBoss's documentation for this.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Andres Gorzelany
Greenhorn

Joined: Aug 29, 2005
Posts: 13
I Already do that, i think.. this is the whole code i wrote:



and the same when i try to connect to 192.168.1.52 but changing "localhost" to the IP address...
It's the only thing i change, but that do not works... but works ok with localhost.
Andres Gorzelany
Greenhorn

Joined: Aug 29, 2005
Posts: 13
I tried this


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]


127.0.0.1 ? i am not connecting to my computer anymore, why i am getting this ? so i tried telnet to 192.168.1.52 on port 1099 and i got:


�?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.


What do you think ?
[ September 12, 2005: Message edited by: Andres Gorzelany ]
Andres Gorzelany
Greenhorn

Joined: Aug 29, 2005
Posts: 13
Ok the problem was in my freebsd's hosts file, once i got it right it works fine now
James Dean Moore
Greenhorn

Joined: Sep 23, 2005
Posts: 1
can you provide a detailed explaination of how to fix this problem?
Andres Gorzelany
Greenhorn

Joined: Aug 29, 2005
Posts: 13
Well, as i said, the problem was on my FreeBSD HOSTS file: This is an example of good configuration:



Be sure of set this right.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: rmi.NoSuchObjectException
 
Similar Threads
does JBoss ship with a predefined TopicConnectionFactory?
Cant get reference to Queue
Tomcat lookups JBossMQ name
localhost and host name
JBoss instances cooperating.