Issues with jodconverter connecting to OOo

193 views
Skip to first unread message

MahadmaGandalf

unread,
Oct 14, 2009, 4:09:57 AM10/14/09
to JODConverter
Hello,

I have installed the jodconverter-2.2.2 as a part of JBoss Application-
Server on Server1.
There is OpenOffice 3.1.1 installed on an other server (Server2) and
started with:

/opt/openoffice.org3/program/soffice.bin -headless -
accept="socket,host=172.31.1.133,port=8100;urp" -nofirststartwizard -
invisible -nologo

The port 8100 on server1 is opened:
Server1:~ # netstat -an | grep 8100
tcp 0 0 175.31.1.133:8100 0.0.0.0:*
LISTEN

an open connection via telnet from Server1 to Server2 shows that the
port is reachable:

Server1:/u01/app/jboss/jodconverter-2.2.2/lib # telnet 175.31.1.133
8100
Trying 175.31.1.133...
Connected to 175.31.1.133.
Escape character is '^]'.
`ø'com.sun.star.bridge.XProtocolPropertiesUrpProtocolProperties\ó
h AF3(@LÅ




But when I want to start the conversion of a document the following
error occurs:




Server1:/u01/app/jboss/jodconverter-2.2.2/lib # /u01/app/java/
jdk1.6.0_14/bin/java -jar jodconverter-cli-2.2.2.jar -h 175.31.1.133 -
p 8100 din_commenttab_template.doc /u01/app/neportal/tempForNeport/
test_20091008.pdf
Oct 14, 2009 9:58:28 AM
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection
connect
INFO: connected
Oct 14, 2009 9:58:28 AM
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection
disposing
INFO: disconnected
Exception in thread "main"
com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException:
conversion failed: could not load input document
at
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.loadAndExport
(OpenOfficeDocumentConverter.java:131)
at
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.convertInternal
(OpenOfficeDocumentConverter.java:120)
at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert
(AbstractOpenOfficeDocumentConverter.java:104)
at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert
(AbstractOpenOfficeDocumentConverter.java:74)
at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert
(AbstractOpenOfficeDocumentConverter.java:70)
at com.artofsolving.jodconverter.cli.ConvertDocument.convertOne
(ConvertDocument.java:161)
at com.artofsolving.jodconverter.cli.ConvertDocument.main
(ConvertDocument.java:140)
Caused by: com.sun.star.lang.IllegalArgumentException: URL seems to be
an unsupported one.
at
com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException
(Job.java:182)
at com.sun.star.lib.uno.environments.remote.Job.execute
(Job.java:148)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter
(JobQueue.java:344)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter
(JobQueue.java:313)
at
com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter
(JavaThreadPool.java:101)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest
(java_remote_bridge.java:652)
at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory
$Handler.request(ProxyFactory.java:154)
at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory
$Handler.invoke(ProxyFactory.java:136)
at $Proxy5.loadComponentFromURL(Unknown Source)
at
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.loadDocument
(OpenOfficeDocumentConverter.java:150)
at
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.loadAndExport
(OpenOfficeDocumentConverter.java:127)
... 6 more

Has someone a hint what caused this issue?

Mirko Nasato

unread,
Oct 14, 2009, 6:36:27 AM10/14/09
to jodcon...@googlegroups.com
Using OOo on a different machine is not recommended.

http://www.artofsolving.com/node/10

Kind regards

Mirko

2009/10/14 MahadmaGandalf <jow...@googlemail.com>:

Mirko Nasato

unread,
Oct 14, 2009, 6:38:30 AM10/14/09
to jodcon...@googlegroups.com
And in fact there's no -h switch on the command line tool, where did
you find that out?

Kind regards

Mirko

2009/10/14 Mirko Nasato <mirko....@gmail.com>:

MahadmaGandalf

unread,
Oct 14, 2009, 8:42:38 AM10/14/09
to JODConverter
Hello Mirko,
thanks for your answers!

Using different servers is a customer requirement (though I mentioned
that it is not recommended). The command is also given by the customer
with its parameters.
I thought it would be correct. If not, where can specify the remote
Office Server? (is the -p Parameter correct)

Is there any documentation about using JODconverter/OOo on differnt
machines?



On 14 Okt., 12:38, Mirko Nasato <mirko.nas...@gmail.com> wrote:
> And in fact there's no -h switch on the command line tool, where did
> you find that out?
>
> Kind regards
>
> Mirko
>
> 2009/10/14 Mirko Nasato <mirko.nas...@gmail.com>:
>
> > Using OOo on a different machine is not recommended.
>
> >  http://www.artofsolving.com/node/10
>
> > Kind regards
>
> > Mirko
>
> > 2009/10/14 MahadmaGandalf <jowa...@googlemail.com>:

Mirko Nasato

unread,
Oct 14, 2009, 2:01:18 PM10/14/09
to jodcon...@googlegroups.com
2009/10/14 MahadmaGandalf <jow...@googlemail.com>:

>
> Using different servers is a    customer requirement (though I mentioned
> that it is not recommended). The command is also given by the customer
> with its parameters.
> I thought it would be correct. If not, where can specify the remote
> Office Server? (is the -p Parameter correct)
>
The command line tool doesn't support connecting to a remote server,
period. Like most tools, if you invoke the command without arguments
it will tell you which parameters it supports.

> Is there any documentation about using JODconverter/OOo on differnt
> machines?
>

StreamOpenOfficeDocumentConverter was introduced for that purpose,
before realising that it wasn't a good idea.

http://jodconverter.sourceforge.net/api/com/artofsolving/jodconverter/openoffice/converter/StreamOpenOfficeDocumentConverter.html

Kind regards

Mirko

Reply all
Reply to author
Forward
0 new messages