Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > RMI dosent work!!

Reply
Thread Tools

RMI dosent work!!

 
 
flashback
Guest
Posts: n/a
 
      02-18-2005
Hello

I am writing a remote administration program and use RMI. The program used
to work, but for some odd reason, everytime I that i now attempt to use the
client to connect to the server, the client produces the following error:

Connection Error:
Can NOT Connect: remote exceptionerror unmarshalling return; nested
exception is:
java.lang.ClassNotFoundException: ServicesImpl_Stub (no security manager:
RMI class loader disabled)

The code that I use to connect to the server is:


s = (Services)Naming.lookup("rmi://"+host+":"+port+"/ControlService");
s.echo("hello!");

the 'echo' method is defined on the server and simply returns the argument
("hello!"). I put this in here to check for connectivity, and it seems to
work, because I get the error above.

The code on the server is:

Services server = new ServicesImpl();
Naming.rebind("rmi://localhost:48594/ControlService", server);

If anyone can help that would be great! I would be more than happy to
thank you in the application credits!

 
Reply With Quote
 
 
 
 
Tor Iver Wilhelmsen
Guest
Posts: n/a
 
      02-18-2005
"flashback" <(E-Mail Removed)> writes:

> java.lang.ClassNotFoundException: ServicesImpl_Stub (no security manager:
> RMI class loader disabled)


Have you set the SecurityManager? Looks like you haven't. Also, make
sure the stub class is actually in the classpath.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Curl dosent in my c++ app dosent seem to be working in apache cgi dannyarcher@gmail.com C++ 1 11-01-2005 01:34 PM
Session_end dosent work! Metallica ASP .Net 1 09-21-2004 06:29 PM
Laptop power light flashes and dosent switch on fastabend Computer Support 1 05-29-2004 03:48 PM
Laptop power light flashes and dosent switch on N_I_A_L_L Computer Support 1 01-11-2004 02:29 PM
Laptop power light flashes and dosent switch on N_I_A_L_L Computer Support 0 01-11-2004 11:53 AM



Advertisments