Details

    • Type: Regression Bug Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE M3
    • Fix Version/s: 6.2.0 CE M4
    • Labels:
    • Environment:
      Tomcat 7.0.34 + MySQL 5. Portal 6.2.X GIT ID: 5e70cf5d85b7b8d134231a5a849f7c14ec999c37.
      Plugins 6.2.X GIT ID: 6df5ae3ed7a9e490e4de541aa872635fb531ff05.
    • Epic/Theme:
    • Fix Priority:
      4
    • Similar Issues:
      Show 3 results 

      Description

      Steps to reproduce this issue:

      1. Start Liferay bundle clean (with no plugins/portlets)
      2. Hot deploy Contacts-portlet

      Console will nearly finish deploying Contacts-portlet, then throw the errors below. Liferay detects Contacts Portlet deployment in Update Manager, and the option to add the portlet on a page displays in Add > Contacts Center; My Contacts. But using these portlets throws more bean exceptions (see second stack trace).

      23:01:44,940 ERROR [localhost-startStop-2][ContextLoader:227] Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageListener.hot_deploy' defined in ServletContext resource [/WEB-INF/classes/META-INF/messaging-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcept
      ion: Could not instantiate bean class [com.liferay.contacts.messaging.HotDeployMessageListener]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtensionsUtil
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
              at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
              at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:97)
              at com.liferay.portal.deploy.hot.SpringHotDeployListener.doInvokeDeploy(SpringHotDeployListener.java:77)
              at com.liferay.portal.deploy.hot.SpringHotDeployListener.invokeDeploy(SpringHotDeployListener.java:40)
              at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:186)
              at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:95)
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
              at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:159)
              at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:149)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)
              at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:111)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
              at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
              at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)
      Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.contacts.messaging.HotDeployMessageListener]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtens
      ionsUtil
              at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
              ... 40 more
      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtensionsUtil
              at com.liferay.portal.kernel.util.ClassResolverUtil.resolveByPortletClassLoader(ClassResolverUtil.java:77)
              at com.liferay.contacts.messaging.HotDeployMessageListener.<init>(HotDeployMessageListener.java:75)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
              ... 42 more
      Caused by: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtensionsUtil
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:247)
              at com.liferay.portal.kernel.util.ClassResolverUtil.resolveByPortletClassLoader(ClassResolverUtil.java:74)
              ... 48 more
      
      23:01:44,973 ERROR [localhost-startStop-2][HotDeployImpl:189] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for contacts-portlet
      com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for contacts-portlet
              at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
              at com.liferay.portal.deploy.hot.SpringHotDeployListener.invokeDeploy(SpringHotDeployListener.java:43)
              at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:186)
              at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:95)
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
              at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:159)
              at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:149)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)
              at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:111)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
              at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
              at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageListener.hot_deploy' defined in ServletContext resource [/WEB-INF/classes/META-INF/messaging-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstanti
      ationException: Could not instantiate bean class [com.liferay.contacts.messaging.HotDeployMessageListener]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtensionsUtil
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
              at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
              at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:97)
              at com.liferay.portal.deploy.hot.SpringHotDeployListener.doInvokeDeploy(SpringHotDeployListener.java:77)
              at com.liferay.portal.deploy.hot.SpringHotDeployListener.invokeDeploy(SpringHotDeployListener.java:40)
              ... 24 more
      Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.contacts.messaging.HotDeployMessageListener]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtens
      ionsUtil
              at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
              ... 40 more
      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtensionsUtil
              at com.liferay.portal.kernel.util.ClassResolverUtil.resolveByPortletClassLoader(ClassResolverUtil.java:77)
              at com.liferay.contacts.messaging.HotDeployMessageListener.<init>(HotDeployMessageListener.java:75)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
              ... 42 more
      Caused by: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtensionsUtil
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:247)
              at com.liferay.portal.kernel.util.ClassResolverUtil.resolveByPortletClassLoader(ClassResolverUtil.java:74)
              ... 48 more
      

        Issue Links

          Activity

          Hide
          Kenji Heigel added a comment -

          Working as of:
          Portal 6.2.x GIT ID: 13dd62e1971a8ac5b6f581d3f8f8947d9bfc351c.

          This bug is caused by a portal commit, not a commit to plugins. The following plugin GIT ID was used in all test cases when determining the root cause:

          Plugins 6.2.x GIT ID: ad4c32d1a27e289b695bddbfd59d50752b448d0d.

          Show
          Kenji Heigel added a comment - Working as of: Portal 6.2.x GIT ID: 13dd62e1971a8ac5b6f581d3f8f8947d9bfc351c. This bug is caused by a portal commit, not a commit to plugins. The following plugin GIT ID was used in all test cases when determining the root cause: Plugins 6.2.x GIT ID: ad4c32d1a27e289b695bddbfd59d50752b448d0d.
          Hide
          Kenji Heigel added a comment - - edited

          Caused by LPS-30799
          Portal 6.2.x GIT ID: 1451cdfc9957346f1cbb6c72ea775e9bf7e63383.

          Show
          Kenji Heigel added a comment - - edited Caused by LPS-30799 Portal 6.2.x GIT ID: 1451cdfc9957346f1cbb6c72ea775e9bf7e63383.
          Hide
          Kenji Heigel added a comment -

          No Longer Reproducible through Manual Testing using the following steps:

          1. Start Liferay bundle clean (with no plugins/portlets)
          2. Deploy Chat portlet
          3. Deploy Contacts portlet

          No Longer Reproducible on:
          Tomcat 7.0.34 + MySQL 5. Portal 6.2.X GIT ID: 1415710653b92a917b0e36ff7dabb29fe1859492.
          Plugins 6.2.x GIT ID: 8d83692c7be00a9db77f50b5aa3fc08d2a5fcc56.

          The Chat portlet must be deployed first as the Contacts portlet is dependent on the Chat portlet. No errors occur when deploying the Chat portlet first.

          Show
          Kenji Heigel added a comment - No Longer Reproducible through Manual Testing using the following steps: Start Liferay bundle clean (with no plugins/portlets) Deploy Chat portlet Deploy Contacts portlet No Longer Reproducible on: Tomcat 7.0.34 + MySQL 5. Portal 6.2.X GIT ID: 1415710653b92a917b0e36ff7dabb29fe1859492. Plugins 6.2.x GIT ID: 8d83692c7be00a9db77f50b5aa3fc08d2a5fcc56. The Chat portlet must be deployed first as the Contacts portlet is dependent on the Chat portlet. No errors occur when deploying the Chat portlet first.
          Hide
          Ryan Park added a comment -

          Previously Chat portlet was not required to be deployed and it should remain this way.

          However, there are integration points for Chat that are now broken because an update to Liferay Portal.

          Show
          Ryan Park added a comment - Previously Chat portlet was not required to be deployed and it should remain this way. However, there are integration points for Chat that are now broken because an update to Liferay Portal.
          Hide
          Luyang Tan (Inactive) added a comment -

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 0041ab8bcf9a1af0d7e93ca0864e434054636250.
          Plugin 6.2.x EE GIT ID: bb7c0989a163ce7e2bf5d55f2096f87c9a83bcd5.

          When I only deploy the Contacts-portlet, I will see the Context initialization failed error in the console.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 0041ab8bcf9a1af0d7e93ca0864e434054636250.
          Plugin 6.2.x EE GIT ID: 6c660ee42ba25c860674fa5df2cae4fed685e50e.

          When I only deploy the Contacts-portlet, I can deploy it successfully and no error in the console, I can use the portlet.

          Show
          Luyang Tan (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 0041ab8bcf9a1af0d7e93ca0864e434054636250. Plugin 6.2.x EE GIT ID: bb7c0989a163ce7e2bf5d55f2096f87c9a83bcd5. When I only deploy the Contacts-portlet, I will see the Context initialization failed error in the console. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 0041ab8bcf9a1af0d7e93ca0864e434054636250. Plugin 6.2.x EE GIT ID: 6c660ee42ba25c860674fa5df2cae4fed685e50e. When I only deploy the Contacts-portlet, I can deploy it successfully and no error in the console, I can use the portlet.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 13 weeks, 2 days ago

                Development

                  Structure Helper Panel