如题,Java后台调用OpenOffice将文件转换为PDF,在调用时报错,异常信息如下:
Mar 20, 2014 1:16:13 AM org.artofsolving.jodconverter.office.ProcessPoolOfficeManager
INFO: ProcessManager implementation is LinuxProcessManager
Mar 20, 2014 1:16:13 AM org.artofsolving.jodconverter.office.OfficeProcess start
INFO: starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir '/home/Cloud/Cloud/apache-tomcat-6.0.37/temp/.jodconverter_socket_host-127.0.0.1_port-2002'
Mar 20, 2014 1:16:13 AM org.artofsolving.jodconverter.office.OfficeProcess start
INFO: started process; pid = 11178
org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:64)
at org.artofsolving.jodconverter.office.PooledOfficeManager.start(PooledOfficeManager.java:101)
at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(ProcessPoolOfficeManager.java:62)
at com.hp.cloud.commom.FileConvertUtils.openOffice2Pdf(FileConvertUtils.java:101)
at com.hp.cloud.action.ItemFileAction.fileConvertToPDF(ItemFileAction.java:697)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at com.opensymphony.xwork2.validator.Validati