• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UnmarshalException help requested

 
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm getting an UnmarshalException that looks like this:

here is the offending line of code

this line is called from within the Tb4Server class constructor. Does Naming.bind() need to be called once the Tb4Server call has completed and returned an instance?
the rmiregistry is running I think because when I try to start it it tells me the port is already in use(because its not the first time I started it). I have my stub in the same jar file as my other classes and it is in the CLASSPATH. I'm using java 1.4.1_01 so I shouldn't need a skeleton.
I am trying to get this to run on linux. I have tried running it as a regular user and as root and both return the same results.
What can cause a SocketException:connection reset?
thanks for any help
[ March 12, 2003: Message edited by: Chris Shepherd ]
[ March 12, 2003: Message edited by: Chris Shepherd ]
 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
fixed my problem. I had my stub and my remote interface in the jar file where they couldn't be found by rmiregistry.
Since I'm trying to use a local stub and interface instead of having it served by a request to some http server, I have to have these 2 class files in the same directory that I start my rmiregistry from. Or at least thats what got it working for me. If you are looking for a good simple example of rmi without using the http server that some of the other tutorials use, check out this link. If anyone can post a way to tell rmiregistry where to look for those class files, I would be interested to know it.
Hope this helps anyone who is searching through and finds this.
[ March 13, 2003: Message edited by: Chris Shepherd ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic