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

The console will throw EntryDisplayDateException when user rechecked the checkbox of Display Immediately

    Details

    • Story Points:
      4

      Description

      Steps for reproduce:

      1. Click Manage Entries
      2. Select General from Distribution Scope drop down
      3. Click the Add Entry button
      Distribution Scope: General
      Title: General Entry2
      URL: http://www.yahoo.com
      Content: This is the General Content Entry2
      Type: General
      Priority: Normal
      Display Date: Future Display Date (Set display date 2 mins into the future)
      Display Immediately: uncheck
      Expiration Date: Default Expiration Date
      4. Click Save
      5. Click Action > Edit.
      6. Display Immediately: check.
      7. Click Save.

      Excepted result:
      The entry can be saved successful.

      Actual result:
      The page will display "Announcements is temporarily unavailable." and the console will throw the exception:

      09:34:25,134 ERROR [RuntimePageImpl-8][render_portlet_jsp:132] null
      com.liferay.portlet.announcements.EntryDisplayDateException
              at java.lang.Class.newInstance(Class.java:374)
              at com.liferay.portal.util.PortalImpl.getDate(PortalImpl.java:1813)
              at com.liferay.portal.util.PortalUtil.getDate(PortalUtil.java:495)
              at com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl.updateEntry(AnnouncementsEntryLocalServiceImpl.java:358)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at com.liferay.portlet.announcements.service.impl.AnnouncementsEntryServiceImpl.updateEntry(AnnouncementsEntryServiceImpl.java:194)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at com.liferay.portlet.announcements.service.AnnouncementsEntryServiceUtil.updateEntry(AnnouncementsEntryServiceUtil.java:122)
      

      Note: Can be reproduce on Alert portlet too.

        Attachments

          Activity

            People

            • Assignee:
              ginson.ren Ginson Ren
              Reporter:
              ginson.ren Ginson Ren
              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:
                3 years, 50 weeks, 5 days ago