Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3938

After upgrading PostgreSQL JDBC driver, DSpace does not run on JDK 7

    XMLWordPrintable

    Details

    • Type: Code Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.9
    • Fix Version/s: 5.10
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Needed

      Description

      This has been found in DSpace 5.9, but probably also affects 6.3 with JDK 7, as well as 7.x if JDK 7 is still an option.

       

      In DS-3854, PostgreSQL JDBC driver has been updated. However, the version registered in pom.xml downloads a Java8 (JDBC 4.2) compatible PostgreSQL JDBC driver, which leads to the exception below:

       

      Exception: org/postgresql/Driver : Unsupported major.minor version 52.0
      java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 52.0

       

       

      Changing the postgres version to 42.2.1.jre7 in pom.xml solves the problem:

      <dependency>
      {{ <groupId>org.postgresql</groupId>}}
      {{ <artifactId>postgresql</artifactId>}}
      {{ <version>42.2.1.jre7</version>}}
      {{ </dependency>}}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jmarton Jozsef Marton
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: