kkFileView报错no office manager available

背景

部署环境:虚机Linux系统
发生问题的版本:4.1.0-SNAPSHOT
现象:有的docx文件可以预览,有的不可以。不可以的就怎么打开都不可以(不管你是躺着,站着,坐着,睡着,趴着都不行,哈哈)


报错内容

贴出主要的报错内容步骤:

> no office manager available
> trying to forcibly terminate process: 'socket,host=127.0.0.1,port=2001,tcpNoDelay=1'
> handleException /api/onlinePreview java.util.concurrent.TimeoutException
> disconnected: 'socket,host=127.0.0.1,port=2001,tcpNoDelay=1'
> connection lost unexpectedly; attempting restart
> process forcibly terminated with code 137
> process exited with code 137
> starting process with acceptString 'socket,host=127.0.0.1,port=2001,tcpNoDelay=1' and profileDir '/tmp/.jodconverter_socket_host-127.0.0.1_port-2001'
> started process; pid = 57864
> office process died with exit code 81; restarting it
> starting process with acceptString 'socket,host=127.0.0.1,port=2001,tcpNoDelay=1' and profileDir '/tmp/.jodconverter_socket_host-127.0.0.1_port-2001'
> started process; pid = 57871
> connected: 'socket,host=127.0.0.1,port=2001,tcpNoDelay=1'
> trying to forcibly terminate process: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' (pid 50337)
> task did not complete within timeout

具体报错代码如下:(二次开发后,部分代码的行数可能会变,可以忽略行号对不上的问题)

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.artofsolving.jodconverter.office.OfficeException: no office manager available
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:497)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:584)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:791)
	at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1626)
	at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:228)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at cn.keking.web.filter.AttributeSetFilter.doFilter(AttributeSetFilter.java:25)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at cn.keking.web.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:57)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at cn.keking.web.filter.TrustDirFilter.doFilter(TrustDirFilter.java:50)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at cn.keking.web.filter.TrustHostFilter.doFilter(TrustHostFilter.java:45)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at cn.keking.web.filter.ChinesePathFilter.doFilter(ChinesePathFilter.java:21)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
	at org.springframework.web.
大数据

git常用命令大全(git 常见命令)

2025-3-1 23:12:19

大数据

kafka为什么比rocketmq快(kafka为什么比rabbitmq快)

2025-3-1 23:12:22

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧