RMI java doesn't create skeleton class

Posted by pavithra on Stack Overflow See other posts from Stack Overflow or by pavithra
Published on 2010-12-28T06:45:16Z Indexed on 2010/12/28 6:54 UTC
Read the original article Hit count: 272

Filed under:
|

I wrote a remote service MyremoteImpl.java and used following command after compiled it.

rmic MyRemoteImpl

I learned that this method suppose to create stub class and a skeleton class but I can only see the stub class, why is that?

The other problem I faced after run rmiregistry I started the service but it gives following error, I doubt I get this error as I'm missing skeleton class?

 java.net.MalformedURLException: invalid URL String: Remote Hello
    at java.rmi.Naming.parseURL(Unknown Source)
    at java.rmi.Naming.rebind(Unknown Source)
    at RMIservice.MyRemoteImpl.main(MyRemoteImpl.java:22)
Caused by: java.net.URISyntaxException: Illegal character in path at index 6: Remote Hello
    at java.net.URI$Parser.fail(Unknown Source)
    at java.net.URI$Parser.checkChars(Unknown Source)
    at java.net.URI$Parser.parseHierarchical(Unknown Source)
    at java.net.URI$Parser.parse(Unknown Source)
    at java.net.URI.<init>(Unknown Source)
    at java.rmi.Naming.intParseURL(Unknown Source)
    ... 3 more

Please help me to solve this, Thanx in advance!!!

© Stack Overflow or respective owner

Related posts about java

Related posts about rmi