RMI failure when plugin classpaths have spaces [message #4792] |
Tue, 22 April 2003 19:34  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.12948 seconds