This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

"Only instances of org.omg.CORBA.Object can be bound"  RSS feed

 
Ronnie McBob
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

New to RMI and CORBA here...

1. I have created an interface that extends Remote and its single abstract method throws RemoteException

2. I have created a class that extends PortableRemoteObject and implements the interface created in (1.)

3. I have then created a server class to create and bind the object I wish to run remotely...

"RMIExampleHelloImpl exampleRMIObject = new RMIExampleHelloImpl();
initialContext.rebind("test", exampleRMIObject);"

I receive the message that "Only instances of org.omg.CORBA.Object can be bound".

I have created stubs and skeletons using rmic already...

I have also started orbd on port 1050...

"start orbd -ORBInitialPort 1050"

I try to start the server with the following:

"java -classpath . -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory -Djava.naming.provider.url=iiop://localhost:1050 RMIServer"

Quite a few steps there.. hope it's not too messy!

Any help or advice would be great!

Thanks,
Ron
 
Ronnie McBob
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have basically been following the tutorial at:

http://webdocs.math.univ-rennes1.fr/java/j2sdk-1.4/guide/rmi-iiop/tutorial.html#5180

Just in case it makes a difference- I'm running on Windows XP

Thanks,

Ron
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to make sure...

Did you use the -iiop option with rmic? The -iiop option makes CORBA-compatible interfaces(Tie and Stub). If you leave it off you just get normal RMI interfaces(Stub and Skeleton).
 
Ronnie McBob
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes!!

That was it!

My mistake... was not following the instructions properly.

Anyway, thanks... this was really bugging me
[ December 06, 2004: Message edited by: Ronnie McBob ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!