Dug a little deeper, but with no real success as yet.

Basically the root exception coming back from the JODConverter is:

com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException: conversion failed; com.sun.star.task.ErrorCodeIOException: at com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.convertInternal(OpenOfficeDocumentConverter.java:114) at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:90) at org.nuxeo.ecm.platform.transform.plugin.joooconverter.impl.JOOoConvertPluginImpl.transform(JOOoConvertPluginImpl.java:281) at org.nuxeo.ecm.platform.transform.transformer.AbstractTransformer.transform(AbstractTransformer.java:146) at org.nuxeo.ecm.platform.transform.service.TransformService.transform(TransformService.java:154) at org.nuxeo.ecm.platform.transform.service.TransformService.transform(TransformService.java:168) at org.nuxeo.ecm.webapp.action.ConversionActionBean.generatePdfFile(ConversionActionBean.java:137)

I'm trying to connect to OpenOffice 2.2.1 on a RedHat box by the way. I do have things working on a Ubuntu box that has OpenOffice 2.2.0, so don't know if that is the problem. - I'd be happy to install 2.2.0 on the RedHat box, but can't find any 2.2.0 rpms....

Any ideas?


Hi,

Any ideas why I may be getting IndexOutOfBoundsException trying to transform documents? I've included 2 stacktraces.

(I note that there was an issue raised NXP-615 with this exception and closed as 'Cannot Reproduce')

I can't investigate further just now, but will as soon as I can.

Cheers,

Sean


2007-07-15 13:34:33,924 DEBUG [org.nuxeo.ecm.platform.mimetype.detectors.PptMimetypeSniffer] MimeType detector : Not a powerpoint file - RuntimeException 2007-07-15 13:34:33,924 DEBUG [net.sf.jmimemagic.MagicMatcher] test(File): submatch 1 doesn't match
2007-07-15 13:34:33,924 DEBUG [net.sf.jmimemagic.MagicMatcher] getMatch()
2007-07-15 13:34:33,924 DEBUG [net.sf.jmimemagic.Magic] getMagicMatch(File): matched Microsoft Office Document 2007-07-15 13:34:33,924 DEBUG [net.sf.jmimemagic.Magic] found match in '24' milliseconds 2007-07-15 13:34:33,925 DEBUG [com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection] connecting 2007-07-15 13:34:33,928 INFO [com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection] connected 2007-07-15 13:34:35,253 ERROR [org.nuxeo.ecm.platform.transform.plugin.joooconverter.impl.JOOoConvertPluginImpl] An error occured trying to convert a file to from application/msword to appl
ication/pdf:
2007-07-15 13:34:35,253 DEBUG [com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection] disconnecting 2007-07-15 13:34:35,254 INFO [com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection] disconnected 2007-07-15 13:34:35,254 DEBUG [org.nuxeo.ecm.platform.transform.plugin.joooconverter.impl.JOOoConvertPluginImpl] Release connection lock 2007-07-15 13:34:35,255 ERROR [org.nuxeo.ecm.webapp.action.ConversionActionBean] PDF generation error for file testword.doc
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
       at java.util.ArrayList.RangeCheck(ArrayList.java:546)
       at java.util.ArrayList.get(ArrayList.java:321)
at org.nuxeo.ecm.webapp.action.ConversionActionBean.generatePdfFile(ConversionActionBean.java:157)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) at org.nuxeo.ecm.platform.ui.web.shield.NuxeoErrorInterceptor.invokeAndWrapExceptions(NuxeoErrorInterceptor.java:71)


2007-07-15 13:50:13,826 DEBUG [net.sf.jmimemagic.MagicMatcher] getMatch()
2007-07-15 13:50:13,826 DEBUG [net.sf.jmimemagic.MagicMatcher] test(File): testing matched 'OOo 1.x and OpenDocument file' 2007-07-15 13:50:13,826 DEBUG [net.sf.jmimemagic.MagicMatcher] test(File): submatch 0 matched with 'OOo 1.x and OpenDocument file' 2007-07-15 13:50:13,826 DEBUG [net.sf.jmimemagic.MagicMatch] adding submatch 'OOo 1.x and OpenDocument file' to 'Zip archive data'
2007-07-15 13:50:13,826 DEBUG [net.sf.jmimemagic.MagicMatcher] getMatch()
2007-07-15 13:50:13,826 DEBUG [net.sf.jmimemagic.Magic] getMagicMatch(File): matched Zip archive data 2007-07-15 13:50:13,826 DEBUG [net.sf.jmimemagic.Magic] found match in '6' milliseconds 2007-07-15 13:50:13,826 DEBUG [net.sf.jmimemagic.MagicMatch] setting submatches for 'Zip archive data' 2007-07-15 13:50:13,826 DEBUG [com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection] connecting 2007-07-15 13:50:13,830 INFO [com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection] connected 2007-07-15 13:50:13,945 ERROR [org.nuxeo.ecm.platform.transform.plugin.joooconverter.impl.JOOoConvertPluginImpl] An error occured trying to convert a file to from application/vnd.oasis.open
document.text to application/pdf:
2007-07-15 13:50:13,945 DEBUG [com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection] disconnecting 2007-07-15 13:50:13,945 INFO [com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection] disconnected 2007-07-15 13:50:13,945 DEBUG [org.nuxeo.ecm.platform.transform.plugin.joooconverter.impl.JOOoConvertPluginImpl] Release connection lock 2007-07-15 13:50:13,945 ERROR [org.nuxeo.ecm.webapp.action.ConversionActionBean] PDF generation error for file testopen.odt
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
       at java.util.ArrayList.RangeCheck(ArrayList.java:546)
       at java.util.ArrayList.get(ArrayList.java:321)
at org.nuxeo.ecm.webapp.action.ConversionActionBean.generatePdfFile(ConversionActionBean.java:157)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) at org.nuxeo.ecm.platform.ui.web.shield.NuxeoErrorInterceptor.invokeAndWrapExceptions(NuxeoErrorInterceptor.java:71)



--
Dr. Sean Radford, MBBS, MSc
http://www.tacola.com/

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to