Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
4.5-milestone-1
-
Unknown
-
Description
When I was trying to run LibreOffice server instead of OpenOffice server to test the import upgrades on a jetty XE 4.5 milestone-1 I encounter an issue:
In xwiki.properties I tried the following:
# openoffice.serverType=0 openoffice.profilePath=C:/Users/jean/AppData/Roaming/LibreOffice/3 openoffice.homePath=C:/Program Files/LibreOffice 3.6
Then I restarted XWiki and go in the Admin to check the state of the LibreOffice server.
The server is not running so I tried to trigger it and here is the error:
legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.api.XWiki.includeForm(XWiki.java:1543) [xwiki-platform- legacy-oldcore-4.5-milestone-1.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6. 0_39] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6. 0_39] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na: 1.6.0_39] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_39] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.do Invoke(UberspectImpl.java:395) [velocity-1.7.jar:1.7] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in voke(UberspectImpl.java:384) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:173) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:280) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:369) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocim acroProxy.java:216) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacr o.java:311) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacr o.java:230) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:207) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTElseIfStatement.render(AST ElseIfStatement.java:92) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:106) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:342) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:106) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:342) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:106) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:342) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:106) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:342) [velocity-1.7.jar:1.7] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVel ocityEngine.java:228) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVel ocityEngine.java:187) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateStr ing(VelocityMacro.java:124) [xwiki-platform-rendering-macro-velocity-4.5-milesto ne-1.jar:na] at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateStr ing(VelocityMacro.java:50) [xwiki-platform-rendering-macro-velocity-4.5-mileston e-1.jar:na] at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(Ab stractScriptMacro.java:302) [xwiki-platform-rendering-macro-script-4.5-milestone -1.jar:na] at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(Abstract ScriptMacro.java:198) [xwiki-platform-rendering-macro-script-4.5-milestone-1.jar :na] at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(Abstract ScriptMacro.java:59) [xwiki-platform-rendering-macro-script-4.5-milestone-1.jar: na] at org.xwiki.rendering.internal.transformation.macro.MacroTransformation .transformOnce(MacroTransformation.java:185) [xwiki-rendering-transformation-mac ro-4.5-milestone-1.jar:na] at org.xwiki.rendering.internal.transformation.macro.MacroTransformation .transform(MacroTransformation.java:132) [xwiki-rendering-transformation-macro-4 .5-milestone-1.jar:na] at org.xwiki.rendering.internal.transformation.DefaultTransformationMana ger.performTransformations(DefaultTransformationManager.java:87) [xwiki-renderin g-legacy-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentC ontentDisplayer.java:250) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentC ontentDisplayer.java:124) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentC ontentDisplayer.java:54) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDo cumentDisplayer.java:80) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDo cumentDisplayer.java:38) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocument Displayer.java:113) [xwiki-platform-sheet-api-4.5-milestone-1.jar:na] at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocument Displayer.java:50) [xwiki-platform-sheet-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(Config uredDocumentDisplayer.java:67) [xwiki-platform-display-api-4.5-milestone-1.jar:n a] at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(Config uredDocumentDisplayer.java:41) [xwiki-platform-display-api-4.5-milestone-1.jar:n a] at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java :917) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java :896) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java :927) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:603) [xwi ki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6. 0_39] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6. 0_39] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na: 1.6.0_39] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_39] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.do Invoke(UberspectImpl.java:395) [velocity-1.7.jar:1.7] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in voke(UberspectImpl.java:384) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:173) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:280) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:369) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:87) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:342) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:106) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:342) [velocity-1.7.jar:1.7] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVel ocityEngine.java:228) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVel ocityEngine.java:187) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:105) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.eva luate(DefaultPrivilegedTemplateRenderer.java:125) [xwiki-platform-legacy-oldcore -4.5-milestone-1.jar:na] at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.eva luateTemplate(DefaultPrivilegedTemplateRenderer.java:75) [xwiki-platform-legacy- oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1769) [xwiki-platform -legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:155) [xwiki-platform -legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:241) [xwiki-pl atform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) [xwiki-pl atform-legacy-oldcore-4.5-milestone-1.jar:na] at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) [struts-1.2.9.jar:1.2.9] at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) [servlet -api-2.5.jar:2.5] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet -api-2.5.jar:2.5] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538 ) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1352) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120) [xwiki -platform-legacy-oldcore-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionF ilter.java:144) [xwiki-platform-wysiwyg-server-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.ja va:66) [xwiki-platform-webdav-server-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilt er.doFilter(SavedRequestRestorerFilter.java:208) [xwiki-platform-container-servl et-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilt er.doFilter(SetCharacterEncodingFilter.java:111) [xwiki-platform-container-servl et-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java :476) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j ava:119) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav a:517) [jetty-security-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl er.java:225) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl er.java:937) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java: 406) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle r.java:183) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle r.java:871) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j ava:117) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(Cont extHandlerCollection.java:247) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725 ] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerColl ection.java:149) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper .java:110) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.Server.handle(Server.java:346) [jetty-server -7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection. java:589) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpCo nnection.java:1065) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823) [jet ty-http-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220) [jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:41 1) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn dPoint.java:535) [jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd Point.java:40) [jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool .java:529) [jetty-util-7.4.5.v20110725.jar:7.4.5.v20110725] at java.lang.Thread.run(Unknown Source) [na:1.6.0_39] Caused by: org.artofsolving.jodconverter.office.OfficeException: failed to start and connect at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWai t(ManagedOfficeProcess.java:64) ~[jodconverter-core-3.0-beta-4-xwiki-20110822.ja r:na] at org.artofsolving.jodconverter.office.PooledOfficeManager.start(Pooled OfficeManager.java:101) ~[jodconverter-core-3.0-beta-4-xwiki-20110822.jar:na] at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(P rocessPoolOfficeManager.java:62) ~[jodconverter-core-3.0-beta-4-xwiki-20110822.j ar:na] at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager .start(DefaultOpenOfficeManager.java:174) ~[xwiki-platform-legacy-office-importe r-4.5-milestone-1.jar:na] ... 158 common frames omitted Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverte r.office.OfficeException: could not establish connection at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source) ~[na:1. 6.0_39] at java.util.concurrent.FutureTask.get(Unknown Source) ~[na:1.6.0_39] at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWai t(ManagedOfficeProcess.java:62) ~[jodconverter-core-3.0-beta-4-xwiki-20110822.ja r:na] ... 161 common frames omitted Caused by: org.artofsolving.jodconverter.office.OfficeException: could not estab lish connection at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProc essAndConnect(ManagedOfficeProcess.java:142) ~[jodconverter-core-3.0-beta-4-xwik i-20110822.jar:na] at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$000( ManagedOfficeProcess.java:31) ~[jodconverter-core-3.0-beta-4-xwiki-20110822.jar: na] at org.artofsolving.jodconverter.office.ManagedOfficeProcess$1.run(Manag edOfficeProcess.java:58) ~[jodconverter-core-3.0-beta-4-xwiki-20110822.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~ [na:1.6.0_39] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) ~[na:1. 6.0_39] at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.6.0_39] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) ~[na:1.6.0_39] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[ na:1.6.0_39] ... 1 common frames omitted Caused by: org.artofsolving.jodconverter.office.OfficeException: office process died with exit code -1073741515 at org.artofsolving.jodconverter.office.ManagedOfficeProcess$6.attempt(M anagedOfficeProcess.java:136) ~[jodconverter-core-3.0-beta-4-xwiki-20110822.jar: na] at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java :40) ~[jodconverter-core-3.0-beta-4-xwiki-20110822.jar:na] at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java :30) ~[jodconverter-core-3.0-beta-4-xwiki-20110822.jar:na] at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProc essAndConnect(ManagedOfficeProcess.java:120) ~[jodconverter-core-3.0-beta-4-xwik i-20110822.jar:na] ... 8 common frames omitted
So, thinking that the issue were coming from the path, I tried to escape the ' '(space) using multiple trick like openoffice.homePath=C:/Program Files/LibreOffice\ 3.6 , openoffice.homePath=C:
Program Files
LibreOffice 3.6, openoffice.homePath="C:/Program Files/LibreOffice 3.6", openoffice.homePath='C:/Program Files/LibreOffice 3.6', etc...
None worked.
Then I changed the config to :
openoffice.serverType=1 # openoffice.profilePath=C:/Users/jean/AppData/Roaming/LibreOffice/3 # openoffice.homePath=C:/Program Files/LibreOffice 3.6
Of course it wasn't working either because LibreOffice is not running any Server by default and I didn't know that.
I used the command 'C:\Program Files\LibreOffice 3.6\program>soffice.exe -headless -accept="socket,h
ost=127.0.0.1,port=8100;urp;" -nofirststartwizard' to run it
I triggered it in XWiki admin and it worked.
After what I restarted XWiki with the following config:
openoffice.serverType=0 openoffice.profilePath=C:/Users/jean/AppData/Roaming/LibreOffice/3 openoffice.homePath=C:/Program Files/LibreOffice 3.6
Check that the LibreOffice server is running : OK
Disconnect it and reconnect it : KO
Same error
My conclusion would be that the .jar we're using donesn't know how to lunch the LibreOffice servur but know how to check it and to use it so it's not coming from the path but maybe only by the missing command.
Attachments
Issue Links
- duplicates
-
XWIKI-8093 LibreOffice 3.5 not supported by Office Importer on Windows
- Closed