Openoffice3/jodconverter 停止工作

发布于 2024-07-17 14:31:14 字数 869 浏览 4 评论 0原文

我已经在我们的服务器上安装了 Openoffice.org3 并且它正在无头运行 模式。 我们将它与jodconverter一起使用来转换word和excel文件。

它曾经工作得很好,但有一天它就停止工作了,我真的 不明白为什么。

当我运行 /usr/local/bin/java -jar 时 jodconverter-2.2.2/lib/jodconverter-cli-2.2.2.jar

在 .xls 文件上将其转换为 .csv 文件,它只是给了我:

线程“main”中的异常 com.artofsolving.jodconverter.openoffice.connection .OpenOfficeException:转换失败:无法保存输出文档; OOo errorCode: 3088

如果我在 Word 文件上运行 jodconverter,它只会给我一个空的 输出文件或其他错误代码。 那要看。

我们的服务器同时安装了 openoffice 2.4 和 3.0,但都没有安装 现在的工作。 (他们都有同样的问题)所以不是 直接是openoffice安装的问题。

我什至尝试在服务器上创建一个新用户,并以他的身份运行openoffice 但这也不起作用。

那么有谁知道可能出了什么问题,或者我如何 让 openoffice.org 生成某种日志文件/控制台输出ptu, 这样我就可以知道发生了什么。

我用 /opt/openoffice.org3/program/soffice.bin -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;" &

I have installed Openoffice.org3 on our server and it's running in headless
mode. We use it with jodconverter to convert word and excell files.

It used to work fine, but one day it just stopped working and I really
don't understand why.

When I run /usr/local/bin/java -jar
jodconverter-2.2.2/lib/jodconverter-cli-2.2.2.jar

on an .xls file to convert it to a .csv file it just gives me:

Exception in thread "main" com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException: conversion failed: could not save output document; OOo errorCode: 3088

If I run jodconverter on a word file, it just gives me an empty
output file, or an other error code. That depends.

Our server have both openoffice 2.4 and 3.0 installed and neither
of the work now. (They both have the same problem) so it's not
directly a problem with the openoffice install.

I even tried to create a new user on the server, and run openoffice as him
but that don't work either.

So does anyone have any idear about what might be wrong, or how I
do get openoffice.org to produce some kind of log file/console outptu,
so I can se whats going on.

I use
/opt/openoffice.org3/program/soffice.bin -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;" &

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

欢你一世 2024-07-24 14:31:14

有时,soffice 正在运行,但所有转换尝试都会失败。

我的解决方法是运行:

Runtime.getRuntime("killtask /IM soffice.bin /F")

关闭操作系统进程。 在此之后,

Runtime.getRuntime("c:\\path\\start-openoffice-uno.bat")

就其价值而言,我正在使用 OO 3.3。

Sometimes, the soffice is running, but all conversion attempts fail.

My workaround is to run:

Runtime.getRuntime("killtask /IM soffice.bin /F")

To shutdown the OS process. And after this,

Runtime.getRuntime("c:\\path\\start-openoffice-uno.bat").

For what it's worth I'm using OO 3.3.

慈悲佛祖 2024-07-24 14:31:14

好吧,我最终删除了旧的 openoffice 安装
安装新版本,现在又可以使用了。 我还是不明白
为什么它停止工作但有时你只需要接受
重新安装是一个解决方案。

Well, I ended up deleting both of my old openoffice installs and
installing a new version, and now it's working again. I still don't understand
why it stopped working but sometimes you just have to accept that a
reinstall is a solution.

寂寞笑我太脆弱 2024-07-24 14:31:14

对我来说,它在清理 /tmp 中与 OpenOffice 相关的所有文件后开始工作

For me it started working after cleaning up all the files in /tmp related to OpenOffice

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文