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]