[api-issues] [Issue 81738] Java to OO server Disposed Connection issue

2009-03-31 Thread setve007
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81738





--- Additional comments from setve...@openoffice.org Tue Mar 31 08:37:54 
+ 2009 ---
I encounter a issue like this.
My application connect to OpenOffice 2.4.0 to convert some files among  MS
Office Document, RTF and OpenOffice Document. It does work fine initially, but
it doesn't work now. The Exception like this:


com.sun.star.lang.DisposedException: java_remote_bridge
com.sun.star.lib.uno.bridges.java_remote.java_remote_bri...@6f67c6fd is disposed
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.checkDisposed(java_remote_bridge.java:720)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:639)
at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:159)
at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:136)
at $Proxy6.queryInterface(Unknown Source)
at com.sun.star.uno.UnoRuntime.queryInterface(UnoRuntime.java:159)
at com.sun.star.uno.UnoRuntime.queryInterface(UnoRuntime.java:186)

Here is the relative code as below:

public class OpenOfficeDocumentConverter extends
AbstractOpenOfficeDocumentConverter {

//private static final Logger logger =
LoggerFactory.getLogger(OpenOfficeDocumentConverter.class);

public OpenOfficeDocumentConverter(OPConnection connection) {
super(connection);
}

public OpenOfficeDocumentConverter(OPConnection connection,
DocumentFormatRegistry formatRegistry) {
super(connection, formatRegistry);
}

/**
 * In this file-based implementation, streams are emulated using 
temporary files.
 */
protected void convertInternal(InputStream inputStream, DocumentFormat
inputFormat, OutputStream outputStream, DocumentFormat outputFormat) throws
Exception{
File inputFile = null;
File outputFile = null;
try {
inputFile = File.createTempFile("document", "." +
inputFormat.getFileExtension()); //$NON-NLS-1$ //$NON-NLS-2$
OutputStream inputFileStream = null;
try {
inputFileStream = new 
FileOutputStream(inputFile);
IOUtils.copy(inputStream, inputFileStream);
} finally {
IOUtils.closeQuietly(inputFileStream);
}

outputFile = File.createTempFile("document", "." +
outputFormat.getFileExtension()); //$NON-NLS-1$ //$NON-NLS-2$
convert(inputFile, inputFormat, outputFile, 
outputFormat);
InputStream outputFileStream = null;
try {
outputFileStream = new 
FileInputStream(outputFile);
IOUtils.copy(outputFileStream, outputStream);
} finally {
IOUtils.closeQuietly(outputFileStream);
}
} catch (IOException ioException) {
throw new 
OPException(Messages.getString("OpenOfficeDocumentConverter.4"),
ioException); //$NON-NLS-1$
} finally {
if (inputFile != null) {
inputFile.delete();
}
if (outputFile != null) {
outputFile.delete();
}
}
}

@SuppressWarnings("unchecked") //$NON-NLS-1$
protected void convertInternal(File inputFile, DocumentFormat 
inputFormat, File
outputFile, DocumentFormat outputFormat) throws Exception {
Map/**/ loadProperties = new HashMap();
loadProperties.putAll(getDefaultLoadProperties());
loadProperties.putAll(inputFormat.getImportOptions());

Map/**/ storeProperties =
outputFormat.getExportOptions(inputFormat.getFamily());

synchronized (openOfficeConnection) {
XFileIdentifierConverter fileContentProvider =
openOfficeConnection.getFileContentProvider();
String inputUrl = 
fileContentProvider.getFileURLFromSystemPath("",
inputFile.getAbsolutePath()); //$NON-NLS-1$
String outputUrl = 
fileContentProvider.getFileURLFromSystemPath("",
outputFile.getAbsolutePath()); //$NON-NLS-1$

loadAndExport(inputUrl, loadProperties, outputUrl, 
storeProperties);
}
}

@SuppressWarnings("unchecked") //$NON-NLS-1$
private void loadAndExport(String inputUrl, Map/**/
loadProperties, String outputUrl, Map/**/ storeProperties) throws
Exception {
XComponent document;

[api-issues] [Issue 81738] Java to OO server Disposed Connection issue

2007-12-03 Thread sg
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81738


User sg changed the following:

What|Old value |New value

  Status|RESOLVED  |CLOSED





--- Additional comments from [EMAIL PROTECTED] Mon Dec  3 10:53:38 + 
2007 ---
Closing the issue. If there are any updates on this, please notify me.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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



[api-issues] [Issue 81738] Java to OO server Disposed Connection issue

2007-12-03 Thread sg
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81738


User sg changed the following:

What|Old value |New value

  Status|STARTED   |RESOLVED

  Resolution|  |WORKSFORME





--- Additional comments from [EMAIL PROTECTED] Mon Dec  3 10:53:10 + 
2007 ---
Cannot reproduce.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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



[api-issues] [Issue 81738] Java to OO server Disposed Connection issue

2007-11-06 Thread sg
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81738





--- Additional comments from [EMAIL PROTECTED] Tue Nov  6 14:38:38 + 
2007 ---
I cannot really reproduce the issue. What does the
getRemoteServiceManager(unoUrl) function really do. When restarting your client
resolves the issue, my guess is still that some resource on client side is not
released somehow.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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



[api-issues] [Issue 81738] Java to OO server Disposed Connection issue

2007-10-31 Thread sg
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81738


User sg changed the following:

What|Old value |New value

Priority|P2|P3





--- Additional comments from [EMAIL PROTECTED] Wed Oct 31 15:25:56 + 
2007 ---
This is a P3 issue - not really P2.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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



[api-issues] [Issue 81738] Java to OO server Disposed Connection issue

2007-10-31 Thread sg
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81738


User sg changed the following:

What|Old value |New value

  Ever confirmed|  |1

  Status|UNCONFIRMED   |STARTED





--- Additional comments from [EMAIL PROTECTED] Wed Oct 31 15:18:09 + 
2007 ---
accepted, but I have to look further into it.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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



[api-issues] [Issue 81738] Java to OO server Disposed Connection issue

2007-09-24 Thread atulganeriwala
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81738





--- Additional comments from [EMAIL PROTECTED] Tue Sep 25 06:16:13 + 
2007 ---
Hi,

Any updates on this issue?

Thanks
Atul

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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



[api-issues] [Issue 81738] Java to OO server Disposed Connection issue

2007-09-19 Thread atulganeriwala
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81738





--- Additional comments from [EMAIL PROTECTED] Thu Sep 20 05:18:03 + 
2007 ---
Hi,
The Application Server is WAS 5.1.1 on Linux machine.
The Open Office Server(version 2.1) is remotely located on a windows 2000 
machine.
I would like to state one more observation related to this issue - Restarting 
of the WAS server again establishes a successful connection between OO and WAS.
But it might again throw the same DisposedConnectionException after few days 
like before.
In the code the OO connection objects are properly colsed so there can be no 
open connections as well.
Can you suggest the reason for this problem ?
Can you confirm that the latest version of Open Office.i.e. 2.3 will resolve 
this issue of DisposedConnectionException that occurs randomly sometimes.

Thanks for your last response
Atul


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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



[api-issues] [Issue 81738] Java to OO server Disposed Connection issue

2007-09-19 Thread of
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81738


User of changed the following:

What|Old value |New value

 Assigned to|tm|sg

   Component|framework |api

Priority|P1|P2

  QA contact|[EMAIL PROTECTED]  |[EMAIL PROTECTED]

Subcomponent|ui|code

Target milestone|---   |not determined





--- Additional comments from [EMAIL PROTECTED] Wed Sep 19 12:48:14 + 
2007 ---
@ atulganeriwala: Please use an OOo version that is newer than 2.1! OOo 2.3 has
been released meanwhile! Please add information what platform you are using.
@ sg: Please have a look.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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