Discussion:
[Libreoffice-bugs] [Bug 43433] New: DisposedException: java.io.IOException: com.sun.star.io.IOException: EOF reached
b***@freedesktop.org
2011-12-01 19:42:28 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=43433

Bug #: 43433
Summary: DisposedException: java.io.IOException:
com.sun.star.io.IOException: EOF reached
Classification: Unclassified
Product: LibreOffice
Version: LibO 3.4.2 release
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: UNCONFIRMED
Severity: major
Priority: medium
Component: Libreoffice
AssignedTo: libreoffice-***@lists.freedesktop.org
ReportedBy: ***@novell.com


Kablink Vibe (it used to be named Kablink Teaming - see
http://kablink.org/teaming) uses OpenOffice or LibreOffice for document
conversions. It uses it these convert various document formats to XML (for
search word extraction) or to HTML (for rendering in a browser.) With the
latest versions of LibreOffce (i.e., 3.4.x), the conversions have stopped
working with the following exception:

2011-12-01 15:49:03,809 ERROR [http-8080-4]
[org.kablink.teaming.module.folder.impl.DefaultFolderCoreProcessor] -
AbstractBinderProcessor.buildIndexDocumentFromFile( EXCEPTION:1 ):
com.sun.star.lang.DisposedException: java.io.IOException:
com.sun.star.io.IOException: EOF reached -
socket,host=localhost,port=8100,localHost=localhost,localPort=41133,peerHost=localhost,peerPort=8100
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java:237)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:144)

If we revert of LibreOffice 3.3.4 (or OpenOffice 3.3.0), the exact same code
works without failure. It's only with versions 3.4.x of LibreOffice that the
failures started happening.

At the lowest level, Kablink Vibe uses the storeToURL() method off an XStorable
object to perform the conversion. In the failure case, the code doesn't reach
the point of that call as it appears to die in Vibe's call to the resolve()
method off an XUnoUrlResolver object. The code being executed up to the point
of failure are:

/* Bootstraps a component context with the jurt base components
* registered. Component context to be granted to a component for
running.
* Arbitrary values can be retrieved from the context.
*/
xcomponentcontext = Bootstrap.createInitialComponentContext(null);

/* Gets the service manager instance to be used (or null). This
method has
* been added for convenience, because the service manager is a
often used object.
*/
xmulticomponentfactory = xcomponentcontext.getServiceManager();

/* Creates an instance of the component UnoUrlResolver which
supports the services specified by the factory. */
objectUrlResolver =
xmulticomponentfactory.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver",
xcomponentcontext);

// Create a new url resolver
xurlresolver =
(XUnoUrlResolver)UnoRuntime.queryInterface(XUnoUrlResolver.class,
objectUrlResolver);

// Resolves an object that is specified as follow:
// uno:<connection description>;<protocol description>;<initial
object name>
objectInitial = xurlresolver.resolve("uno:socket,host=" + _host +
",port=" + _port + ";urp;StarOffice.ServiceManager");

Although Kablink Vibe administrators have a workaround (downgrade to
LibreOffice 3.3.4 or OpenOffice 3.3.0), it's unsatisfactory for openSuSE users
in that the standard LibreOffice version bundled with openSuSE is version
3.4.2, which does not work. Note that I've tried this using version 3.4.4rc2
as downloaded from www.libreoffice.org with the same result. If I download
version 3.3.4 and use that, everything works.

Again, using the EXACT SAME installed version of Kablink Vibe, the conversions
work without error with LibreOffice 3.3.4 and OpenOffice 3.3.0. It's only
since the update for LibreOffice 3.4.x that the failures started.

Note that Kablink Vibe is an open source project and the source can be freely
downloaded. The source modules within that project where the failures occur
include TextOpenOfficeConverter.java and HtmlOpenOfficeConverter.java.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@freedesktop.org
2012-01-21 11:34:28 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=43433

--- Comment #1 from Bodo Wippermann <***@bodow.de> 2012-01-21 11:34:28 UTC ---
i have exact the same problem with version 3.4.2 while 3.3.4 works.
in my program the Exception is raised at a call to
bridge = xBridgeFactory.createBridge("", "urp",
"socket,host=127.0.0.1,port=9000", null);
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@freedesktop.org
2012-01-21 19:43:25 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=43433

--- Comment #2 from Bodo Wippermann <***@bodow.de> 2012-01-21 11:43:25 PST ---
(In reply to comment #1)
Post by b***@freedesktop.org
i have exact the same problem with version 3.4.2 while 3.3.4 works.
in my program the Exception is raised at a call to
bridge = xBridgeFactory.createBridge("", "urp",
"socket,host=127.0.0.1,port=9000", null);
CORRECTION: The bridge is created, but the next call fails;

bridge.getInstance("StarOffice.ServiceManager");
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@freedesktop.org
2012-01-21 20:35:07 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=43433

--- Comment #3 from Bodo Wippermann <***@bodow.de> 2012-01-21 12:35:07 PST ---
after replacing the necessary jar-files with those from 3.4.2 everything works
fine ;)
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@freedesktop.org
2012-04-27 14:07:19 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=43433

***@gmail.com changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gmail.com

--- Comment #4 from ***@gmail.com 2012-04-27 07:07:19 PDT ---
Thanks for bugreport
Please, verify if in last version of LibreOffice still reproducible
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@freedesktop.org
2012-04-27 12:34:50 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=43433

--- Comment #5 from Dennis Foster <***@novell.com> 2012-04-27 12:34:50 UTC ---
In response to comment#4: Using LibreOffice 3.5.2, the same exception I
originally reported continues to occur. With LibreOffice 3.5.2, the exception
I'm getting is:

com.sun.star.lang.DisposedException: java.io.IOException:
com.sun.star.io.IOException: EOF reached -
socket,host=localhost,port=8100,localHost=localhost,localPort=58374,peerHost=localhost,peerPort=8100
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java:237)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:144)
...and on and on...

This exception occurs with each and every attempt to convert a document using
LibreOffice 3.5.2. Note that version 3.3.* and earlier of LibreOffice continue
working without error.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@freedesktop.org
2012-04-28 08:39:01 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=43433

--- Comment #6 from ***@gmail.com 2012-04-28 01:39:01 PDT ---
Thanks for additional testing
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@freedesktop.org
2012-04-28 08:39:25 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=43433

***@gmail.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Keywords| |regression
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@freedesktop.org
2012-07-05 20:50:00 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=43433

Caolán McNamara <***@redhat.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|libreoffice-***@lists.free |***@redhat.com
|desktop.org |
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Loading...