Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » RMI failure when plugin classpaths have spaces
RMI failure when plugin classpaths have spaces [message #4792] Tue, 22 April 2003 19:34 Go to next message
Eclipse UserFriend
We currently have eclipse plugins that communicate with a remote server via
RMI. There appears to be a bug in the Eclipse platform that fails to URL
encode
whitespaces when determining the pluginclassloader's classpath. Since
whitespaces
are not allowed in URLs, it appears that the responsibility lies in the
Eclipse
platform to properly encode these URLs for us. If eclipse
2.x is currently installed in a directory w/ spaces in 'em, our plugin fails
to work with the following exception:

"java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.net.MalformedURLException: no protocol:
Files/eclipse/plugins/myplugin/foo.jar
!STACK 0
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/eclipse/plugins/myplugin/foo.jar

There is a bug currently opened for this
http://bugs.eclipse.org/bugs/show_bug.cgi?id=22395 (currently a P3)

This seems like a pretty critical bug that needs to be addressed quickly.
Anybody else affected by this?

Thanks
greg
Re: RMI failure when plugin classpaths have spaces [message #28752 is a reply to message #4792] Thu, 08 May 2003 05:24 Go to previous message
Eclipse UserFriend
Originally posted by: giherf.voila.fr

I dn't know if it's possible,

but for OS, you must use : "
pearhaps, include " in the path :
for example :
C:\mes documents\giher
"C:\mes documents\giher"

URL.getFile() : String

use : String path = "\""+ URL.getFile() + ""\""

but, i d'nt know, if your fonction accept other object as URL or String .

good luck;


Greg Kim wrote:


> We currently have eclipse plugins that communicate with a remote server via
> RMI. There appears to be a bug in the Eclipse platform that fails to URL
> encode
> whitespaces when determining the pluginclassloader's classpath. Since
> whitespaces
> are not allowed in URLs, it appears that the responsibility lies in the
> Eclipse
> platform to properly encode these URLs for us. If eclipse
> 2.x is currently installed in a directory w/ spaces in 'em, our plugin fails
> to work with the following exception:

> "java.rmi.UnmarshalException: error unmarshalling arguments; nested
> exception is:
> java.net.MalformedURLException: no protocol:
> Files/eclipse/plugins/myplugin/foo.jar
> !STACK 0
> 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/eclipse/plugins/myplugin/foo.jar

> There is a bug currently opened for this
> http://bugs.eclipse.org/bugs/show_bug.cgi?id=22395 (currently a P3)

> This seems like a pretty critical bug that needs to be addressed quickly.
> Anybody else affected by this?

> Thanks
> greg
Previous Topic:[ANN] Jetty Launcher plugin 1.0.2
Next Topic:Surely the Search code can't be that badly factored?
Goto Forum:
  


Current Time: Fri Apr 18 22:24:30 EDT 2025

Powered by FUDForum. Page generated in 0.12948 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top