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

经常出现预览报错:Error: Header doesn't contain versioninfo;java.io.IOException: Missing root object specification in trailer. #621

Open
ZKANGGIT opened this issue Jan 20, 2025 · 0 comments

Comments

@ZKANGGIT
Copy link

ZKANGGIT commented Jan 20, 2025

版本:4.4.0
环境:centos 7 java 8

报错场景复现:
一.xlsx文件报错(必定报错)
1.填写文件url(该url确定是没问题的,可以正常下载到文件)
Image
2.点击预览后跳转到这个页面
Image
3.点击“跳转HTML预览”后,页面提示报错
Image
4.查看log日志:
Image

附上xlsx原文件:
发货信息上传模板.xlsx

二.PDF文件报错(必定报错)
1.填写文件url(该url确定是没问题的,可以正常访问到pdf文件)
Image
2.点击预览,页面提示报错:
Image
3.查看log日志:
Image
由于pdf带有敏感信息我就不贴上来了

还有一个奇怪的现象:
po-bj-jtzysc-20241107006833.pdf这个文件我随意修改一下文件名后又可以正常预览了
Image

对于以上问题帮忙解惑一下,有的文件可以正常预览但是有的文件就会出现以上报错情况

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

1 participant