tiagoa77 / jodconverter

Automatically exported from code.google.com/p/jodconverter
0 stars 0 forks source link

hello ! I have a problem when I user OpenOffice . Please see the following , Thank you #109

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Before creating a new issue, please post your problem to the group for
discussion first.

http://groups.google.com/group/jodconverter

What steps will reproduce the problem?
my program used openOffice   ,the problem is :

org.artofsolving.jodconverter.office.OfficeException: failed to start and connec
t
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWai
t(ManagedOfficeProcess.java:64)
        at org.artofsolving.jodconverter.office.PooledOfficeManager.start(Pooled
OfficeManager.java:101)
        at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(P
rocessPoolOfficeManager.java:62)
        at pde.ict.wartermark.util.JodConvert3ToPdf.convert(Unknown Source)
        at pde.ict.wartermark.util.PdfUtil.convertPDF(Unknown Source)
        at pde.ict.wartermark.util.OfficeToPdfUtil.toPdf(Unknown Source)
        at pde.ict.wartermark.util.OfficeToPdfUtil.ConvertToPdfAddWaterMark(Unkn
own Source)
        at pde.ict.wartermark.util.WaterMarkUtils.addWatermark(Unknown Source)
        at pde.ict.service.file.FileViewOpenService.getData(Unknown Source)
        at pde.ict.action.file.FileViewOpenAction.handleRequestInternal(Unknown 
Source)
        at org.springframework.web.servlet.mvc.AbstractController.handleRequest(
AbstractController.java:153)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.ha
ndle(SimpleControllerHandlerAdapter.java:48)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatch
erServlet.java:857)
        at org.springframework.web.servlet.DispatcherServlet.doService(Dispatche
rServlet.java:792)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(Frame
workServlet.java:461)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServl
et.java:416)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
        at pde.ict.filter.HistoriesFilter.doFilter(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
        at pde.ict.filter.AuthorityFilter.doFilter(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
        at pde.ict.filter.DmsFilter.doFilter(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterIntern
al(CharacterEncodingFilter.java:96)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
equestFilter.java:75)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
        at com.wanda.sso.client.servlet.CheckLoginFilter.doFilter(CheckLoginFilt
er.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:224)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:169)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:98)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
927)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
11Processor.java:987)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
AbstractProtocol.java:579)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin
t.java:309)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:603)
        at java.lang.Thread.run(Thread.java:636)
Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverte
r.office.OfficeException: could not establish connection
        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
        at java.util.concurrent.FutureTask.get(FutureTask.java:111)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWai
t(ManagedOfficeProcess.java:62)
        ... 49 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: could not estab
lish connection
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProc
essAndConnect(ManagedOfficeProcess.java:142)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$000(
ManagedOfficeProcess.java:31)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess$1.run(Manag
edOfficeProcess.java:58)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        ... 3 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: office process 
died with exit code 77
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess$6.attempt(M
anagedOfficeProcess.java:136)
        at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java
:40)
        at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java
:30)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProc
essAndConnect(ManagedOfficeProcess.java:120)
        ... 8 more
Jan 12, 2013 5:05:12 PM org.artofsolving.jodconverter.office.ProcessPoolOfficeMa
nager stop
INFO: stopping

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
OS : redhat enterprise 6.1
openOffice version  3.4.1 

Please provide any additional information below.

the Info : office process died with exit code 77  . I don't kown what mean   
,I am very holp you can help me ?  I am waitting ..... thank  you very much  

Original issue reported on code.google.com by wuzhihui...@yahoo.cn on 12 Jan 2013 at 9:52

GoogleCodeExporter commented 8 years ago
Hi, we are experiencing the exact same problem on Ubuntu 12.04 and OpenOffice 
3.4.1
Were you able to fix this?

Original comment by knas...@monaqasat.com on 14 Apr 2013 at 1:31

GoogleCodeExporter commented 8 years ago
If you are using a open office as a service use this
ExternalOfficeManagerConfiguration officeConfiguration = new 
ExternalOfficeManagerConfiguration();
officeConfiguration.setConnectionProtocol(OfficeConnectionProtocol.SOCKET);
officeConfiguration.setPortNumber(2002);
OfficeManager officeManager = officeConfiguration.buildOfficeManager();
officeManager.start();

instead of
OfficeManager officeManager = new 
DefaultOfficeManagerConfiguration().buildOfficeManager();
officeManager.start();

Original comment by daehy...@gmail.com on 20 May 2013 at 5:44

GoogleCodeExporter commented 8 years ago
Hi, 

  Were you able to fix this? I'm running to the same issue with return exit code 77

Original comment by shalinis...@gmail.com on 14 Nov 2013 at 4:18

GoogleCodeExporter commented 8 years ago
Hi
    I have the same issue with return exit code 77,  someone can fix this? Thx!

Original comment by sebars...@gmail.com on 13 Feb 2014 at 7:40

GoogleCodeExporter commented 8 years ago
Same issue.. is there any solution?

Original comment by saintdan...@gmail.com on 7 Apr 2014 at 6:35