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

Applets and RMI

 
Sid Scud
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all..
I am trying on an example, I downloaded oon RMI callbaks. I want to use applets for it. Basically its a chat application that I want to develop. When I am using standalone code, its working, but when I use applets for it..
The exception I am getting is as follows :
Exporting the Applet
Object Exported
Exception in registering. : java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.net.MalformedURLException: no protocol: Files/Allaire/JRun/servers/default/Chat/WEB-INF/classes/rmichat/
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.net.MalformedURLException: no protocol: Files/Allaire/JRun/servers/default/Chat/WEB-INF/classes/rmichat/
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.net.MalformedURLException: no protocol: Files/Allaire/JRun/servers/default/Chat/WEB-INF/classes/rmichat/
java.net.MalformedURLException: no protocol: Files/Allaire/JRun/servers/default/Chat/WEB-INF/classes/rmichat/
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at RMIServer_Stub.registerTimeMonitor(Unknown Source)
at Applet1.init(Applet1.java:63)
at sun.applet.AppletPanel.run(AppletPanel.java:344)
at java.lang.Thread.run(Thread.java:484)

Please help
Thank you in advance...
-Sid
 
Srikanth Chirravuri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sid,
I have a similar problem, I am trying to run an RMI application which was running fine locally using an appletviewer but due to some reason it does not run with a browser. It says "loading the applet" but doesn't show anything for a long time. If you were able to solve your problem then please do let me know how to go about it. I guess the reason might be due to the difference in versions of JDK provided by the browser and the applet.
Thanks in advance for any help..
Shri
 
sri pit
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could be because of IP address mismatch (use the same ip address in the URL that u r usin in RMI svr)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic