Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-11922

Showing error message after clicking "Discard Draft" to delete the Frontpage

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.0.4 GA, 6.0.5 GA
    • Fix Version/s: 6.0.4 GA, 6.0.5 GA
    • Component/s: Wiki
    • Labels:
      None
    • Environment:
      Tomcat 6.0 + MySQL. Firefox 3.6.8. Reversion:59848.

      Description

      1. Add a Wiki portlet in a page named "Test Page".
      2. Create a front page for wiki.
      3. Go to All page, click "Action" behind of front page, then click "Discard Draft".
      4. Click "Test Page".

      Will showi "Wiki is temporarily unavailable."

      Error Message:

      08:28:15,218 ERROR [JDBCExceptionReporter:101] Duplicate entry '10260-FrontPage-1' for key 'IX_3D4AF476'
      08:28:15,281 ERROR [jsp:154] com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.Constr
      on: Could not execute JDBC batch update
      at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:184)
      at com.liferay.portlet.wiki.service.persistence.WikiPagePersistenceImpl.updateImpl(WikiPagePersistenceImpl.java:606)
      at com.liferay.portlet.wiki.service.persistence.WikiPagePersistenceImpl.updateImpl(WikiPagePersistenceImpl.java:83)
      at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:247)
      at com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl.addPage(WikiPageLocalServiceImpl.java:154)
      at com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl.addPage(WikiPageLocalServiceImpl.java:219)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:65)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portlet.wiki.service.WikiPageLocalServiceUtil.addPage(WikiPageLocalServiceUtil.java:263)
      at com.liferay.portlet.wiki.action.ActionUtil.getPage(ActionUtil.java:193)
      at com.liferay.portlet.wiki.action.ActionUtil.getPage(ActionUtil.java:213)
      at com.liferay.portlet.wiki.action.ViewPageAction.render(ViewPageAction.java:67)
      at com.liferay.portal.struts.PortletAction.execute(PortletAction.java:103)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      at com.liferay.portal.struts.PortletRequestProcessor.processActionPerform(PortletRequestProcessor.java:322)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:223)
      Caused by: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:30)
      at com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(SessionImpl.java:111)
      at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:54)
      at $Proxy232.flush(Unknown Source)
      at com.liferay.portal.service.persistence.BatchSessionImpl.update(BatchSessionImpl.java:66)
      at com.liferay.portal.service.persistence.BatchSessionUtil.update(BatchSessionUtil.java:43)
      at com.liferay.portlet.wiki.service.persistence.WikiPagePersistenceImpl.updateImpl(WikiPagePersistenceImpl.java:601)
      at com.liferay.portlet.wiki.service.persistence.WikiPagePersistenceImpl.updateImpl(WikiPagePersistenceImpl.java:83)
      at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:247)
      at com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl.addPage(WikiPageLocalServiceImpl.java:154)
      at com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl.addPage(WikiPageLocalServiceImpl.java:219)
      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:585)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:65)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)

        Attachments

          Activity

            People

            Assignee:
            sergio.gonzalez Sergio Gonzalez (Inactive)
            Reporter:
            pani.gui Pani Gui (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              11 years, 49 weeks, 1 day ago

                Packages

                Version Package
                6.0.4 GA
                6.0.5 GA