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

PostgreSQL driver to 9.4-1201-JDBC41 is not compatible with Java 6, causing java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 51.0 when using Postgresql

    Details

      Description

      This bug is only reproduced at 6.2 with Postgresql and Java 6

      With PostgreSQL driver to 9.4-1201-JDBC41 Liferay 6.2 does not start when you are using Postgresql and Java 6

      Steps to Reproduce

      1. Configure Liferay with Postgresql and Java 6
      2. Verify that it works (start and stop it)
      3. Update Liferay to any commit / fixpack that includes LPS-57797
      4. Start again Liferay
        • Expected behavior: Liferay starts correctly
        • Wrong behavior: Liferay does not start and java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 51.0 is thrown:
          Caused by: java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 51.0
          	at java.lang.ClassLoader.defineClass1(Native Method)
          	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
          	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
          	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
          	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
          	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
          	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
          	at java.security.AccessController.doPrivileged(Native Method)
          	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
          	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
          	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
          	at java.lang.Class.forName0(Native Method)
          	at java.lang.Class.forName(Class.java:249)
          	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1707)
          	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
          	at java.lang.Class.forName0(Native Method)
          	at java.lang.Class.forName(Class.java:171)
          	at com.liferay.portal.setup.SetupWizardUtil._testConnection(SetupWizardUtil.java:351)
          	at com.liferay.portal.setup.SetupWizardUtil.testDatabase(SetupWizardUtil.java:165)
          	at com.liferay.portal.action.SetupWizardAction.testDatabase(SetupWizardAction.java:119)
          	at com.liferay.portal.action.SetupWizardAction.execute(SetupWizardAction.java:74)
          	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
          	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
          	at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:168)
          	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
          	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
          	at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:557)
          	at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:534)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
          	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
          	... 73 more
          

        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, 41 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.X EE