Java error when stating the runner

Hi guys,

I did some proof of concept (PoC) tests on a controlled network and everything was working perfectly. 

The second test was supposed to be linking our test environment to the pipelines, on an actual server with real projects. Unfortunately I'm facing the following error when trying to start the runner.

+ ./entrypoint.sh
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/atlassian/pipelines/runner/core/RunnerImpl 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 5
2.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)

 

The PoC environment was an Ubuntu Server 20.04 and had no problem, it was surprisingly easy and smoothly.

The second env is a CentOS 7. On this server the runner din't even started.

Any suggestion to fix that?

6 comments

Comment

Log in or Sign up to comment
Eddie Webbinaro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 18, 2021

I'm not on the BBC team, but recognize the error, that is a Java runtime compatibility error.   Version 52.0 is JDK 8, 55 is JDK 11. 

But not sure how that is happening...

You are starting the runner within the provided docker container?

Edit: I was able to recreate and raising internally.

Like Mark Tsyrulnyk likes this
Mark Tsyrulnyk March 18, 2021

Same problem here, seems like latest version of runners images is broken

lassian
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 18, 2021

Hi Mark,

Apologies for this I have just released a fix for this issue.

Kind Regards,

Nathan Burrell

Like Mark Tsyrulnyk likes this
krishnareddy2 December 1, 2022

 

For Windows Runner, i am seeing below error while executing. I have JDK 17.

 

.\start.ps1 -accountUuid '{9b7e1a7c-6fbe-4113-ba2a-ab62eac9231d}' -repositoryUuid '{070ed17f-775f-47b7-907b-36e76f4aa554}' -runnerUuid '{4549c788-7778-5dd5-aea7-268bec708b28}' -OAuthClientId YHAdwTnpqrTYwH1W67fDFp3rGjejxwfB -OAuthClientSecret ATOA0Q1lYqXJw6SzQJpnb3ob-UsmzrUJ0Rh8f_bcRE_e2b3tUzzlPqNkj3OluKfXpljeC24D066F -workingDirectory 'C:\BIT\temp'

 

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/atlassian/pipelines/runner/core/ApplicationImpl : Unsupported major.minor version 55.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

Like # people like this
shailesh.agaldivity April 18, 2023

what is the fix for the above

Like # people like this
M_Sohail Iqbal September 11, 2023

Getting the following error on my windows 11 machine.  Is there any solution available for windows?


.\start.ps1 -accountUuid '{5f4c3557-3c3b-4efa-b614-f001b7175686}' -repositoryUuid '{193dfc79-387c-45ad-8b07-fbe8ac50d79d}' -runnerUuid '{7021bf5b-b1c8-565d-b03e-408755c70691}' -OAuthClientId aVO0rInqxfaDSEKPOSEPgTfV3dph04Ud -OAuthClientSecret ATOAwZeEN0dQxc_7XZVUdoNhEvMxNfeP622Nu6mDl2f6nrzRQU9gGJt2RWrnxr9jRjgcD3D45A3E -workingDirectory '..\temp'
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/atlassian/pipelines/runner/core/ApplicationImpl 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
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

Like James Schmelzer CD likes this
TAGS
AUG Leaders

Atlassian Community Events