Hi Tobias.

Thanks in advance for your help.



The exception is raised in the following code



    propertyValue = new com.sun.star.beans.PropertyValue[ 3 ];

    propertyValue[ 0 ] = new com.sun.star.beans.PropertyValue();

    propertyValue[ 0 ].Name = "OutputStream";

    propertyValue[ 0 ].Value = new
com.sun.star.lib.uno.adapter.OutputStreamToXOutputStreamAdapter
(outputStream);

    propertyValue[ 1 ] = new com.sun.star.beans.PropertyValue();

    propertyValue[ 1 ].Name = "FilterName";

    propertyValue[ 1 ].Value = "StarOffice XML (Writer)";

    propertyValue[ 2 ] = new com.sun.star.beans.PropertyValue();

    propertyValue[ 2 ].Name = "ReadOnly";

    propertyValue[ 2 ].Value = new Boolean(false);



    com.sun.star.frame.XStorable storable = (com.sun.star.frame.XStorable)
com.sun.star.uno.UnoRuntime.queryInterface(
com.sun.star.frame.XStorable.class, xComponent);

    storable.storeToURL("private:stream",propertyValue);

    com.sun.star.util.XCloseable xCloseable = (com.sun.star.util.XCloseable)
com.sun.star.uno.UnoRuntime.queryInterface(
com.sun.star.util.XCloseable.class, xComponent);

    if (xCloseable != null ) {

        xCloseable.close(false);

    }

    else {

        xComponent.dispose();

   }



In more detail, the exception raised is:



com.sun.star.lang.DisposedException: java.io.IOException:
com.sun.star.io.IOException: EOF reached -
socket,host=localhost,port=8100,localHost=localhost,localPort=35495,peerHost=localhost,peerPort=
8100com.sun.star.lang.DisposedException: java.io.IOException:
com.sun.star.io.IOException: EOF reached -
socket,host=localhost,port=8100,localHost=localhost,localPort=35495,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)

com.sun.star.connection.NoConnectException: java.net.ConnectException:
Connection refusedcom.sun.star.connection.NoConnectException:
java.net.ConnectException: Connection refused

                at
com.sun.star.lib.connections.socket.socketConnector.connect(
socketConnector.java:171)

                at com.sun.star.comp.connections.Connector.connect(
Connector.java:146)

                at
com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(
UrlResolver.java:133)



We can't reproduce it. It happens after a few days of work.

We have a staff working with the application as users. They Create around 30
documents per day. It's almost a rule that we have to start the service
again every 3 days.

In a year or so, we will have over 1000  users.



Thanks again,


2007/10/18, Tobias Krais <[EMAIL PROTECTED]>:
>
> Hi Andres,
>
> do you have more information?
>
> E.g. can you reproduce it, and how?
> If you can reproduce it, what does strace say?
>
> Greetings, Tobias
>
> Andres Tarallo schrieb:
> > We're working with soffice in a server. We use it for document creation
> and
> > manipulation.
> >
> > Everything  works  fine until we start getting the following exception:
> > "com.sun.star.lang.DisposedException: java.io.IOException:
> > com.sun.star.io.IOException: EOF reached". After getting it, the
> sofffice
> > services dies.
> >
> > If we restart the service and try again, it works. We think that our
> code is
> > fine, and we start suspecting that we may be facing an OO bug.
> >
> > We're willing to solve this problem and help to debug it. Any ideas and
> help
> > would  be appreciated
> >
> > We have two scenarios:
> >
> > Environment 1:
> >
> > JVM = 1.5.0_11-b03.
> > Tomcat = 5.5.23
> > Apache = 2.2.4
> > OS = REDHAT Enterprise 3
> >
> > HArdware:
> > Proliant DL380 G5 (Raid 5 ( 4 discs 146 GB SAS SF)
> >
> > RAM: 2GB
> >
> >
> > Environment 2:
> >
> > JVM =  1.5.0_11-b03
> > Tomcat = 5.5.23
> > OS =  Suse Novell Linux Desktop 9
> >
> > HArdware:
> > PC WhiteBox DUAL CORE 3.2Ghz
> > RAM: 1 GB
> > Thanks in advance
> >
> > Andres Tarallo
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to