DITA 打开工具包错误:java.lang.StackOverflowError
我正在使用 DITA Open Toolkit 将 XML 内容转换为具有不同的标签名称。但我的 XML 文档之一没有转换...
BUILD FAILED
C:\DITA-OT\build.xml:55: The following error occurred while executing this line:
C:\DITA-OT\build.xml:86: The following error occurred while executing this line:
java.lang.StackOverflowError
此错误发生在处理完成之前。所以只有前 3/4 会发生变换。如果我删除 1/4 的内容,转换就能完成。 (我可以删除任何部分,删除的越多,转换得到的文档就越多,所以我不认为它是无效的标签或类似的东西)。
我是否需要更新配置以允许 Java 进程使用更多资源?
或者有人知道如何开始解决这个问题吗?
谢谢!
I am using the DITA Open Toolkit to transform XML content to have different tag names. But one of my XML documents is not transforming...
BUILD FAILED
C:\DITA-OT\build.xml:55: The following error occurred while executing this line:
C:\DITA-OT\build.xml:86: The following error occurred while executing this line:
java.lang.StackOverflowError
This error happens before processing is finished. So only the first 3/4 transforms. If I remove 1/4 of the content, the transform is able to finish. (I can remove any part, the more I remove the further in the document the transform gets so I do not think its invalid tags or anything like that).
Do I need to update my configuration to allow more resources to the Java process?
Or does anyone have any ideas of how to start troubleshooting this?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以考虑通过 JVM 参数调整堆栈大小。在控制台/终端输入
java -X
以查看它们的列表。在这种情况下,您可能最感兴趣的是更改堆栈大小:-Xss
。例如,您可以尝试java -Xss2048k
。如果您使用的是 Linux,您最终可能还必须使用 ulimit 更改操作系统线程堆栈大小。通常,您可以通过将ulimit -s 2048
添加到 /etc/profile 来完成此操作。如果这不起作用,请尝试在 http://sourceforge.net/projects/ 提交错误报告dita-ot/ 或联系作者。
You might consider tuning the stack size via JVM parameters. Type
java -X
at your console/terminal to see a list of them. In this case, you're probably most interested in changing the stack size:-Xss
. For example, you might tryjava -Xss2048k
. If you're on Linux, you may also end up having to change your OS thread stack size with ulimit. Typically, you would do this by adding something likeulimit -s 2048
to /etc/profile.If this doesn't work, try filing a bug report at http://sourceforge.net/projects/dita-ot/ or contacting the authors.