Example in Java

Adriam Delgado Rivero adrivero at uci.cu
Mon Dec 9 08:12:07 PST 2013


this problem is in LIbreOffice 4.1.3.2 exactly and work perfect in Libreoffice 3.6...
this code (http://api.libreoffice.org/examples/java/Text/SWriter.java  ) 
Does this code works for you in Libo4.1.3.2?

----- Mensaje original -----
De: "Stephan Bergmann" <sbergman at redhat.com>
Para: "Adriam Delgado Rivero" <adrivero at uci.cu>
CC: libreoffice at lists.freedesktop.org
Enviados: Lunes, 9 de Diciembre 2013 10:50:28
Asunto: Re: Example in Java

On 12/09/2013 02:59 PM, Adriam Delgado Rivero wrote:
> This is the error message: in line 99 (insertString)
>
> Exception in thread "main" com.sun.star.lang.DisposedException
> 	at com.sun.star.lib.uno.environments.remote.JobQueue.removeJob(JobQueue.java:214)
> 	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:307)
> 	at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:91)
> 	at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:640)
> 	at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:150)
> 	at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:132)
> 	at com.sun.proxy.$Proxy6.insertString(Unknown Source)
> 	at Calendario.SWriter.main(SWriter.java:99)
> Caused by: java.io.EOFException
> 	at java.io.DataInputStream.readInt(DataInputStream.java:392)
> 	at com.sun.star.lib.uno.protocols.urp.urp.readBlock(urp.java:359)
> 	at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:96)
> 	at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:109)

I cannot reproduce your problem, at least not when running that test 
from a recent master SDK on Linux,

   $ cd instdir/sdk
   $ ./setsdkenv_unix

   $ cd examples/java/Text
   $ make
   $ make SWriter.run

So, what is your platform (Linux, Windows, ...), what is your exact LO 
version, and how exactly do you run the test (from within the LO SDK, 
like how I did above)?

Stephan
________________________________________________________________________________________________
III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 2014. Ver www.uci.cu
________________________________________________________________________________________________
III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 2014. Ver www.uci.cu


More information about the LibreOffice mailing list