To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=95162
------- Additional comments from [EMAIL PROTECTED] Mon Nov 3 20:34:08 +0000 2008 ------- milek->sb: I managed to fix one half of the remaining bug. It's enough to add the following to getJarMainAttributes(URL jar): JarInputStream s = new JarInputStream(new URL( URLDecoder.decode(jar.toString(), System.getProperty("sun.jnu.encoding", "UTF-8"))).openStream()); But immediately after it I get IllegalArgumentException with cl2.loadClass(name) in RegistrationClassFinder. I instrumented the exception and here's the stack: java.lang.IllegalArgumentException sun.net.www.ParseUtil.decode(Unknown Source) sun.misc.URLClassPath$JarLoader.<init>(Unknown Source) sun.misc.URLClassPath$3.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) sun.misc.URLClassPath.getLoader(Unknown Source) sun.misc.URLClassPath.getLoader(Unknown Source) sun.misc.URLClassPath.getResource(Unknown Source) java.net.URLClassLoader$1.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) java.net.FactoryURLClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) com.sun.star.comp.loader.RegistrationClassFinder.find(RegistrationClassFinder.java:90) com.sun.star.comp.loader.JavaLoader.writeRegistryInfo(JavaLoader.java:433) I tried decoding the URL the same way as above for class loader constructor but it didn't work (the version with UTF-8 as-is, UTF-8 percent-encoded and UTF-16 failed). If anyone has an idea what is the proper representation of the URL for loadClass (that is, for UnoClassLoader, which is in turn only using the inherited method from URLFactoryClassLoader, as far as I remember), I'd appreciate it. Note that there is some strange problem here: the string produced by explicitly calling sun.net.www.ParseUtil.decode on url.toString() is the same as url.toString() and there is no error in that case. So the problem is probably not just with ParseUtil.decode(). Any pointers, anyone? --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]