Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6843

ClientConnectionTest fails on travis

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.2
    • Component/s: Tests
    • Labels:
      None

      Description

      jdk7, hadoop 2.4.1, scala 2.11

      testJobManagerRetrievalWithHAServices(org.apache.flink.client.program.ClientConnectionTest)  Time elapsed: 0.013 sec  <<< ERROR!
      
      java.lang.UnsupportedClassVersionError: org/apache/flink/runtime/highavailability/TestingHighAvailabilityServices : Unsupported major.minor version 52.0
      
      	at java.lang.ClassLoader.defineClass1(Native Method)
      
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
      
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      
      	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
      
      	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
      
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
      
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      
      	at java.security.AccessController.doPrivileged(Native Method)
      
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      
      	at org.apache.flink.client.program.ClientConnectionTest.testJobManagerRetrievalWithHAServices(ClientConnectionTest.java:122)
      

        Issue Links

          Activity

          Hide
          aljoscha Aljoscha Krettek added a comment -

          This only happens on the release-1.3 branch, right? Any idea what caused this┬┐

          Show
          aljoscha Aljoscha Krettek added a comment - This only happens on the release-1.3 branch, right? Any idea what caused this┬┐
          Hide
          mingleizhang mingleizhang added a comment -

          Aljoscha Krettek I guess caused this because of java version mismatch. And J2SE 8 belongs to 52. The error message to

          Unsupported major.minor version 52.0
          

          is because during compile time using a higher JDK and a lower JDK during runtime here is jdk7 belongs to 51. I dont know how Travis works, it might be travis compile the source code on a machine which use JDK8 and run .class file on a jdk7 machine.

          Show
          mingleizhang mingleizhang added a comment - Aljoscha Krettek I guess caused this because of java version mismatch. And J2SE 8 belongs to 52. The error message to Unsupported major.minor version 52.0 is because during compile time using a higher JDK and a lower JDK during runtime here is jdk7 belongs to 51. I dont know how Travis works, it might be travis compile the source code on a machine which use JDK8 and run .class file on a jdk7 machine.
          Hide
          StephanEwen Stephan Ewen added a comment -

          FLINK-7158 is the root issue. Pulling in that external dependency brings Java 8 code into Java 7 builds.

          Show
          StephanEwen Stephan Ewen added a comment - FLINK-7158 is the root issue. Pulling in that external dependency brings Java 8 code into Java 7 builds.

            People

            • Assignee:
              Unassigned
              Reporter:
              Zentol Chesnay Schepler
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development