我正在将JODCONVERTER 2.2 Webapp与libreoffice headless一起使用。并且抛出此错误无法加载输入文档
他们在同一台机器上,我得到此跟踪,任何帮助表示赞赏
exception
com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException: conversion failed: could not load input document
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.loadAndExport(OpenOfficeDocumentConverter.java:131)
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.convertInternal(OpenOfficeDocumentConverter.java:120)
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:104)
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.convertInternal(OpenOfficeDocumentConverter.java:88)
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:82)
com.artofsolving.jodconverter.web.DocumentConverterServlet.doPost(DocumentConverterServlet.java:71)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one.
com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:182)
com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:148)
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:344)
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:313)
com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:101)
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:652)
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:154)
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:136)
$Proxy20.loadComponentFromURL(Unknown Source)
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.loadDocument(OpenOfficeDocumentConverter.java:150)
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.loadAndExport(OpenOfficeDocumentConverter.java:127)
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.convertInternal(OpenOfficeDocumentConverter.java:120)
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:104)
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.convertInternal(OpenOfficeDocumentConverter.java:88)
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:82)
com.artofsolving.jodconverter.web.DocumentConverterServlet.doPost(DocumentConverterServlet.java:71)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.36 logs.
最佳答案
对于那个很抱歉 。是libreoffice 4。问题是我需要安装libreoffice writer,它解决了问题。
关于java - Jodconverter libreoffice OpenOfficeException:无法加载输入文档,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16617967/