报错信息:org.jodconverter.office.OfficeException: A process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;StarOffice.ServiceManager' started but its pid could not be found
报错原因:
1.项目启动目录中带有中文路径
2.导致soffice.bin的端口异常了不能正常关闭
解决办法:
windows:
查看占用端口线程:netstat -aon| findstr "2002"
查看占用线程的应用:tasklist|findstr "上面看到的线程号"
通过任务管理器关闭然后重新启动即可:
linux:
查看占用端口线程:netstat -nultp| grep 2002
关闭线程:kill -9 上面看到线程号
然后重新启动即可