ErrorCodeIOException 2074 while running PDF export example (java)

Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ErrorCodeIOException 2074 while running PDF export example (java)

Esteban R
I'm a beginner in this API.

Environment: windows 10, java version "1.8.0_112", OpenOfficeSDK.4.1.3, OpenOffice4.1.3


I have tried to run the following example:

https://wiki.openoffice.org/wiki/API/Tutorials/PDF_export


<https://wiki.openoffice.org/wiki/API/Tutorials/PDF_export>and I get the following exception (added some debug code to get the error code):

com.sun.star.task.ErrorCodeIOException:
Error code: 2074
at com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:173)
at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:139)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:334)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:303)
at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:87)
at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:636)
at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:146)
at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:128)
at com.sun.proxy.$Proxy8.storeToURL(Unknown Source)
at com.example.PDF_Export.main(PDF_Export.java:79)


Please note that the complete source code is not available (the "here" link just points to api.openoffice.org) in the abovementioned page so I have taken some code from another examples (for example to avoid using the inexistent "Helper" class).


Maybe someone can provide the complete source code or tell me how to solve this issue?
Loading...