This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Applets and RMI

 
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
 
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
 
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)
 
no wonder he is so sad, he hasn't seen this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic