Project

General

Profile

Actions

Bug #4106

closed

Erreur présente dans les logs à propos du module "SilverStatisticsSender"

Added by Mathis FIBLEUIL almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Statistiques
Start date:
12/27/2012
Due date:
% Done:

100%

Estimated time:
Spent time:
Navigateur:
Firefox 10
Votre version de Silverpeas:
5.11
Système d'exploitation:
Votre base de données:
PostgreSQL
Livraison en TEST:
Livraison en PROD:

Description

Bonjour,

Ce message apparait à plusieurs reprises dans le fichier errorAndFatal. Cela ne semble pas gêner le fonctionnement de la plateforme par contre.
Rencontrez vous également ce problème ?

26/12/12-15:36:27,113 - ERROR : SilverStatisticsSender  | MODULE : silverstatistics.SilverStatisticsManager.sendStatistic | !!! Message SilverStatisticsSender  NOT INITIALIZED !!! (EXCEPTION : javax.naming.NameNotFoundException: statisticsQueue not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at com.stratelia.silverpeas.silverstatistics.control.SilverStatisticsSender.send(SilverStatisticsSender.java:78)
    at com.stratelia.silverpeas.silverstatistics.control.SilverStatisticsManager.sendStatistic(SilverStatisticsManager.java:263)
    at com.stratelia.silverpeas.silverstatistics.control.SilverStatisticsManager.addStatConnection(SilverStatisticsManager.java:343)
    at com.stratelia.silverpeas.peasCore.SessionManager.removeSession(SessionManager.java:269)
    at com.stratelia.silverpeas.peasCore.SessionManager.shutdown(SessionManager.java:499)
    at com.stratelia.webactiv.servlets.SilverListener.contextDestroyed(SilverListener.java:54)
    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3466)
    at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3975)
    at org.apache.catalina.core.ContainerBase.destroy(ContainerBase.java:1162)
    at org.apache.catalina.core.StandardContext.destroy(StandardContext.java:4062)
    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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performUndeployInternal(TomcatDeployment.java:572)
    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performUndeploy(TomcatDeployment.java:548)
    at org.jboss.web.deployers.AbstractWarDeployment.stop(AbstractWarDeployment.java:495)
    at org.jboss.web.deployers.WebModule.stopModule(WebModule.java:133)
    at org.jboss.web.deployers.WebModule.stop(WebModule.java:100)
    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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
    at $Proxy41.stop(Unknown Source)
    at org.jboss.system.microcontainer.StartStopLifecycleAction.uninstallAction(StartStopLifecycleAction.java:74)
    at org.jboss.system.microcontainer.StartStopLifecycleAction.uninstallAction(StartStopLifecycleAction.java:41)
    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleUninstallAction(SimpleControllerContextAction.java:79)
    at org.jboss.dependency.plugins.action.AccessControllerContextAction.uninstall(AccessControllerContextAction.java:131)
    at org.jboss.dependency.plugins.AbstractControllerContextActions.uninstall(AbstractControllerContextActions.java:58)
    at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:385)
    at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:2078)
    at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1624)
    at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1472)
    at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1537)
    at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1472)
    at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1537)
    at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1472)
    at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:756)
    at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:669)
    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.undeploy(BeanMetaDataDeployer.java:230)
    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.undeploy(BeanMetaDataDeployer.java:58)
    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalUndeploy(AbstractSimpleRealDeployer.java:70)
    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:117)
    at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:204)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doUndeploy(DeployersImpl.java:1862)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1769)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1762)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1724)
    at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:385)
    at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:2078)
    at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1624)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:948)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1968)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1001)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:656)
    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)
    at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)
    at org.jboss.profileservice.dependency.ProfileDeployAction.undeploy(ProfileDeployAction.java:195)
    at org.jboss.profileservice.dependency.ProfileDeployAction.uninstallActionInternal(ProfileDeployAction.java:112)
    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.uninstallAction(InstallsAwareAction.java:175)
    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.uninstallAction(InstallsAwareAction.java:42)
    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleUninstallAction(SimpleControllerContextAction.java:79)
    at org.jboss.dependency.plugins.action.AccessControllerContextAction.uninstall(AccessControllerContextAction.java:131)
    at org.jboss.dependency.plugins.AbstractControllerContextActions.uninstall(AbstractControllerContextActions.java:58)
    at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:385)
    at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:2078)
    at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1624)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:948)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
    at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.stop(ProfileActivationWrapper.java:210)
    at org.jboss.profileservice.dependency.ProfileActivationWrapper.stop(ProfileActivationWrapper.java:101)
    at org.jboss.profileservice.dependency.ProfileActivationService.deactivateProfile(ProfileActivationService.java:220)
    at org.jboss.profileservice.dependency.ProfileActivationService.deactivate(ProfileActivationService.java:170)
    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.stop(AbstractProfileServiceBootstrap.java:130)
    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.shutdown(BasicProfileServiceBootstrap.java:160)
    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.shutdown(BasicProfileServiceBootstrap.java:56)
    at org.jboss.bootstrap.impl.base.server.AbstractServer.shutdownBootstraps(AbstractServer.java:859)
    at org.jboss.bootstrap.impl.base.server.AbstractServer.shutdown(AbstractServer.java:300)
    at org.jboss.Main$ShutdownHook$1.run(Main.java:1005)
)
Actions #1

Updated by Nicolas Eysseric almost 12 years ago

  • Category set to Statistiques
  • Status changed from New to Feedback

D'après vos traces, cette erreur apparait lors de l'arrêt de Silverpeas.
Nous ne reproduisons pas ce problème.
Merci de nous fournir l'ensemble des traces afin d'élargir notre analyse...

Actions #2

Updated by Nicolas Eysseric almost 12 years ago

  • Status changed from Feedback to Assigned
  • Assignee set to Miguel Moquillon

Je reviens sur ce que je viens juste de dire.
Le problème est reproductible systématiquement mais je ne sais pas si il peut être corrigé ou contourné.

En fait, il se produit lorsque l'application est arrêtée et qu'il y a des sessions en cours (des utilisateurs connectés).
Lors de l'arrêt, les ressources ne sont plus disponibles. Et notamment les queues JMS utilisées pour enregistrer les déconnexions... Et comme l'arrêt de l'application met fin aux sessions en cours, des événements sont lancés mais ne peuvent être traités par la queue JMS puisqu'elle a été arrêté !

Actions #3

Updated by Miguel Moquillon almost 12 years ago

  • Status changed from Assigned to In progress...
Actions #4

Updated by Miguel Moquillon over 11 years ago

  • Status changed from In progress... to Resolved
  • % Done changed from 0 to 100

Le problème provenait que l'envoi de statistiques sur les sessions ouvertes, lors de l'arrêt de Silverpeas, requière de JNDI les topics corresponsants. Or, à ce niveau de l'arrêt de la plate-forme, le service JNDI est déjà arrêté. Donc, le code n'arrivait pas à obtenir les topics pour la notification.

La solution a consisté à ce que le service de gestion des sessions (SessionManager) et le service de gestion des statistiques (SilverStatisticManager) soient gérés par Spring. De cette manière, toute initialisation et arrêt des services sont réalisés par Spring, et donc avec le service JNDI encore actif.

Actions #5

Updated by Nicolas Eysseric over 11 years ago

  • Status changed from Resolved to Closed
  • Target version set to Version 5.11.1

OK. Validé et intégré...

Actions

Also available in: Atom PDF