Re: [dev] remote connection disposes using XStandaloneDocumentInfo (oo 2.0.1)

2006-01-02 Thread Stephan Bergmann

Oliver Brinzing wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I am using XStandaloneDocumentInfo to retrieve information from oo files via 
a remote connection
(uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager).
I have no problems to do so using oo 1.1.5, but with oo 2.0.1 the remote 
connection always disposes
if i try to call the following method for a *second* file ... the call for the 
first file always
works ...


What exactly is the problem (Java exception with stack trace)?  Are you 
sure that it really is the bridge that is disposed?  If yes, that 
typically is the result of a crashed soffice process.


-Stephan


using XDocumentInfo after loading the whole document instead always works,
but it's pretty slow ... :-(

here is my code:

private XDocumentInfo loadStandaloneDocInfo(String loadUrl)
throws Exception {

Object oObj = xComponentContext.getServiceManager()
.createInstanceWithContext(
com.sun.star.document.StandaloneDocumentInfo,
xComponentContext);

XStandaloneDocumentInfo xStandaloneDocumentInfo = 
(XStandaloneDocumentInfo) UnoRuntime
.queryInterface(XStandaloneDocumentInfo.class, oObj);

xStandaloneDocumentInfo.loadFromURL(loadUrl);

XDocumentInfo xDocumentInfo = (XDocumentInfo) UnoRuntime
.queryInterface(XDocumentInfo.class, xStandaloneDocumentInfo);

   return xDocumentInfo;
}

any hints ?

Oliver


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] remote connection disposes using XStandaloneDocumentInfo (oo 2.0.1)

2006-01-02 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Stephan,

Am 02.01.2006 10:37 schrieb Stephan Bergmann:
 What exactly is the problem (Java exception with stack trace)?  Are you
 sure that it really is the bridge that is disposed?  If yes, that
 typically is the result of a crashed soffice process.

meanwhile i know what happened:

first i used the wrong (oo 1.1.5) *.jar files (this caused the crash) ..., 
second i did
not realize, that it's no longer possible to extract the StandaloneDocInfo from 
binary
(*.sdw, *.sdc) files, this caused a com.sun.star.task.ErrorCodeIOException ...

sorry ;-)

Oliver

- --
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDuWZJTiyrQM/QSkURAvojAKDDjUWQJ6RdtnQQn8kzJn3H0ijU0gCfY5qb
4Wloein1sAWt+40ORooBSPg=
=8BMM
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] remote connection disposes using XStandaloneDocumentInfo (oo 2.0.1)

2005-12-26 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I am using XStandaloneDocumentInfo to retrieve information from oo files via 
a remote connection
(uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager).
I have no problems to do so using oo 1.1.5, but with oo 2.0.1 the remote 
connection always disposes
if i try to call the following method for a *second* file ... the call for the 
first file always
works ...

using XDocumentInfo after loading the whole document instead always works,
but it's pretty slow ... :-(

here is my code:

private XDocumentInfo loadStandaloneDocInfo(String loadUrl)
throws Exception {

Object oObj = xComponentContext.getServiceManager()
.createInstanceWithContext(
com.sun.star.document.StandaloneDocumentInfo,
xComponentContext);

XStandaloneDocumentInfo xStandaloneDocumentInfo = 
(XStandaloneDocumentInfo) UnoRuntime
.queryInterface(XStandaloneDocumentInfo.class, oObj);

xStandaloneDocumentInfo.loadFromURL(loadUrl);

XDocumentInfo xDocumentInfo = (XDocumentInfo) UnoRuntime
.queryInterface(XDocumentInfo.class, xStandaloneDocumentInfo);

   return xDocumentInfo;
}

any hints ?

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDr6yGTiyrQM/QSkURAnGuAKC92e/pPJlrSo9h5742vpqs4MgSsQCeKg2b
WYiOKn0RHLM1EM/nhXRpid8=
=+UIW
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]