Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-37820

Console error when deploying OpenSocial

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.1.30 EE GA3
    • Fix Version/s: 6.1.X EE
    • Labels:
      None
    • Environment:
      Tomcat 7.0 + MySQL 5. Portal EE 6.1.30 GIT ID: 009a56d4f746338e50b49eb6c4e944eefdb96720.
      Tomcat 7.0 + MySQL 5. Plugins EE 6.1.20 GIT ID: d9183a6a508a9bcd04a129577e31c0ed3a46c072.

      Description

      A console error occurs when deploying OpenSocial.

      19:31:24,959 ERROR [localhost-startStop-10][BasePortalLifecycle:47] com.google.inject.CreationException: Guice creation errors:
      
      1) Error injecting constructor, java.lang.ExceptionInInitializerError
        at com.liferay.opensocial.shindig.oauth.LiferayOAuthStoreProvider.<init>(LiferayOAuthStoreProvider.java:41)
        while locating com.liferay.opensocial.shindig.oauth.LiferayOAuthStoreProvider
      
      1 error
      com.google.inject.CreationException: Guice creation errors:
      
      1) Error injecting constructor, java.lang.ExceptionInInitializerError
        at com.liferay.opensocial.shindig.oauth.LiferayOAuthStoreProvider.<init>(LiferayOAuthStoreProvider.java:41)
        while locating com.liferay.opensocial.shindig.oauth.LiferayOAuthStoreProvider
      
      1 error
              at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:354)
              at com.google.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:179)
              at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:113)
              at com.google.inject.Guice.createInjector(Guice.java:92)
              at org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:73)
              at com.liferay.opensocial.shindig.servlet.GuiceServletContextListener.doPortalInit(GuiceServletContextListener.java:57)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
              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:54)
              at com.liferay.opensocial.shindig.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:36)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
              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:1672)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
              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:895)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.ExceptionInInitializerError
              at com.liferay.opensocial.util.PortletPropsValues.<clinit>(PortletPropsValues.java:26)
              at com.liferay.opensocial.shindig.oauth.LiferayOAuthStoreProvider.<init>(LiferayOAuthStoreProvider.java:43)
              at com.liferay.opensocial.shindig.oauth.LiferayOAuthStoreProvider$$FastClassByGuice$$dc7bbc42.newInstance(<generated>)
              at com.google.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
              at com.google.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
              at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
              at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
              at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
              at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
              at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
              at com.google.inject.Scopes$1$1.get(Scopes.java:54)
              at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
              at com.google.inject.InjectorBuilder$1.call(InjectorBuilder.java:200)
              at com.google.inject.InjectorBuilder$1.call(InjectorBuilder.java:194)
              at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
              at com.google.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:194)
              at com.google.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:176)
              ... 23 more
      Caused by: java.lang.NullPointerException
              at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties.addGlobalFileName(ClassLoaderAggregateProperties.java:74)
              at com.liferay.portal.configuration.easyconf.ClassLoaderComponentConfiguration._getAvailableProperties(ClassLoaderComponentConfiguration.java:115)
              at com.liferay.portal.configuration.easyconf.ClassLoaderComponentConfiguration.getProperties(ClassLoaderComponentConfiguration.java:77)
              at com.liferay.portal.configuration.ConfigurationImpl.getComponentProperties(ConfigurationImpl.java:413)
              at com.liferay.portal.configuration.ConfigurationImpl.printSources(ConfigurationImpl.java:428)
              at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:77)
              at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:54)
              at com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:31)
              at sun.reflect.GeneratedMethodAccessor906.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
              at com.sun.proxy.$Proxy7.getConfiguration(Unknown Source)
              at com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil.getConfiguration(ConfigurationFactoryUtil.java:27)
              at com.liferay.util.portlet.PortletProps.<init>(PortletProps.java:66)
              at com.liferay.util.portlet.PortletProps.<clinit>(PortletProps.java:70)
              ... 40 more
      Jul 16, 2013 7:31:24 PM org.apache.catalina.core.StandardContext listenerStart
      SEVERE: Exception sending context initialized event to listener instance of class com.liferay.opensocial.shindig.servlet.GuiceServletContextListener
      java.lang.IllegalStateException: Unable to initialize portal
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:49)
              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:54)
              at com.liferay.opensocial.shindig.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:36)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
              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:1672)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
              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:895)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: com.google.inject.CreationException: Guice creation errors:
      
      1) Error injecting constructor, java.lang.ExceptionInInitializerError
        at com.liferay.opensocial.shindig.oauth.LiferayOAuthStoreProvider.<init>(LiferayOAuthStoreProvider.java:41)
        while locating com.liferay.opensocial.shindig.oauth.LiferayOAuthStoreProvider
      
      1 error
              at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:354)
              at com.google.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:179)
              at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:113)
              at com.google.inject.Guice.createInjector(Guice.java:92)
              at org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:73)
              at com.liferay.opensocial.shindig.servlet.GuiceServletContextListener.doPortalInit(GuiceServletContextListener.java:57)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
              ... 18 more
      Caused by: java.lang.ExceptionInInitializerError
              at com.liferay.opensocial.util.PortletPropsValues.<clinit>(PortletPropsValues.java:26)
              at com.liferay.opensocial.shindig.oauth.LiferayOAuthStoreProvider.<init>(LiferayOAuthStoreProvider.java:43)
              at com.liferay.opensocial.shindig.oauth.LiferayOAuthStoreProvider$$FastClassByGuice$$dc7bbc42.newInstance(<generated>)
              at com.google.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
              at com.google.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
              at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
              at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
              at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
              at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
              at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
              at com.google.inject.Scopes$1$1.get(Scopes.java:54)
              at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
              at com.google.inject.InjectorBuilder$1.call(InjectorBuilder.java:200)
              at com.google.inject.InjectorBuilder$1.call(InjectorBuilder.java:194)
              at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
              at com.google.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:194)
              at com.google.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:176)
              ... 23 more
      Caused by: java.lang.NullPointerException
              at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties.addGlobalFileName(ClassLoaderAggregateProperties.java:74)
              at com.liferay.portal.configuration.easyconf.ClassLoaderComponentConfiguration._getAvailableProperties(ClassLoaderComponentConfiguration.java:115)
              at com.liferay.portal.configuration.easyconf.ClassLoaderComponentConfiguration.getProperties(ClassLoaderComponentConfiguration.java:77)
              at com.liferay.portal.configuration.ConfigurationImpl.getComponentProperties(ConfigurationImpl.java:413)
              at com.liferay.portal.configuration.ConfigurationImpl.printSources(ConfigurationImpl.java:428)
              at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:77)
              at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:54)
              at com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:31)
              at sun.reflect.GeneratedMethodAccessor906.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
              at com.sun.proxy.$Proxy7.getConfiguration(Unknown Source)
              at com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil.getConfiguration(ConfigurationFactoryUtil.java:27)
              at com.liferay.util.portlet.PortletProps.<init>(PortletProps.java:66)
              at com.liferay.util.portlet.PortletProps.<clinit>(PortletProps.java:70)
              ... 40 more
      19:31:25,100 INFO  [localhost-startStop-10][HotDeployImpl:185] Deploying opensocial-portlet from queue
      19:31:25,101 INFO  [localhost-startStop-10][PluginPackageUtil:1049] Reading plugin package for opensocial-portlet
      19:31:25,105 ERROR [localhost-startStop-10][HotDeployImpl:198] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering plugins for opensocial-portlet
      com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering plugins for opensocial-portlet
              at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
              at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:64)
              at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:195)
              at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:97)
              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 com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
              at com.sun.proxy.$Proxy29.fireDeployEvent(Unknown Source)
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
              at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
              at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
              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:54)
              at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
              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:1672)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
              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:895)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.liferay.util.portlet.PortletProps
              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 com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.initPortletProps(PluginPackageHotDeployListener.java:189)
              at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.doInvokeDeploy(PluginPackageHotDeployListener.java:125)
              at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:61)
              ... 31 more
      Jul 16, 2013 7:31:25 PM org.apache.catalina.core.ApplicationContext log
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                torrey.schuhler Torrey Schuhler (Inactive)
                Reporter:
                torrey.schuhler Torrey Schuhler (Inactive)
                Participants of an Issue:
                Recent user:
                Brian Wulbern
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.1.X EE