Error Starting Open Office Server

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Error Starting Open Office Server

Marine Julian
Hello,

I have XEM 2.3 (xwiki-enterprise-manager-mysql-2.3.zip) under Debian and
Open Office 2.4. I configured my open office server like this :*
openoffice.homePath=/usr/lib/openoffice/
openoffice.profilePath=/home/xwiki/.openoffice.org2*
When I tried to start the openoffice server, I had the "Error while
connecting / starting openoffice." message (see error log below). Do you
have an idea of what is the issue ?

[http://myserver.fr:8080/xwiki/bin/view/XWiki/OfficeImporterAdmin] ERROR
agerVelocityContextInitializer  - Error while connecting / starting
openoffice.
org.xwiki.officeimporter.openoffice.OpenOfficeManagerException: Error while
connecting / starting openoffice.
        at
org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.start(DefaultOpenOfficeManager.java:143)
        at
org.xwiki.officeimporter.openoffice.OpenOfficeManagerVelocityBridge.startServer(OpenOfficeManagerVelocityBridge.java:100)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
        at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
        at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
        at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
        at
org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:460)
        at
org.apache.velocity.runtime.parser.node.ASTNotNode.evaluate(ASTNotNode.java:63)
        at
org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62)
        at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:85)
        at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
        at
org.apache.velocity.runtime.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:92)
        at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
        at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
        at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
        at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
        at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
        at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
        at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:93)
        at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
        at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
        at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
        at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
        at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:794)
        at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:811)
        at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:525)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
        at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
        at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
        at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
        at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
        at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
        at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
        at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
        at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
        at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
        at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
        at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
        at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1784)
        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1729)
        at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:837)
        at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
        at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
        at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
        at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
        at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
        at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
        at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
        at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
        at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
        at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
        at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
        at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
        at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
        at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
        at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
        at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1833)
        at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1761)
        at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:154)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
        at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
        at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:304)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: net.sf.jodconverter.office.OfficeException: failed to start and
connect
        at
net.sf.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:75)
        at
net.sf.jodconverter.office.ManagedProcessOfficeManager.start(ManagedProcessOfficeManager.java:100)
        at
org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.start(DefaultOpenOfficeManager.java:138)
        ... 111 more
Caused by: java.util.concurrent.ExecutionException:
net.sf.jodconverter.office.OfficeException: could not establish connection
        at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
        at java.util.concurrent.FutureTask.get(Unknown Source)
        at
net.sf.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:73)
        ... 113 more
Caused by: net.sf.jodconverter.office.OfficeException: could not establish
connection
        at
net.sf.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:137)
        at
net.sf.jodconverter.office.ManagedOfficeProcess.access$000(ManagedOfficeProcess.java:36)
        at
net.sf.jodconverter.office.ManagedOfficeProcess$1.run(ManagedOfficeProcess.java:69)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: net.sf.jodconverter.util.RetryTimeoutException:
java.net.ConnectException: connection failed:
'socket,host=127.0.0.1,port=8100,tcpNoDelay=1'; java.net.ConnectException:
Connection refused
        at net.sf.jodconverter.util.Retryable.execute(Retryable.java:47)
        at net.sf.jodconverter.util.Retryable.execute(Retryable.java:30)
        at
net.sf.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:127)
        ... 8 more
Caused by: java.net.ConnectException: connection failed:
'socket,host=127.0.0.1,port=8100,tcpNoDelay=1'; java.net.ConnectException:
Connection refused
        at
net.sf.jodconverter.office.OfficeConnection.connect(OfficeConnection.java:96)
        at
net.sf.jodconverter.office.ManagedOfficeProcess$6.attempt(ManagedOfficeProcess.java:130)
        at net.sf.jodconverter.util.Retryable.execute(Retryable.java:40)
        ... 10 more
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Error Starting Open Office Server

Asiri Rathnayake
Hi,

I'm afraid newer versions of jodconverter requires OpenOffice.org 3.0 or
above.

See: http://code.google.com/p/jodconverter/wiki/GettingStarted

- Asiri
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Error Starting Open Office Server

Marine Julian
Hi Asiri,

Asiri Rathnayake wrote
I'm afraid newer versions of jodconverter requires OpenOffice.org 3.0 or
above.

See: http://code.google.com/p/jodconverter/wiki/GettingStarted
Indeed, I installed OpenOffice 3.2 and it worked. I hope that there is not too many bugs under Debian !
By the way, I had the "Inadequate privileges" issue when I tried to start the server. But, like suggested (somewhere in the forum), if I saved the XWiki.OfficeImporterAdmin, I was abble to start it. Unfortunately, I had to repeat this method every times I wanted to start/stop/restart the server...

One more thing : when I exported a page in pdf and rtf format (does it work with the openoffice server ?), i had the following error/warn messages and I don't understand them. Can someone throw some light on it for me ?
WARN apps.FOUserAgent - The following feature isn't implemented by Apache FROP, yet: table-layout="auto" (on fo:table) (See position 248:165)
ERROR properties.PropertyMaker - forcing opt to max in LengthRange
The document which I tried to export has tables with images in. In pdf format, the tables are rendered but they exceed the larger of the page and so they were truncated (we cannot see all the content). In rtf format, instead of tables, there are only very big cells (one per pages) without any content (neither image or text). Please, note that those behaviors apply to tables with AND without images. Do you think the warn/error messages are linked to this ?
Reply | Threaded
Open this post in threaded view
|

Re: Error Starting Open Office Server

Asiri Rathnayake
Hi Marine,

On Wed, May 26, 2010 at 1:44 PM, Marine Julian <[hidden email]>wrote:

>
> Hi Asiri,
>
>
> Asiri Rathnayake wrote:
> > I'm afraid newer versions of jodconverter requires OpenOffice.org 3.0 or
> > above.
> >
> > See: http://code.google.com/p/jodconverter/wiki/GettingStarted
> Indeed, I installed OpenOffice 3.2 and it worked. I hope that there is not
> too many bugs under Debian !
> By the way, I had the "Inadequate privileges" issue when I tried to start
> the server. But, like suggested (somewhere in the forum), if I saved the
> XWiki.OfficeImporterAdmin, I was abble to start it. Unfortunately, I had to
> repeat this method every times I wanted to start/stop/restart the server...
>

Yes, this is a known issue, hopefully it will be fixed soon.


> One more thing : when I exported a page in pdf and rtf format (does it work
> with the openoffice server ?),


Nope. Although we have plans to use openoffice server for exporting wiki
pages, this is still an idea. Currently pdf export is done via apache fop
library AFAIK. You should wait for someone else to answer below question.

- Asiri


> i had the following error/warn messages and I
> don't understand them. Can someone throw some light on it for me ?
> WARN apps.FOUserAgent - The following feature isn't implemented by Apache
> FROP, yet: table-layout="auto" (on fo:table) (See position 248:165)
> ERROR properties.PropertyMaker - forcing opt to max in LengthRange
> The document which I tried to export has tables with images in. In pdf
> format, the tables are rendered but they exceed the larger of the page and
> so they were truncated (we cannot see all the content). In rtf format,
> instead of tables, there are only very big cells (one per pages) without
> any
> content (neither image or text). Please, note that those behaviors apply to
> tables with AND without images. Do you think the warn/error messages are
> linked to this ?
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Error-Starting-Open-Office-Server-tp5098694p5102370.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users