JODConverter:“无法获取服务:com.sun.star.ucb.FileContentProvider”

| 我编写了Java应用程序,它将文档显示为网页。要将其从任何格式转换为HTML,我使用JODConverter,但存在一些错误: 我尝试通过以下过程将soffice作为服务运行:
System.getRuntime().exec(
\"soffice -headless -nofirststartwizard 
-accept=\\\"socket,host=my_ip,port=8100;urp;StarOffice.Service\\\"\");
它创建过程:
panzersoldat@panzertank:~$ ps ax|grep soffice
 3514 ?        Sl     0:01 /usr/lib/libreoffice/program/soffice.bin -headless -nofirststartwizard -accept=\"socket,host=my_ip,port=8100;urp;StarOffice.Service\" -splash-pipe=5
当我尝试转换任何文档时,出现此错误:http://pastebin.com/mDwsZMhu 但是然后我从bash脚本运行了soffice:
soffice -headless -nofirststartwizard -accept=\"socket,host=my_ip,port=8100;urp;StarOffice.Service\"
并尝试转换文档,一切正常:
02.05.2011 11:15:19 com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection getService
INFO: trying to (re)connect
02.05.2011 11:15:19 com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection connect
INFO: connected
我以为这个错误可能是由iptables引起的,并添加规则:
-A INPUT -i ppp0 -p tcp -m tcp --dport 8100 -j ACCEPT 
但是此错误仍然继续。 有什么主意吗     
已邀请:

要回复问题请先登录注册