Hello,

I try to open a document. In the Path are whitespace. I replace the whitespace with '%20', for example file:///C:/Dokumente%20und%20Einstellungen/twc/TWC/Documents/1258539328921.odt.

If the ReadOnly property is true or the property is not set, it works well. If the property ist false a IllegalArgumentException is throw.

de.twc.ooo.OOoException: com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one.
   at de.twc.ooo.OOoDocumentHandler.open(OOoDocumentHandler.java:184)
at de.twc.tinyoocom.OOComJudas6Impl.openDocumentVisible(OOComJudas6Impl.java:99)
   at de.twc.tinyoocom.Main.<init>(Main.java:67)
   at de.twc.tinyoocom.Main.main(Main.java:181)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.sun.star.lib.loader.Loader.main(Loader.java:143)
Caused by: com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one. at com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:182)
   at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:148)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:344) at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:313) at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:101) at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:652) at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:154) at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:136)
   at $Proxy5.loadComponentFromURL(Unknown Source)
   at de.twc.ooo.OOoDocumentHandler.open(OOoDocumentHandler.java:172)
   ... 8 more

The complete call is:

PropertyValue[] properties = new PropertyValue[1];
properties[0] = new PropertyValue();
properties[0].Name = "Hidden";
properties[0].Value = Boolean.valueOf(false);

xComponent = xComponentLoader.loadComponentFromURL(
"file:///C:/Dokumente%20und%20Einstellungen/twc/TWC/Documents/1258539328921.odt",
"_blank", FrameSearchFlag.CREATE, properties);

I think this is a bug.

Best regards
Daniel Käfer

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to