Uploaded image for project: '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

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 49 weeks, 2 days ago