Xwiki can not start openoffice when Apr used

Hello
(today is not my day :-/)

On my tomcat server, I recently use APR (Apache Tomcat 6.0 (6.0.53) - Apache Portable Runtime (APR) based Native library for Tomcat) because before I had this warning in my catalina.out:

05-Oct-2017 13:33:57.231 INFOS [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

But now, I notice that as soon I use apr, xwiki can not start office server anymore (and ODT export)

05-Oct-2017 16:02:53.818 INFOS [xxxxxgouv.fr-startStop-1] org.artofsolving.jodconverter.office.ProcessPoolOfficeM
anager.<init> ProcessManager implementation is LinuxProcessManager
05-Oct-2017 16:02:53.873 INFOS [OfficeProcessThread-0] org.artofsolving.jodconverter.office.OfficeProcess.start starting process 
with acceptString 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1' and profileDir '/home/serv/temp/.jodconverter_socket_host-127.0.
0.1_port-8100'
2017-10-05 16:02:53,900 [xxxxxgouv.fr-startStop-1] ERROR .OfficeServerLifecycleListener - Error while connecting 
/ starting the office server. 
org.xwiki.officeimporter.server.OfficeServerException: Error while connecting / starting the office server.
        at org.xwiki.officeimporter.internal.server.DefaultOfficeServer.start(DefaultOfficeServer.java:187)
        at org.xwiki.officeimporter.internal.server.OfficeServerLifecycleListener.startOfficeServer(OfficeServerLifecycleListener
.java:98)
        at org.xwiki.officeimporter.internal.server.OfficeServerLifecycleListener.onEvent(OfficeServerLifecycleListener.java:85)
        at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:304)
        at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269)
        at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:321)
        at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:118)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:66)
        at org.artofsolving.jodconverter.office.PooledOfficeManager.start(PooledOfficeManager.java:114)
        at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(ProcessPoolOfficeManager.java:61)
        at org.xwiki.officeimporter.internal.server.DefaultOfficeServer.start(DefaultOfficeServer.java:182)
        ... 15 common frames omitted
Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:64)
        ... 18 common frames omitted
Caused by: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:162)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$000(ManagedOfficeProcess.java:25)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess$1.run(ManagedOfficeProcess.java:60)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        ... 4 common frames omitted
Caused by: java.lang.IllegalStateException: process with acceptString 'socket,host=127.0.0.1,port=8100' started but its pid could not be found
        at org.artofsolving.jodconverter.office.OfficeProcess.start(OfficeProcess.java:103)
        at org.artofsolving.jodconverter.office.OfficeProcess.start(OfficeProcess.java:64)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:134)
        ... 7 common frames omitted
05-Oct-2017 16:02:54.095 AVERTISSEMENT [xxxxxgouv.fr-startStop-1] org.apache.catalina.session.StandardSession.doReadObject Cannot deserialize session attribute visitObject for session C8009DC5184050C2C1B3BC26636BC685
05-Oct-2017 16:02:54.100 GRAVE [xxxxxgouv.fr-startStop-1] org.apache.catalina.session.StandardManager.startInternal Exception au chargement des sessions depuis le stockage persistant (persistent storage)
 java.io.InvalidClassException: [Ljava.lang.StackTraceElement;; no valid constructor
        at java.io.ObjectStreamClass$ExceptionInfo.newInvalidClassException(ObjectStreamClass.java:150)
        at java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:790)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1987)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
        at org.apache.catalina.session.StandardSession.doReadObject(StandardSession.java:1611)
        at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1077)
        at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:218)
        at org.apache.catalina.session.StandardManager.load(StandardManager.java:162)
        at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:356)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5206)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

05-Oct-2017 16:02:54.614 INFOS [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [http-nio-8080]
05-Oct-2017 16:02:54.618 INFOS [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [ajp-nio-8009]
05-Oct-2017 16:02:54.618 INFOS [main] org.apache.catalina.startup.Catalina.start Server startup in 34466 ms

I have same error message when I try to restart Office server form WebPreference.
My WEB-INF/xwiki.properties

openoffice.serverType=0
# xxx
# openoffice.serverType=1

#-# [Since 1.9M2]
#-# Port number used for connecting to the openoffice server instance.
#-# Default port is 8100 
openoffice.serverPort=8100

#-# [Since 1.9M2]
#-# If the openoffice server should be started / connected upon XE start.
#-# Default value is false
openoffice.autoStart=true

#-# [Since 1.8RC3]
#-# Path to openoffice installation (serverType:0 only).
#-# If no path is provided, a default value will be calculated based on the operating environment.
# xxx
openoffice.homePath=/usr/lib/libreoffice/

Any idea (again) ?
Thxs

Pascal B

I use tomcat in http and use reverse proxy Apache to publish in https my xwiki, then maybe I don’t need Apr?
My server.xml:

  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="off" />

but my catalina.out:

05-Oct-2017 17:20:56.043 INFOS [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEven
t APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]

hum strange that “useOpenSSL [true]”…

I manage to disable it but office server doesn’t start still.

I open this issue: Loading...