This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes CORBA - OBJECT_NOT_EXIST exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "CORBA - OBJECT_NOT_EXIST exception" Watch "CORBA - OBJECT_NOT_EXIST exception" New topic
Author

CORBA - OBJECT_NOT_EXIST exception

Dan Murphy
Ranch Hand

Joined: Mar 29, 2005
Posts: 126
Hi,

I'm writing a java CORBA client, using the Visibroker ORB. Sometimes when I call methods on the remote object references I get the following exception



Is there some way that I can check beforehand whether this exception will be thrown, i.e. whether the remote object still exists? I thought that I could do it like this:



But I've found that _non_existent() throws exceptions. Is there a better way to check for the state that causes an OBJECT_NOT_EXIST exception?

Regards,
Dan


SCJP, SCJD, SCWCD
Tom Johnson
Ranch Hand

Joined: May 11, 2005
Posts: 142
Why not handle the exception and get a new reference when the exception occurs?

/Tom


<a href="http://faq.javaranch.com/java/UseCodeTags" target="_blank" rel="nofollow">Use Code Tags!!</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CORBA - OBJECT_NOT_EXIST exception
 
Similar Threads
how to check if servant existent in naming server
PetStore Corba Error!
CORBA - object reference valid?
About Exceptions
CorbaCommFailure and re-initializing the ORB