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

On second execution of Milestone 6, receive DuplicateFileEntryTypeException: CONTRACT

    Details

    • Story Points:
      2
    • Fix Priority:
      5
    • Similar Issues:
      Show 5 results 

      Description

      On second execution of M6, I got this in the log file:

      Starting Liferay Portal Community Edition 6.2.0 CE M6 (Newton / Build 6200 / June 14, 2013)
      22:42:48,894 INFO  [localhost-startStop-1][BaseDB:480] Database supports case sensitive queries
      22:42:49,338 INFO  [localhost-startStop-1][ServerDetector:166] Server supports hot deploy
      22:42:49,346 INFO  [localhost-startStop-1][PluginPackageUtil:1041] Reading plugin package for the root context
      22:43:09,921 INFO  [localhost-startStop-1][AutoDeployDir:137] Auto deploy scanner started for /Users/jhf/lr/m6/liferay-portal-6.2.0-ce-m6/deploy
      22:43:11,372 ERROR [localhost-startStop-1][PortalInstances:475] com.liferay.portal.kernel.events.ActionException: com.liferay.portlet.documentlibrary.DuplicateFileEntryTypeException: CONTRACT
      com.liferay.portal.kernel.events.ActionException: com.liferay.portlet.documentlibrary.DuplicateFileEntryTypeException: CONTRACT
      	at com.liferay.portal.events.AddDefaultDocumentLibraryStructuresAction.run(AddDefaultDocumentLibraryStructuresAction.java:66)
      	at com.liferay.portal.events.AddDefaultDataAction.run(AddDefaultDataAction.java:30)
      	at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:108)
      	at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:59)
      	at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:53)
      	at com.liferay.portal.util.PortalInstances._initCompany(PortalInstances.java:469)
      	at com.liferay.portal.util.PortalInstances.initCompany(PortalInstances.java:91)
      	at com.liferay.portal.servlet.MainServlet.initCompanies(MainServlet.java:775)
      	at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:343)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5123)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5407)
      	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.deployDescriptor(HostConfig.java:657)
      	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1636)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      	at java.lang.Thread.run(Thread.java:722)
      Caused by: com.liferay.portlet.documentlibrary.DuplicateFileEntryTypeException: CONTRACT
      	at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeLocalServiceImpl.validate(DLFileEntryTypeLocalServiceImpl.java:632)
      	at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeLocalServiceImpl.addFileEntryType(DLFileEntryTypeLocalServiceImpl.java:96)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:117)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:169)
      	at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:62)
      	at com.liferay.portal.security.pacl.PACLInvocationHandler.invoke(PACLInvocationHandler.java:51)
      	at $Proxy425.addFileEntryType(Unknown Source)
      	at com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalServiceUtil.addFileEntryType(DLFileEntryTypeLocalServiceUtil.java:578)
      	at com.liferay.portal.events.AddDefaultDocumentLibraryStructuresAction.addDLFileEntryType(AddDefaultDocumentLibraryStructuresAction.java:103)
      	at com.liferay.portal.events.AddDefaultDocumentLibraryStructuresAction.addDLFileEntryTypes(AddDefaultDocumentLibraryStructuresAction.java:119)
      	at com.liferay.portal.events.AddDefaultDocumentLibraryStructuresAction.doRun(AddDefaultDocumentLibraryStructuresAction.java:289)
      	at com.liferay.portal.events.AddDefaultDocumentLibraryStructuresAction.run(AddDefaultDocumentLibraryStructuresAction.java:63)
      	... 26 more
      

      Steps to reproduce:

      1. Start M6 the first time
      2. Go through all the setup wizard, complete the setup
      3. Shutdown
      4. Start up again

        Issue Links

          Activity

          Hide
          Miguel Pastor added a comment -

          Everything is working fine in the current master. I don't get any error message in the log as described in the ticket.

          Feel free to reopen the ticket if you are still able to reproduce the issue!

          Show
          Miguel Pastor added a comment - Everything is working fine in the current master. I don't get any error message in the log as described in the ticket. Feel free to reopen the ticket if you are still able to reproduce the issue!
          Hide
          Mikael Falkvidd added a comment -

          @Miguel: Which version did you test? I am able to reproduce on 6.2.0 CE M6 using JBoss AS 7.1.1.Final

          Show
          Mikael Falkvidd added a comment - @Miguel: Which version did you test? I am able to reproduce on 6.2.0 CE M6 using JBoss AS 7.1.1.Final
          Hide
          Mikael Falkvidd added a comment -

          Sorry. Will have to read better next time. Not reproducible on master is fine by me

          Show
          Mikael Falkvidd added a comment - Sorry. Will have to read better next time. Not reproducible on master is fine by me
          Hide
          Felix Zhang added a comment -

          No Longer Reproducible through Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + HSQL. Portal 6.2.x GIT ID: 2fe263fd4a97be4062f8f610faaf951b59ba9812.

          After restarting the server, the console will throw error about DuplicateFileEntryTypeException.

          No Longer Reproducible on:
          Tomcat 7.0 + HSQL. Portal 6.2.x GIT ID: 435f1365a1401ee15cc9c567ef4d79bc417ae04d.

          Everything is working fine on trunk head.

          Show
          Felix Zhang added a comment - No Longer Reproducible through Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + HSQL. Portal 6.2.x GIT ID: 2fe263fd4a97be4062f8f610faaf951b59ba9812. After restarting the server, the console will throw error about DuplicateFileEntryTypeException. No Longer Reproducible on: Tomcat 7.0 + HSQL. Portal 6.2.x GIT ID: 435f1365a1401ee15cc9c567ef4d79bc417ae04d. Everything is working fine on trunk head.
          Hide
          James Falkner added a comment -

          That's because it appears to be a duplicate of http://issues.liferay.com/browse/LPS-36365

          Show
          James Falkner added a comment - That's because it appears to be a duplicate of http://issues.liferay.com/browse/LPS-36365

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 31 weeks, 5 days ago

                Development

                  Structure Helper Panel