I got this `bytebuddy` error when executing BDD test

hello all, i need help.

i am trying to execute the BDD test using Katalon Studio Free v9.5.0, my Java/JRE version is v21
i got this error:

=============== ROOT CAUSE =====================
Caused by: java.lang.IncompatibleClassChangeError: class net.bytebuddy.implementation.FieldAccessor$FieldNameExtractor$ForBeanProperty$1 cannot inherit from final class net.bytebuddy.implementation.FieldAccessor$FieldNameExtractor$ForBeanProperty

For trouble shooting, please visit: https://docs.katalon.com/katalon-studio/docs/troubleshooting.html
================================================

the whole error message is attached on the picture

this is my 2nd day figuring out how to solve this issue, the error still happen.
thanks in advance
really appreciate for any help/answer

2 Likes

Hi there, :wave:

Thank you very much for your topic! It may take a little while before Katalon team member or others forum members respond to you.

In the meantime, you can double-check your post to see if you can add any extra information i.e. error logs, HTML codes, screenshots, etc. Check out this posting guide to help us help you better!

Thanks! :sunglasses:
Katalon Community team

Please try to stop using JRE version ‘v21’ inside Katalon Studio Free v9.5.0. Please let Katalon Studio Free v9.5.0 to run on the JRE bundled as default (possibly JDK17). Then hopefully the "java.lang.IncompatibleClassChangeError: class net.bytebuddy… " will disappear.

hey @kazurayam thanks for the answer.

I’ve tried to change the JRE to use Katalon default, I got an error:

=============== ROOT CAUSE =====================
Caused by: java.lang.UnsupportedClassVersionError: META-INF/versions/21/com/fasterxml/jackson/core/io/doubleparser/FastDoubleSwar has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0

do you have idea what is this about?
thanks in advance

In the following page, you can find the list of class file versions for each JDK release.

So you can interpret the message as follows:

I guess, you have some external library(ies) stored in the Drivers folder or the Plugins folder, and one of the jar desperately wants to be executed on JDK21. Your test case called a class in the jar. But you had to stop using JDK21 for the reason as above. So that one of the class that demands JDK21 complained about the version discrepancy.

Now you seem to be in a dead-lock situation.

I do not see what sort of external library you customly installed. I have no idea how to work around this mess.

1 Like

Hi! I’m facing the exact same situation, but the project is not using any external drivers or plugins. I’ll try to use a previous version of Katalon, as a coworker had no issues with this.

2 Likes

In my case, going back to version 8.6.9 of Katalon was the solution.

To add details, I’m using Mac.

Thank you for your input.

This implies that the Katalon Studio 9.5.0 has a problem natively, possibly around BDD/Cucumber libraries.

=> @Elly_Tran

Hi all,

Thank you for sharing your issue. I will create a ticket for my team to investigate. Back to you soon

1 Like

Hello,

I have exactly the same issue with Katalon 9.7.2

With default Java or Java 17:
java.lang.UnsupportedClassVersionError: META-INF/versions/21/com/fasterxml/jackson/core/io/doubleparser/FastDoubleSwar has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0

With Java 21 or Java 22:
Caused by: java.lang.IncompatibleClassChangeError: class net.bytebuddy.implementation.FieldAccessor$FieldNameExtractor$ForBeanProperty$1 cannot inherit from final class net.bytebuddy.implementation.FieldAccessor$FieldNameExtractor$ForBeanProperty

Stuck !

Let’s wait for katalon investigation and fix/workaround for this issue

To fix this:

Java.lang.UnsupportedClassVersionError: META-INF/versions/21/com/fasterxml/jackson/core/io/doubleparser/FastDoubleSwar has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0

Steps:

  • download JDK 21
  • add it (…/…/jdk-21.x.x.jdk/Contents/Home) to Katalon Studio : Preferences → Java → Installed JREs
  • select JDK added on the list of installed JREs
  • click on Apply and Close button
1 Like

@dpp @ffrik can you confirm?

So Java 21 gives this :

Caused by: java.lang.IncompatibleClassChangeError: class net.bytebuddy.implementation.FieldAccessor$FieldNameExtractor$ForBeanProperty$1 cannot inherit from final class net.bytebuddy.implementation.FieldAccessor$FieldNameExtractor$ForBeanProperty

If I launch directly a feature on my side.
But It works I launch a test suite.
Maybe this can be a workaroud → launch by suite, not by feature

hey @dineshh

i have tried @adadiagne08 suggestion to use JDK 21, still got same issue. bytebuddy things

also i have tried @ffrik suggestion to execute test from suite, still got same issue.

for your information @kazurayam

please help to fix it ASAP katalon team (@Elly_Tran ), since it’s a blocker for me and the others