idok-commit AT lists.psi.ch
Subject: Commit emails of the iDok project
List archive
[idok-commit] idok commit r250 - trunk/java/ch/idok/dmsd/impl/extractor/microsoft
Chronological Thread
- From: "AFS account Stadler Hans Christian" <stadler_h AT savannah.psi.ch>
- To: idok-commit AT lists.psi.ch
- Subject: [idok-commit] idok commit r250 - trunk/java/ch/idok/dmsd/impl/extractor/microsoft
- Date: Wed, 24 Sep 2008 17:24:23 +0200
- List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
- List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>
Author: stadler_h
Date: Wed Sep 24 17:24:23 2008
New Revision: 250
Log:
Bugfix in MS Office text extraction
Modified:
trunk/java/ch/idok/dmsd/impl/extractor/microsoft/MSOfficeExtractorFactory.java
Modified:
trunk/java/ch/idok/dmsd/impl/extractor/microsoft/MSOfficeExtractorFactory.java
==============================================================================
---
trunk/java/ch/idok/dmsd/impl/extractor/microsoft/MSOfficeExtractorFactory.java
(original)
+++
trunk/java/ch/idok/dmsd/impl/extractor/microsoft/MSOfficeExtractorFactory.java
Wed Sep 24 17:24:23 2008
@@ -276,6 +276,8 @@
/** @brief Retrieve the searchable plain text. */
public byte[] getText() throws DmsException {
+ if (serviceManager == null)
+ initOpenOffice();
/* if (++ooRestartCounter >= ooRestartThreshold) {
logger.finer("Restarting OpenOffice.");
initOpenOffice();
@@ -305,6 +307,8 @@
do {
try {
loader = (XComponentLoader)
UnoRuntime.queryInterface(XComponentLoader.class, desktop);
+ if (loader == null)
+ DmsException.throwIt(ErrorType.TOOL_ACCESS,
this, "Cannot access external extraction tool", "Unable to get OpenOffice
loader object");
} catch (Throwable th) {
logger.fine("(Retry="+tryAgain+") Exception while
instantiating OpenOffice loader: "+th);
if (! tryAgain)
@@ -313,7 +317,7 @@
logger.finest("Reinitializing the OpenOffice
connection.");
initOpenOffice();
}
- } while ((loader==null) && tryAgain);
+ } while (loader == null);
URI uri = tf.toURI();
String url = uri.getScheme() + "://" + uri.getPath();
PropertyValue invisible = new PropertyValue("Hidden", -1,
true,
- [idok-commit] idok commit r250 - trunk/java/ch/idok/dmsd/impl/extractor/microsoft, AFS account Stadler Hans Christian, 09/24/2008
Archive powered by MHonArc 2.6.19.