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

Calendar portlet requires Java 7 due to JAR file version

    Details

    • Story Points:
      4
    • Fix Priority:
      5
    • JDK:
      Oracle Sun JDK 5, Oracle Sun JDK 6, Oracle OpenJDK 6

      Description

      Due to an automatic update done by Ivy, calendar portlet now has a new version of google-rfc-2440.jar that is target-compiled to Java 7. This means it is not possible to deploy/use calendar portlet with Java 6 or below anymore.

      Steps to reproduce.

      1. Start Liferay portal with some JVM version 6.
      2. Deploy the calendar portlet

      Expected results

      • Calendar portlet will be deployed without error.

      Actual results

      • While deploying the portlet, the following error appears in the logs:
        Exception in thread "liferay/scheduler_dispatch-2" java.lang.UnsupportedClassVersionError: com/google/ical/values/DateValue : Unsupported major.minor version 51.0 (unable to load class com.google.ical.values.DateValue)
        	at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2899)
        	at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1173)
        
      • If the portlet is already added to a page (probably because you are using an already populated database), the following error will appear in the logs:
        java.lang.NoSuchMethodError: com.liferay.portal.kernel.dao.orm.FinderCacheUtil.getResult(Lcom/liferay/portal/kernel/dao/orm/FinderPath;[Ljava/lang/Object;Lcom/liferay/portal/kernel/dao/orm/SessionFactory;)Ljava/lang/Object;
        	at com.liferay.calendar.service.persistence.impl.CalendarResourcePersistenceImpl.fetchByC_C(CalendarResourcePersistenceImpl.java:5495)
        	at com.liferay.calendar.service.persistence.impl.CalendarResourcePersistenceImpl.fetchByC_C(CalendarResourcePersistenceImpl.java:5476)
        

        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:
                  5 years, 24 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE