https://bugs.documentfoundation.org/show_bug.cgi?id=99668

            Bug ID: 99668
           Summary: UNO: API Java example won't run (ArrayOutOfBounds)
           Product: LibreOffice
           Version: 5.1.2.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: framework
          Assignee: [email protected]
          Reporter: [email protected]

Since some time I tried to convert office files to PDF. The libre office
command-line args doesn't block until the process is finished so I had to
search another solution for converting in Java. 

After some Problems with dlls (solved) I get the API started. But in the Java
example from:
http://api.libreoffice.org/examples/java/DocumentHandling/DocumentConverter.java
has a bug. First you need 4 cli arguments(only 3 are requiered). additionally
the System.outs need to be updatet for the fourth argument. 

I put the following arguments to the program:

"/home/user/projects/test" "pdf" "pdf"  "/tmp/"

 I got an other error:

com.sun.star.task.ErrorCodeIOException: SfxBaseModel::impl_store
<file:////tmp/File.pdf> failed: 0x81a
    at
com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:160)
    at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:124)
    at
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:319)
    at
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:288)
    at
com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:80)
    at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:617)
    at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:144)
    at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:128)
    at com.sun.proxy.$Proxy5.storeAsURL(Unknown Source)
    at DocumentConverter.traverse(DocumentConverter.java:136)
    at DocumentConverter.main(DocumentConverter.java:215)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to