Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

该(docx)文件暂不支持在线预览,官方在线体验地址也同样的报错 #596

Open
Holinc19 opened this issue Sep 19, 2024 · 6 comments

Comments

@Holinc19
Copy link

2024-09-19 03:09:58.867  INFO 1 --- [ter-poolentry-2] o.j.local.task.LocalConversionTask       : Executing local conversion task [docx -> pdf]...
2024-09-19 03:09:59.033 ERROR 1 --- [ter-poolentry-2] o.j.local.task.LocalConversionTask       : Local conversion failed.

java.lang.NullPointerException: Could not open document: [email protected]
        at org.jodconverter.core.util.AssertUtils.notNull(AssertUtils.java:132) ~[jodconverter-core-4.4.6.jar!/:4.4.6]
        at org.jodconverter.local.task.AbstractLocalOfficeTask.loadDocument(AbstractLocalOfficeTask.java:210) ~[jodconverter-local-4.4.6.jar!/:4.4.6]
        at org.jodconverter.local.task.LocalConversionTask.execute(LocalConversionTask.java:129) ~[jodconverter-local-4.4.6.jar!/:4.4.6]
        at org.jodconverter.local.office.LocalOfficeManagerPoolEntry.doExecute(LocalOfficeManagerPoolEntry.java:121) [jodconverter-local-4.4.6.jar!/:4.4.6]
        at org.jodconverter.core.office.AbstractOfficeManagerPoolEntry.lambda$execute$0(AbstractOfficeManagerPoolEntry.java:81) [jodconverter-core-4.4.6.jar!/:4.4.6]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_251]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_251]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_251]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_251]

image

@yangxinpei2015
Copy link

我们现在也是遇到这个问题~~

@gaoxingzaq
Copy link
Contributor

原始文件发出

@Holinc19
Copy link
Author

@gaoxingzaq
Copy link
Contributor

损坏的原因可能是由于文档操作不当或数据传输造成的文档结构损坏。

建议您不要信任修复后的文档的内容。
该文档的宏执行已被禁用。

@Holinc19
Copy link
Author

损坏的原因可能是由于文档操作不当或数据传输造成的文档结构损坏。

建议您不要信任修复后的文档的内容。 该文档的宏执行已被禁用。

请问下如何检查你提到的这两个情况呢。

我下载文件用微软的Word能正常打开,通过微软的在线预览能正常打开(https://view.officeapps.live.com/op/view.aspx?src=https%3A%2F%2Foss-dev.kalugaqueen.com%2Fxl-resources%2Fdemo%2F0%2FO2-PRIVITE%2F8fc0a154cd8649d4b9bb9cdb81d276db%40CAXL2024592-1725526420492.docx&wdOrigin=BROWSELINK)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@Holinc19 @yangxinpei2015 @gaoxingzaq and others