AnsweredAssumed Answered

[Résolu] Exploitation : Perte du process soffice.bin

Question asked by doal6472 on Dec 10, 2009
Latest reply on Jan 5, 2010 by michaelh
Bonjour,

Nous rencontrons un pb avec le process soffice.bin : En utilisation d'alfresco appelant une fonctionnalité openoffice, l'utilisateur obtient un message d'erreur d'impossibilité d'accès au document et le process soffice.bin tombe.

Après un arrêt de tous les process pour faire un démarrage à froid : Si le script de démarrage Alfresco démarre openoffice AVANT qu'alfresco ai achevé son démarrage, le processus de démarrage d'alfresco tombe en echec :
09:04:08,884 User:System ERROR [web.context.ContextLoader] Context initialization failed
net.sf.jooreports.openoffice.connection.OpenOfficeException: connection failed: socket,host=localhost,port=8100,tcpNoDelay=1; com.sun.star.lang.DisposedException: com.sun.star.io.IOException: java.net.SocketException: Socket closed
        at net.sf.jooreports.openoffice.connection.AbstractOpenOfficeConnection.connect(AbstractOpenOfficeConnection.java:77)
        at org.alfresco.util.OpenOfficeConnectionTester.testAndConnect(OpenOfficeConnectionTester.java:157)
        at org.alfresco.util.OpenOfficeConnectionTester.checkConnection(OpenOfficeConnectionTester.java:128)
        at org.alfresco.util.OpenOfficeConnectionTester.onBootstrap(OpenOfficeConnectionTester.java:101)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
        at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
        at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
10 déc. 2009 09:04:08 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
10 déc. 2009 09:04:08 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de d�marrage du contexte [/alfresco] suite aux erreurs pr�c�dentes
log4j:WARN No appenders could be found for logger (org.quartz.core.JobRunShell).
log4j:WARN Please initialize the log4j system properly.
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
10 déc. 2009 09:04:10 org.apache.catalina.startup.HostConfig deployWAR
INFO: D�ploiement de l'archive studio.war de l'application web
09:04:13,694  INFO  [web.scripts.DeclarativeRegistry] Registered 67 Web Scripts (+0 failed), 71 URLs
09:04:13,696  INFO  [web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 349.36584ms)
09:05:14,228  INFO  [web.scripts.DeclarativeRegistry] Registered 101 Web Scripts (+0 failed), 105 URLs
09:05:14,229  INFO  [web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 60515.875ms)
09:05:14,396  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Framework
10 déc. 2009 09:05:14 org.apache.catalina.startup.HostConfig deployWAR

Si, par contre, le script de démarrage ne tente pas de démarrer soffice.bin, Alfresco démarre correctement. un démarrage manuel de soffice.bin (avec la même syntaxe de commande que celle effectuée par le script) permet de lancer le process soffice.bin. Celui-ci semble tenir quelques minutes, puis le serveur Alfresco tombe :  (log du catalina.out :
INFO: Jk running ID=0 time=0/232  config=null
10 déc. 2009 09:13:39 org.apache.catalina.startup.Catalina start
INFO: Server startup in 129018 ms
09:23:00,105 User:System ERROR [quartz.core.JobRunShell] Job DEFAULT.openOfficeConnectionTesterJobDetail threw an unhandled Exception:
net.sf.jooreports.openoffice.connection.OpenOfficeException: connection failed: socket,host=localhost,port=8100,tcpNoDelay=1; com.sun.star.lang.DisposedException: java.io.IOException: com.sun.star.io.IOException: EOF reached - socket,host=localhost,port=8100,tcpNoDelay=1,localHost=localhost.localdomain,localPort=55247,peerHost=localhost,peerPort=8100
        at net.sf.jooreports.openoffice.connection.AbstractOpenOfficeConnection.connect(AbstractOpenOfficeConnection.java:77)
        at org.alfresco.util.OpenOfficeConnectionTester.testAndConnect(OpenOfficeConnectionTester.java:157)
        at org.alfresco.util.OpenOfficeConnectionTester$OpenOfficeConnectionTesterJob.execute(OpenOfficeConnectionTester.java:254)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)

La config : Socle 2xIntel 5110, 16 Go RAM, Linux X86_64, java 6u12, Ooo 3.11 Intel, Alfresco 3.0Stable. Cette configuration est en production depuis 4 mois (Aout 2009) et n'avait jamais posé ce souci.


Merci de vos éventuelles remarques ou idées.

Outcomes