PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-24733

Clean Liferay 6.1 fails to start in Debian 5.0 because of Exception (no company exists)

    Details

    • Similar Issues:
      Show 4 results 

      Description

      When I try to install a clean version of liferay ga1 (no migration), this exception happens when tomcat starts (I also attached the complete log):
      6.
      ....
      11:22:30,727 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifySocial
      11:22:30,727 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyUser
      11:22:30,742 INFO [VerifyProcess:76] Verifying com.liferay.portal.verify.VerifyWiki
      11:22:30,789 INFO [PluginPackageUtil:1096] Reading plugin package for the root context
      11:22:41,732 INFO [AutoDeployDir:84] Creating missing directory /opt/liferay6/liferay-portal-6.1.0-ce-ga1/deploy
      11:22:41,735 INFO [AutoDeployDir:105] Auto deploy scanner started for /opt/liferay6/liferay-portal-6.1.0-ce-ga1/deploy
      11:22:47,256 ERROR [PortalInstances:375] java.lang.NullPointerException
      java.lang.NullPointerException
      at com.liferay.portal.model.impl.LayoutTypePortletImpl.setLayoutTemplateId(LayoutTypePortletImpl.java:1179)
      at com.liferay.portal.service.impl.GroupLocalServiceImpl.addDefaultGuestPublicLayoutByProperties(GroupLocalServiceImpl.java:2035)
      at com.liferay.portal.service.impl.GroupLocalServiceImpl.addDefaultGuestPublicLayouts(GroupLocalServiceImpl.java:2105)
      at com.liferay.portal.service.impl.GroupLocalServiceImpl.checkSystemGroups(GroupLocalServiceImpl.java:527)
      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.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      at $Proxy22.checkSystemGroups(Unknown Source)
      at com.liferay.portal.service.impl.CompanyLocalServiceImpl.checkCompany(CompanyLocalServiceImpl.java:370)
      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.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      at $Proxy15.checkCompany(Unknown Source)
      at com.liferay.portal.service.impl.CompanyLocalServiceImpl.checkCompany(CompanyLocalServiceImpl.java:160)
      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.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      at $Proxy15.checkCompany(Unknown Source)
      at com.liferay.portal.service.CompanyLocalServiceUtil.checkCompany(CompanyLocalServiceUtil.java:302)
      at com.liferay.portal.util.PortalInstances._initCompany(PortalInstances.java:370)
      at com.liferay.portal.util.PortalInstances.initCompany(PortalInstances.java:92)
      at com.liferay.portal.servlet.MainServlet.initCompanies(MainServlet.java:766)
      at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:336)
      at javax.servlet.GenericServlet.init(GenericServlet.java:160)
      at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5001)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5289)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:842)
      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:1581)
      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)
      11:22:47,289 ERROR [PortalInstances:468] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.NoSuchGroupException: No Group exists with the key

      {companyId=0, classNameId=10021, classPK=0}
      com.liferay.portal.kernel.events.ActionException: com.liferay.portal.NoSuchGroupException: No Group exists with the key {companyId=0, classNameId=10021, classPK=0}

      at com.liferay.portal.events.AddDefaultDocumentLibraryStructuresAction.run(AddDefaultDocumentLibraryStructuresAction.java:64)
      at com.liferay.portal.events.AddDefaultDataAction.run(AddDefaultDataAction.java:30)
      at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:106)
      at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:58)
      at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:38)
      at com.liferay.portal.util.PortalInstances._initCompany(PortalInstances.java:462)
      at com.liferay.portal.util.PortalInstances.initCompany(PortalInstances.java:92)
      at com.liferay.portal.servlet.MainServlet.initCompanies(MainServlet.java:766)
      at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:336)
      at javax.servlet.GenericServlet.init(GenericServlet.java:160)

      my portal-ext.properties is also very simple:

      jdbc.default.driverClassName=com.mysql.jdbc.Driver
      jdbc.default.url=jdbc:mysql://localhost/lportal6?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
      jdbc.default.username=root
      jdbc.default.password=xxx

      locales=de_DE,en_US

      I checked the tables, and strangely the company table is completely empty (liferay.com is supposed to be there by default, right?).
      Any ideas?

        Activity

        Hide
        Konrad Szeromski added a comment -

        I've installed today the same version of Liferay on the same Debian as You and have no such problems - tables has been properly populated.

        On the other hand I saw such errors during portal upgrades.

        Blind shot: try to add to portal-ext.properties something like:

        hibernate.hbm2ddl.auto=update

        Show
        Konrad Szeromski added a comment - I've installed today the same version of Liferay on the same Debian as You and have no such problems - tables has been properly populated. On the other hand I saw such errors during portal upgrades. Blind shot: try to add to portal-ext.properties something like: hibernate.hbm2ddl.auto=update
        Hide
        Puj added a comment -

        Hi Konrad,

        Thanks for the tip! I tried that and it did not work, but then I tried this and it works fine now!
        permissions.user.check.algorithm=6

        Show
        Puj added a comment - Hi Konrad, Thanks for the tip! I tried that and it did not work, but then I tried this and it works fine now! permissions.user.check.algorithm=6
        Hide
        Szymon Golebiewski added a comment -

        As part of our community verifier program, I am taking a look at this issue.

        Show
        Szymon Golebiewski added a comment - As part of our community verifier program, I am taking a look at this issue.
        Hide
        Szymon Golebiewski added a comment -

        "permissions.user.check.algorithm=6" is the default setting for LR 6.1. It can be case that you used older settings in your properties file. As I was unable to reproduce this bug with clean installation of Liferay 6.1 CE GA1 this issue can be closed.

        Show
        Szymon Golebiewski added a comment - "permissions.user.check.algorithm=6" is the default setting for LR 6.1. It can be case that you used older settings in your properties file. As I was unable to reproduce this bug with clean installation of Liferay 6.1 CE GA1 this issue can be closed.
        Hide
        Michael Saechang added a comment -

        Closing as 'Won't Fix' - Configuration issue.

        Show
        Michael Saechang added a comment - Closing as 'Won't Fix' - Configuration issue.
        Hide
        Miroslav Ligas added a comment -

        I achieved this exception when I removed hsql database (deleted the whole data/hsql folder) form clean installation. When I copied back the hsql folder form build pack everything worked fine.

        Show
        Miroslav Ligas added a comment - I achieved this exception when I removed hsql database (deleted the whole data/hsql folder) form clean installation. When I copied back the hsql folder form build pack everything worked fine.

          People

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

            Dates

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

              Development

                Structure Helper Panel