Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 5 results 

      Description

      portal-ext.properties contains:

      locales=en_CA,fr_CA

      system-ext.properties contains:

      user.country=CA
      user.language=en

      Liferay is successfully deployed but the following error is in the log. Added en_US to the locales solves the problem.

      [#|2012-08-17T14:02:07.568+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=Thread-2;|14:02:07,568 ERROR [admin-thread-pool-4848(2)][PortalInstances:468] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.LocaleException
      com.liferay.portal.kernel.events.ActionException: com.liferay.portal.LocaleException
      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:53)
      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:798)
      at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:355)
      at javax.servlet.GenericServlet.init(GenericServlet.java:244)
      at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1453)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1250)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5093)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:5380)
      at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
      at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
      at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
      at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
      at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
      at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
      at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
      at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
      at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
      at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
      at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
      at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: com.liferay.portal.LocaleException
      at com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureLocalServiceImpl.validateLanguages(DDMStructureLocalServiceImpl.java:687)
      at com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureLocalServiceImpl.validate(DDMStructureLocalServiceImpl.java:648)
      at com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureLocalServiceImpl.validate(DDMStructureLocalServiceImpl.java:624)
      at com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureLocalServiceImpl.addStructure(DDMStructureLocalServiceImpl.java:92)
      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:122)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.security.pacl.PACLAdvice.invoke(PACLAdvice.java:51)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      at $Proxy309.addStructure(Unknown Source)
      at com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil.addStructure(DDMStructureLocalServiceUtil.java:296)
      at com.liferay.portal.events.BaseDefaultDDMStructureAction.addDDMStructures(BaseDefaultDDMStructureAction.java:93)
      at com.liferay.portal.events.AddDefaultDocumentLibraryStructuresAction.doRun(AddDefaultDocumentLibraryStructuresAction.java:271)
      at com.liferay.portal.events.AddDefaultDocumentLibraryStructuresAction.run(AddDefaultDocumentLibraryStructuresAction.java:61)
      ... 52 more

      #]

        Activity

        Hide
        Hugo Huijser added a comment -

        Also make sure you set company.default.locale=en_CA in portal-ext.properties when en_US is not present.
        Otherwise it will still break...

        Show
        Hugo Huijser added a comment - Also make sure you set company.default.locale=en_CA in portal-ext.properties when en_US is not present. Otherwise it will still break...
        Hide
        Michael Saechang added a comment -

        Committed on:
        Portal 6.2.x GIT ID: 93ae637ba9ba933a31aba721f886f5238c818399.

        Show
        Michael Saechang added a comment - Committed on: Portal 6.2.x GIT ID: 93ae637ba9ba933a31aba721f886f5238c818399.
        Hide
        Ginson Ren added a comment - - edited

        FAILED Manual Testing using the following steps:

        1. Deploy portal to Glassfish 3.1.2.
        2. Add following to portal-ext.properties: locales=en_CA,fr_CA company.default.locale=en_CA
        3. Add following to system-ext.properties: user.country=CA user.language=en
        4. Start the glassfish.
        5. Go to liferay home\glassfish-3.1.2\domains\domain1\logs, open server.log.

        Reproduced on:
        Glassfish 3.1.2 + MySQL 5. Portal 6.2.x GIT ID: d73afb5e3254e540613868b8cc9640e58a152a54.

        The error messages in the description were in the log.

        Failed on:
        Glassfish 3.1.2 + MySQL 5. Portal 6.1.x EE GIT ID: 91c44ecbf7c152eed5b382540adbee9f254e09c7.
        Glassfish 3.1.2 + MySQL 5. Portal 6.2.x GIT ID: af24cd953937f4d81c42e28c8749f0cca2f3651a.

        The error messages in the description were in the log.

        Show
        Ginson Ren added a comment - - edited FAILED Manual Testing using the following steps: 1. Deploy portal to Glassfish 3.1.2. 2. Add following to portal-ext.properties: locales=en_CA,fr_CA company.default.locale=en_CA 3. Add following to system-ext.properties: user.country=CA user.language=en 4. Start the glassfish. 5. Go to liferay home\glassfish-3.1.2\domains\domain1\logs, open server.log. Reproduced on: Glassfish 3.1.2 + MySQL 5. Portal 6.2.x GIT ID: d73afb5e3254e540613868b8cc9640e58a152a54. The error messages in the description were in the log. Failed on: Glassfish 3.1.2 + MySQL 5. Portal 6.1.x EE GIT ID: 91c44ecbf7c152eed5b382540adbee9f254e09c7. Glassfish 3.1.2 + MySQL 5. Portal 6.2.x GIT ID: af24cd953937f4d81c42e28c8749f0cca2f3651a. The error messages in the description were in the log.
        Hide
        Juan G added a comment -

        I could fix this issue after applying the patch.

        I only updated language field in portal configuracion -> Display options (it was empty, don't know why). After that and restart, all worked properly and Document Types were added.

        Show
        Juan G added a comment - I could fix this issue after applying the patch. I only updated language field in portal configuracion -> Display options (it was empty, don't know why). After that and restart, all worked properly and Document Types were added.
        Hide
        Hugo Huijser added a comment -

        Hey Ginson,

        Can you add your log with the error to the ticket?

        Show
        Hugo Huijser added a comment - Hey Ginson, Can you add your log with the error to the ticket?
        Hide
        Ginson Ren added a comment -

        PASSED Manual Testing following the steps in the comment.

        Fixed on:
        Glassfish 3.1.2 + MySQL 5. Portal 6.1.x EE GIT ID: 79afed965e35b5a8e44d89e38952cdf5334c1ffb.
        Glassfish 3.1.2 + MySQL 5. Portal 6.2.x GIT ID: e36575c21a8fa1e6dbf519234021973e28defdfb.

        There is no error message.

        Show
        Ginson Ren added a comment - PASSED Manual Testing following the steps in the comment. Fixed on: Glassfish 3.1.2 + MySQL 5. Portal 6.1.x EE GIT ID: 79afed965e35b5a8e44d89e38952cdf5334c1ffb. Glassfish 3.1.2 + MySQL 5. Portal 6.2.x GIT ID: e36575c21a8fa1e6dbf519234021973e28defdfb. There is no error message.

          People

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

            Dates

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

              Development

                Structure Helper Panel