Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP !!!!!

 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I was in my final testing and tried this on several of my coworkers computers. In all computers except mine with java installed I get this error:

StartServer: Starting server...
ERROR: There was a problem with the network connection,
please check your settings and try again. The message was
RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: suncertify.db.RemoteFactoryImpl_Stub

I look into the jar files and the RemoteFactoryImpl_Stub class is there. Now, these jar files work on my home and work pc's, but not on other boxes, so can someone please lead me down a path please...
Thanks in advance
[ January 21, 2003: Message edited by: Matt Ghiold ]
 
Sai Prasad
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The _Stub class files are not in RMI Registry CLASSPATH. Before starting RMI Registry set the jar file with _Stub files in the CLASSPATH.
 
Arjan Broer
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sure sounds familiar. I've been strugling with the same problem for a few days and i came to a point to consult my doctor for my blood presure.
The some newbie junior developer asked me if i started the correct rmiregistry.
Explicit start of %JAVA_HOME%\bin\rmiregistry solved the problem. Somehow my %path% variable got screwed up.
Don't know if you have the same problem, but the sympthoms are alike. Give it a go. If this doesn't solve your problem .... good luck
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Explicit start of %JAVA_HOME%\bin\rmiregistry solved the problem. Somehow my %path% variable got screwed up.

Tried this and it fixed it...
So, now my question is, how do I gurantee that sun doesn't have the same path issues.
I'd hate for them to start the server, then get a Class cast exception and fail it on the spot.
Any help is greatly appreciated..
[ January 22, 2003: Message edited by: Matt Ghiold ]
 
Bernhard Woditschka
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matt,
there have been a lot of discussions whether to dynamic download stubs. There seems to be a consent among us cowboys, that this is not needed, so if you just include the stub class in the client jar no dynamic download is needed.
Hope this helps
Bern
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bernard,
I agree completely, and for these tests I did on my coworkers PC it never worked, in that I got that class cast exception. But, when I was using start rmiregistry in windows. Now, if I do a c:\jdk1.3.1_03\bin\rmiregistry and bring up the rmiregistry that way my jars run fine.
So, my question is should I not worry about it? or do I need to try to find out the root cause of why start rmiregistry vs c:\jdk1.3.1_03\bin\rmiregistry doesn't work.
Thoughts?
 
Bernhard Woditschka
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well i had simmilar problems and i found out that i was using dynamic downloading of the stub. This seems to work only when a lot of things are in their place (e.g. the paths for the rmiregistry).
Every machine was somehow different (windows, linux,...)
So I decided completely against dynamic downloading and included the stub in the client.jar.
Bern
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

.. or do I need to try to find out the root cause of why start rmiregistry vs c:\jdk1.3.1_03\bin\rmiregistry doesn't work.

The simplest and perfectly acceptable solution is to start the registry from within your server. Do not use security policy, security managers, dynamic downloading of stubs, or codebase and classpath parameters. That will make things much easier for you and the assessor.
Eugene.
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The simplest and perfectly acceptable solution is to start the registry from within your server. Do not use security policy, security managers, dynamic downloading of stubs, or codebase and classpath parameters. That will make things much easier for you and the assessor.

How would you go about doing that? I thought the service had to be up and running beforehand?
 
Bernhard Woditschka
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This just needs one line:

Bern
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!
Time, to submit...
 
Bernhard Woditschka
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good luck
Bern
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic