Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.1.0 CE GA1, 6.1.10 EE GA1
    • Labels:
      None
    • Environment:
    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      4

      Description

      1. Run the following in mysql:
        drop database lportal;
        drop database lportal1;
        drop database lportal2;
        create database lportal character set utf8;
        create database lportal1 character set utf8;
        create database lportal2 character set utf8;
      2. Add the following portal-ext.properties into your tomcat:
        jdbc.default.jndi.name=
        
        jdbc.default.driverClassName=com.mysql.jdbc.Driver
        jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
        jdbc.default.username=
        jdbc.default.password=
        
        jdbc.one.driverClassName=com.mysql.jdbc.Driver
        jdbc.one.url=jdbc:mysql://localhost/lportal1?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
        jdbc.one.username=
        jdbc.one.password=
        
        jdbc.two.driverClassName=com.mysql.jdbc.Driver
        jdbc.two.url=jdbc:mysql://localhost/lportal2?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
        jdbc.two.username=
        jdbc.two.password=
        
        spring.configs=\
        	META-INF/base-spring.xml,\
        	\
        	META-INF/hibernate-spring.xml,\
        	META-INF/infrastructure-spring.xml,\
        	META-INF/management-spring.xml,\
        	\
        	META-INF/util-spring.xml,\
        	\
        	META-INF/jpa-spring.xml,\
        	\
        	META-INF/audit-spring.xml,\
        	META-INF/cluster-spring.xml,\
        	META-INF/editor-spring.xml,\
        	META-INF/executor-spring.xml,\
        	META-INF/jcr-spring.xml,\
        	META-INF/ldap-spring.xml,\
        	META-INF/messaging-core-spring.xml,\
        	META-INF/messaging-misc-spring.xml,\
        	META-INF/mobile-device-spring.xml,\
        	META-INF/notifications-spring.xml,\
        	META-INF/poller-spring.xml,\
        	META-INF/rules-spring.xml,\
        	META-INF/scheduler-spring.xml,\
        	META-INF/scripting-spring.xml,\
        	META-INF/search-spring.xml,\
        	META-INF/workflow-spring.xml,\
        	\
        	META-INF/counter-spring.xml,\
        	META-INF/mail-spring.xml,\
        	META-INF/portal-spring.xml,\
        	META-INF/portlet-container-spring.xml,\
        	META-INF/staging-spring.xml,\
        	\
        	META-INF/dynamic-data-source-spring.xml,\
        	META-INF/shard-data-source-spring.xml,\
        	#META-INF/memcached-spring.xml,\
        	#META-INF/monitoring-spring.xml,\
        	\
        	META-INF/ext-spring.xml
      3. Startup the tomcat bundle.
        • Tomcat will display the attached Exceptions:
          15:48:30,888 ERROR [ContextLoader:227] Context initialization failed
          org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'destination.audit' defined in class path resource [META-INF/audit-spring.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1422)
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)
                  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.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:170)
                  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
                  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
                  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
                  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
                  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
                  at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
                  at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1585)
                  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
                  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.NullPointerException
                  at com.liferay.portal.kernel.executor.PortalExecutorManagerUtil.registerPortalExecutor(PortalExecutorManagerUtil.java:60)
                  at com.liferay.portal.kernel.messaging.BaseAsyncDestination.open(BaseAsyncDestination.java:113)
                  at com.liferay.portal.kernel.messaging.BaseDestination.afterPropertiesSet(BaseDestination.java:41)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                  at java.lang.reflect.Method.invoke(Unknown Source)
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1546)
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1487)
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)
                  ... 27 more
          Jun 15, 2012 3:48:30 PM org.apache.catalina.core.StandardContext listenerStart
          SEVERE: Exception sending context initialized event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener
          org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'destination.audit' defined in class path resource [META-INF/audit-spring.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1422)
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)
                  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.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:170)
                  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
                  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
                  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
                  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
                  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
                  at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
                  at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1585)
                  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
                  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.NullPointerException
                  at com.liferay.portal.kernel.executor.PortalExecutorManagerUtil.registerPortalExecutor(PortalExecutorManagerUtil.java:60)
                  at com.liferay.portal.kernel.messaging.BaseAsyncDestination.open(BaseAsyncDestination.java:113)
                  at com.liferay.portal.kernel.messaging.BaseDestination.afterPropertiesSet(BaseDestination.java:41)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                  at java.lang.reflect.Method.invoke(Unknown Source)
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1546)
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1487)
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)
                  ... 27 more
          Jun 15, 2012 3:48:30 PM org.apache.catalina.core.StandardContext startInternal
          SEVERE: Error listenerStart
          Jun 15, 2012 3:48:30 PM org.apache.catalina.core.StandardContext startInternal
          SEVERE: Context [] startup failed due to previous errors

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.hashimoto Michael Hashimoto
              Reporter:
              michael.hashimoto Michael Hashimoto
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 37 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  --Sprint 11/12
                  6.2.0 CE M2