cancel
Showing results for 
Search instead for 
Did you mean: 

OpenOffice.org in 1.4RC1 transformations

lievacke
Champ in-the-making
Champ in-the-making
Hi,

while I'm testing Alfresco 1.4RC1, I encounter an error trying to transform MS-Word -> PDF. Cause seems to be:

net.sf.jooreports.openoffice.connection.OpenOfficeException: conversion failed; com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one.

Can I help to track down this one further?

Regards,

Lieven

This is my environment:

debian linux - AMD64
jdk 1.5.0_08 (64bit)
mysql 5.0.24a (64bit)
OpenOffice.org 2.0.4-rc3 (64 bit in Ubuntu Edgy chroot)

this is my catalina.out:


13:57:02,280 ERROR [repo.action.ActionServiceImpl] An error was encountered whilst executing the action 'transform'.
org.alfresco.service.cmr.repository.ContentIOException: Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2006/10/10/13/55/3206f585-5856-11db-9539-d5a3a19d9acc.bin, mimetype=text/plain, size=3312, encoding=UTF-8]
   writer: ContentAccessor[ contentUrl=store://2006/10/10/13/57/70efd895-5856-11db-9539-d5a3a19d9acc.bin, mimetype=application/vnd.oasis.opendocument.text, size=0, encoding=UTF-8]
   options: {}
        at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:246)
        at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:202)
        at org.alfresco.repo.content.RoutingContentService.transform(RoutingContentService.java:379)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: OpenOffice server conversion failed:
   reader: ContentAccessor[ contentUrl=store://2006/10/10/13/55/3206f585-5856-11db-9539-d5a3a19d9acc.bin, mimetype=text/plain, size=3312, encoding=UTF-8]
   writer: ContentAccessor[ contentUrl=store://2006/10/10/13/57/70efd895-5856-11db-9539-d5a3a19d9acc.bin, mimetype=application/vnd.oasis.opendocument.text, size=0, encoding=UTF-8]
   from file: /opt/alfresco/tomcat/temp/Alfresco/OpenOfficeContentTransformer-source-14722.txt
   to file: /opt/alfresco/tomcat/temp/Alfresco/OpenOfficeContentTransformer-target-14723.odt
        at org.alfresco.repo.content.transform.OpenOfficeContentTransformer.transformInternal(OpenOfficeContentTransformer.java:243)
        at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:237)
        … 83 more
Caused by: net.sf.jooreports.openoffice.connection.OpenOfficeException: conversion failed; com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one.
        at net.sf.jooreports.openoffice.converter.OpenOfficeDocumentConverter.convert(Unknown Source)
        at org.alfresco.repo.content.transform.OpenOfficeContentTransformer.transformInternal(OpenOfficeContentTransformer.java:238)
        … 84 more

3 REPLIES 3

lievacke
Champ in-the-making
Champ in-the-making
hmmmm…. seems like I answered my question myself!

net.sf.jooreports.openoffice.connection.OpenOfficeException: conversion failed; com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one.

OpenOffice.org 2.0.4-rc3 (64 bit in Ubuntu Edgy chroot)

-> the path given by alfresco to openoffice didn't exist to openoffice (because of the chroot)

I solved this by doing a bind mount of /opt/alfresco on <chroot>/opt/alfresco.

Regards,

Lieven

manuelgentile
Champ in-the-making
Champ in-the-making
I have a similar problem on

Fedora Core 6
jdk 1.5.0_09 (64bit)
mysql 5.0.24a (64bit)
OpenOffice.org 2.0.4

org.alfresco.service.cmr.repository.ContentIOException: OpenOffice server conversion failed:
reader: ContentAccessor[ contentUrl=store://2006/10/31/14/43/c5584fb6-68e5-11db-a8c9-a37fade12718.bin, mimetype=application/vnd.powerpoint, size=74240, encoding=UTF-8]
writer:
from file: /opt/apache-tomcat-5.5.20/temp/Alfresco/OpenOfficeContentTransformer-source-58358.ppt
to file: /opt/apache-tomcat-5.5.20/temp/Alfresco/conv1162306663678/img0.html
caused by:
net.sf.jooreports.openoffice.connection.OpenOfficeException: conversion failed; com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one.

Any suggestion?

😞

jzulu2000
Champ in-the-making
Champ in-the-making
Maybe this is because you are using a remote open ofice and are using net.sf.jooreports.openoffice.converter.OpenOfficeDocumentConverter instead of net.sf.jooreports.openoffice.converter.StreamOpenOfficeDocumentConverter.

See http://issues.alfresco.com/browse/AR-1540