Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-21997

Unsupported major.minor version 52.0 when using com.networknt:json-schema-validator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • ambari-server
    • None

    Description

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on project ambari-server: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test failed: java.lang.UnsupportedClassVersionError: com/networknt/schema/JsonSchema : Unsupported major.minor version 52.0 -> [Help 1]
      

      Cause
      com.networknt:json-schema-validator:0.1.7 is compiled for Java 1.8, causing unit tests to fail when using Java 1.7

      Solution
      Use com.networknt:json-schema-validator:0.1.10, which appears to work when using either Java 1.7 or Java 1.8.

      Attachments

        1. AMBARI-21997_branch-2.6_01.patch
          0.4 kB
          Robert Levas
        2. AMBARI-21997_trunk_01.patch
          0.4 kB
          Robert Levas

        Issue Links

          Activity

            People

              rlevas Robert Levas
              rlevas Robert Levas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: