Converting A Word Document To PDF With OpenOffice Fails With "Unable To Convert. Cannot Open File" (Doc ID 1088880.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Universal Content Management - Version: 10.1.3.3.0 to 10.1.3.5.0 - Release: 10gR3 to 10gR3
Information in this document applies to any platform.
***Checked for relevance on 28-Sep-2011***

Symptoms


Using Content Server 10.1.3.5, Inbound Refinery 10.1.3.5, and OpenOffice 3 on Linux

When trying to convert a Word document into PDF, the conversion fails, and following error is reported to the user during the check-in:
Step OpenOfficeToPDF forced conversion failure by conversion engine because of error: 'Unable to convert. Cannot open '....doc' file.
At the same time, following exception is logged in the refinery log <IBR_DIR>/weblayout/groups/secure/logs/refineryxx.htm:

Started OpenOfficeToPDF step.

Connecting to listener
Opening file for conversion
Unable to convert. Cannot open '/u01/app/oracle/oradata/REFINERY/vault/~convert/UCM_ContentServer_10gR3/53/8.doc'.
Unable to convert. Cannot open '/u01/app/oracle/oradata/REFINERY/vault/~convert/UCM_ContentServer_10gR3/53/8.doc'.
Exception type is 'java.lang.Throwable'. [ Details ]

An error has occurred. The stack trace below shows more information.

!csOpenOfficeConnecting!csLinefeed!csOpenOfficeOpenFile,file:////u01/app/oracle/oradata/REFINERY/vault/~convert/UCM_ContentServer_10gR3/53/8.doc!csLinefeed!csOpenOfficeOpenError,/u01/app/oracle/oradata/REFINERY/vault/~convert/UCM_ContentServer_10gR3/53/8.doc!csLinefeed!csOpenOfficeOpenError,/u01/app/oracle/oradata/REFINERY/vault/~convert/UCM_ContentServer_10gR3/53/8.doc!csLinefeed!syExceptionType,java.lang.Throwable
java.lang.Throwable
at docrefinery.data.StepResult.forceFailure(StepResult.java:245)
at docrefinery.convert.openoffice.OpenOfficeToPdf.convert(OpenOfficeToPdf.java:91)
at docrefinery.convert.StepHandler.executeCodeStep(StepHandler.java:399)
at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:112)
at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:290)
at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:174)
at docrefinery.convert.ConversionDriver.processSubConversion(ConversionDriver.java:195)
at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:116)
at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:290)
at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:174)
at docrefinery.convert.ConversionDriver.processSubConversion(ConversionDriver.java:195)
at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:116)
at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:290)
at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:174)
at docrefinery.convert.ConversionDriver.processSubConversion(ConversionDriver.java:195)
at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:116)
at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:290)
at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:174)
at docrefinery.queue.PreConvertedRefineryQueueMonitor.handleCurrentQueueItem(PreConvertedRefineryQueueMonitor.java:227)
at docrefinery.queue.PreConvertedRefineryQueueMonitor.monitorRefineryPreConverterQueue(PreConvertedRefineryQueueMonitor.java:123)
at docrefinery.queue.PreConvertedRefineryQueueMonitor$1.run(PreConvertedRefineryQueueMonitor.java:93)
at java.lang.Thread.run(Thread.java:619)

Step OpenOfficeToPDF completed.

* When refinery audit trace is enabled we can see following error in <IBR_dir>/etc/log:

refinery	04.20 14:46:37.367	MonitorPreconverterQueue[UCM_ContentServer_10gR3]	!csOpenOfficeConnecting
refinery 04.20 14:46:37.773 MonitorPreconverterQueue[UCM_ContentServer_10gR3] connected...
refinery 04.20 14:46:37.779 MonitorPreconverterQueue[UCM_ContentServer_10gR3] file to open: /u01/app/oracle/oradata/REFINERY/vault/~convert/UCM_ContentServer_10gR3/72/8.doc
refinery 04.20 14:46:37.780 MonitorPreconverterQueue[UCM_ContentServer_10gR3] !csOpenOfficeOpenFile,file:////u01/app/oracle/oradata/REFINERY/vault/~convert/UCM_ContentServer_10gR3/72/8.doc
refinery 04.20 14:46:37.911 MonitorPreconverterQueue[UCM_ContentServer_10gR3] loadComponentFromURL returned null
refinery 04.20 14:46:37.911 MonitorPreconverterQueue[UCM_ContentServer_10gR3] File failed to open
refinery 04.20 14:46:37.912 MonitorPreconverterQueue[UCM_ContentServer_10gR3] !csOpenOfficeOpenError,/u01/app/oracle/oradata/REFINERY/vault/~convert/UCM_ContentServer_10gR3/72/8.doc
refinery 04.20 14:46:37.913 MonitorPreconverterQueue[UCM_ContentServer_10gR3] OpenOfficeToPDF ---- -3 ---- null
refinery 04.20 14:46:37.914 MonitorPreconverterQueue[UCM_ContentServer_10gR3] dConversionState = Failed
refinery 04.20 14:46:37.914 MonitorPreconverterQueue[UCM_ContentServer_10gR3] dConvMessage    = Step OpenOfficeToPDF forced conversion failure by conversion engine because of error: 'Unable to convert. Cannot open '/u01/app/oracle/oradata/REFINERY/vault/~convert/UCM_ContentServer_10gR3/72/8.doc'.'.
refinery 04.20 14:46:37.914 MonitorPreconverterQueue[UCM_ContentServer_10gR3] dFormat         = application/x-unknown
refinery 04.20 14:46:37.914 MonitorPreconverterQueue[UCM_ContentServer_10gR3] dWebExtension   = ---
refinery 04.20 14:46:37.914 MonitorPreconverterQueue[UCM_ContentServer_10gR3] RefineryConvertedFile   = ---
refinery 04.20 14:46:37.914 MonitorPreconverterQueue[UCM_ContentServer_10gR3] RefineryPrimaryConvertedPath   = <NotConverted>
refinery 04.20 14:46:37.914 MonitorPreconverterQueue[UCM_ContentServer_10gR3] AdditionalRenditions =
(internal) 04.20 14:46:37.914 MonitorPreconverterQueue[UCM_ContentServer_10gR3] Refinery tryied to return key 'AdditionalRenditions' but value was null


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms