Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Conversation

cwolfe007
Copy link

Issue #, if available:

Description of changes:

Updating Java Runtime and the Jar name in the flink_starter_kit_def_stream_position_trim_horizon.json file

Issue was related to https://stackoverflow.com/questions/58125830/has-been-compiled-by-a-more-recent-version-of-the-java-runtime-class-file-versi

Logs:

{
    "applicationARN": "arn:aws:kinesisanalytics:us-east-1:<>:application/amazon_kda_flink_starter_kit",
    "applicationVersionId": 1,
    "message": "org.apache.flink.client.program.ProgramInvocationException: The program's entry point class 'com.amazonaws.kda.flink.starterkit.SessionProcessor' could not be loaded due to a linkage failure. StackTrace: java.util.concurrent.CompletionException: org.apache.flink.client.program.ProgramInvocationException: The program's entry point class 'com.amazonaws.kda.flink.starterkit.SessionProcessor' could not be loaded due to a linkage failure.\n\tat org.apache.flink.runtime.webmonitor.handlers.JarRunOverrideHandler.lambda$getJobGraphAsync$10(JarRunOverrideHandler.java:475)\n\tat java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: org.apache.flink.client.program.ProgramInvocationException: The program's entry point class 'com.amazonaws.kda.flink.starterkit.SessionProcessor' could not be loaded due to a linkage failure.\n\tat org.apache.flink.client.program.PackagedProgram.loadMainClass(PackagedProgram.java:659)\n\tat org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:228)\n\tat org.apache.flink.runtime.webmonitor.handlers.JarRunOverrideHandler.lambda$getJobGraphAsync$10(JarRunOverrideHandler.java:471)\n\t... 4 more\nCaused by: java.lang.UnsupportedClassVersionError: com/amazonaws/kda/flink/starterkit/SessionProcessor has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0\n\tat java.lang.ClassLoader.defineClass1(Native Method)\n\tat java.lang.ClassLoader.defineClass(ClassLoader.java:756)\n\tat java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\n\tat java.net.URLClassLoader.defineClass(URLClassLoader.java:473)\n\tat java.net.URLClassLoader.access$100(URLClassLoader.java:74)\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:369)\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:363)\n\tat java.security.AccessController.doPrivileged(Native Method)\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:362)\n\tat org.apache.flink.runtime.execution.librarycache.FlinkUserCodeClassLoaders$ChildFirstClassLoader.loadClass(FlinkUserCodeClassLoaders.java:130)\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:351)\n\tat java.lang.Class.forName0(Native Method)\n\tat java.lang.Class.forName(Class.java:348)\n\tat org.apache.flink.client.program.PackagedProgram.loadMainClass(PackagedProgram.java:648)\n\t... 6 more\n",
    "messageType": "ERROR",
    "messageSchemaVersion": "1",
    "errorCode": "CodeError.InvalidApplicationCode"
}

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant