Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9227

service cloudstack-management stop returns [failed] due to log4j:WARN No appenders could be found for logger (com.cloud.cluster.ClusterManagerImpl). log4j:WARN Please initialize the log4j system properly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.7.0
    • None
    • Management Server
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None
    • Centos6.7 mgmt Server running 4.7 noredist and vsphere 5.5 - performing marvin integration tests

    Description

      Found when (trying) to run Marvin integration tests. Tests fail as Marvin cannot restart mgmt service.

      Catalina.out logs:

      log4j:WARN No appenders could be found for logger (com.cloud.cluster.ClusterManagerImpl).

      /cc dahn
      as may be related to recent changes in ./framework/cluster/src/com/cloud/cluster/ClusterServiceServletContainer.java

      Full catalina.out error:

      INFO [o.a.c.s.l.CloudStackExtendedLifeCycle] (Thread-94:null) (logid stopping bean ClusterManagerImpl
      INFO [c.c.c.ClusterManagerImpl] (Thread-94:null) (logid Stopping Cluster manager, msid : 7213162768620
      log4j:WARN No appenders could be found for logger (com.cloud.cluster.ClusterManagerImpl).
      log4j:WARN Please initialize the log4j system properly.
      log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
      Jan 07, 2016 9:58:52 PM org.apache.catalina.core.AprLifecycleListener init
      INFO: 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
      Jan 07, 2016 9:58:52 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
      INFO: Using a shared selector for servlet write/read
      Jan 07, 2016 9:58:52 PM org.apache.coyote.http11.Http11NioProtocol init
      INFO: Initializing Coyote HTTP/1.1 on http-8080
      Jan 07, 2016 9:58:52 PM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 1159 ms
      Jan 07, 2016 9:58:52 PM org.apache.catalina.core.StandardService start
      INFO: Starting service Catalina
      Jan 07, 2016 9:58:52 PM org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/6.0.24
      Jan 07, 2016 9:58:52 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory client
      Jan 07, 2016 9:58:53 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
      INFO: validateJarFile(/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/servlet-api-2.5-20081211.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
      Jan 07, 2016 9:58:53 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
      INFO: validateJarFile(/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
      Jan 07, 2016 9:58:53 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
      INFO: validateJarFile(/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/tomcat-embed-core-8.0.15.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
      Jan 07, 2016 9:58:55 PM org.apache.catalina.session.StandardManager doLoad
      SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: net.sf.cglib.proxy.NoOp$1
      java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: net.sf.cglib.proxy.NoOp$1
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1354)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1997)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1510)
      at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:999)
      at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
      at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
      at org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
      at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4635)
      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:526)
      at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
      at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
      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:593)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      Caused by: java.io.NotSerializableException: net.sf.cglib.proxy.NoOp$1
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
      at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1586)
      at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:1016)
      at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
      at org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
      at org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4886)
      at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
      at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1319)
      at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1290)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:323)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
      at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
      at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
      at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
      at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
      at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:687)

      Jan 07, 2016 9:58:55 PM org.apache.catalina.session.StandardManager start
      SEVERE: Exception loading sessions from persistent storage
      java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: net.sf.cglib.proxy.NoOp$1
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1354)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1997)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1510)
      at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:999)
      at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
      at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
      at org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
      at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4635)
      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:526)
      at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
      at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
      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:593)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      Caused by: java.io.NotSerializableException: net.sf.cglib.proxy.NoOp$1
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
      at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1586)
      at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:1016)
      at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
      at org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
      at org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4886)
      at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
      at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1319)
      at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1290)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:323)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
      at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
      at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
      at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
      at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
      at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:687)

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulangus Paul Angus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: