• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

RMI server startup exception

 
Ranch Hand
Posts: 79
Android Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have written a simple RMI program and compiled it using JDK 1.6_14. I am starting the rmi registry explicitly on a particular port which works properly. When i proceed to start the server where i am binding the remote object the program fails:

Here are the programs i have written:


Remote Interface



RemoteImpl class


RemoteServer class


and the client


And the exception i am getting is as follows:



Another question i had was after Java 2 rmic creates only stubs but after reading the following documentation:
http://download.oracle.com/javase/1.5.0/docs/tooldocs/windows/rmic.html

I feel that we need not even create the stubs for client using 'rmic' command. Am i right ? Its all reflection i guess ?

Or if we have to create stubs then i guess we need to supply the created 'stub' to the client ?
Please correct me if i am missing something.


Thanks,
Adithya.
 
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic