Skip to main content
Known Participant
December 14, 2012
Question

OpenOffice under CF 9 throws com.sun.star.task.ErrorCodeIOException

  • December 14, 2012
  • 2 replies
  • 3544 views

We are having a problem with OpenOffice that throws com.sun.star.task.ErrorCodeIOException exception while converting some .doc files into .pdf. Most of the .doc files are being converted normally so does the  .rtf and .docx files. But few .doc files permanently throw this exception. What might be wrong with those files? Did anyone had this problem?

We are using the most simple code:

<cfdocument format="pdf"

srcfile="C:\Temp\555.doc"

filename="C:\Temp\New555.pdf">

</cfdocument>

What should we look at?

Thank you!

This topic has been closed for replies.

2 replies

BKBK
Community Expert
Community Expert
December 17, 2012

Could you please show us the entire stack trace (for the exception)? Thanks.

el_simAuthor
Known Participant
December 17, 2012

Sure, here it is:

"Error","jrpp-7","12/17/12","11:13:10","CCN Engine","The following exception occurred while converting C:\Temp\401.doc: com.sun.star.task.ErrorCodeIOException:  The specific sequence of files included or processed is: C:\Inetpub\wwwroot\MaintenancePrograms\DocintoPDF.cfm, line: 3 "

coldfusion.document.OpenOfficeUNOHelper$DocumentConversionException: The following exception occurred while converting C:\Temp\401.doc: com.sun.star.task.ErrorCodeIOException:

    at coldfusion.document.OpenOfficeUNOHelper.doExport(OpenOfficeUNOHelper.java:637)

    at coldfusion.tagext.lang.DocumentTag.exportWithOpenOffice(DocumentTag.java:2346)

    at coldfusion.tagext.lang.DocumentTag.doStartTag(DocumentTag.java:1165)

    at cfDocintoPDF2ecfm1369872646.runPage(C:\Inetpub\wwwroot\MaintenancePrograms\DocintoPDF.cfm:3)

    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)

    at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)

    at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)

    at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:363)

    at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)

    at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)

    at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)

    at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)

    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)

    at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)

    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)

    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)

    at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)

    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)

    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)

    at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)

    at coldfusion.CfmServlet.service(CfmServlet.java:200)

    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)

    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)

    at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)

    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)

    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)

    at jrun.servlet.FilterChain.service(FilterChain.java:101)

    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)

    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)

    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)

    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)

    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)

    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)

    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

BKBK
Community Expert
Community Expert
December 17, 2012

Thanks for the files. The problem seems to be caused by Comment fields associated with the .doc document. I am looking into it.

BKBK
Community Expert
Community Expert
December 16, 2012

What do you mean by "a problem with OpenOffice that throws com.sun.star.task.ErrorCodeIOException"? The code you show is entirely ColdFusion. Was there any indication in the error-message to suggest a connection with Open Office?

Using Open Office 3.4.1, I saved the file C:\Temp\555.doc successively as MS Word 97/2000/XP(.doc), MS Word 95(.doc) and MS Word 6.0(.doc). I then ran your code. In every case it worked as expected. However, I am on CF 10.

el_simAuthor
Known Participant
December 17, 2012

Thank you for your reply. Yes, the above code is entirely ColdFusion but internally <cfdocument> "supports conversion of a Word document to PDF or HTML using OpenOffice libraries". In other words, this ColdFusion statement runs OpenOffice and it gets an exception from OpenOffice.

What do you mean saying that you've saved the file? I did not attach my actual "problematic" files here. I don't think these posts have the attachment capability. If you're interested I can e-mail you the file(s) in question. Please let me know.

BKBK
Community Expert
Community Expert
December 17, 2012

el_sim wrote:

the above code is entirely ColdFusion but internally <cfdocument> "supports conversion of a Word document to PDF or HTML using OpenOffice libraries". In other words, this ColdFusion statement runs OpenOffice and it gets an exception from OpenOffice.

I guessed as much. I still wonder whether ColdFusion includes its own independent Open Office libraries or whether it makes use of Open Office resouces currently on your machine. That isn't clear to me from the documentation on using cfdocument with Open Office. I am looking into it some more.

What do you mean saying that you've saved the file? I did not attach my actual "problematic" files here. I don't think these posts have the attachment capability. If you're interested I can e-mail you the file(s) in question. Please let me know.

Sorry about the misunderstanding. To reproduce your error, I used Open Office to create my own file named 555.doc, and saved it at  c:\temp. In any case, I am curious about your problematic DOC files. I should like to receive them. I have sent you my e-mail address.