Issue with running @QuarkusTest

26 views
Skip to first unread message

Syamala Akella

unread,
Nov 29, 2021, 8:17:14 AM11/29/21
to Quarkus Development mailing list

I am using JDK 11, Quarkus 2.3. While using @QuarkusTest I am facing RunTimeException as shown below:

java.lang.RuntimeException: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors [error]: Build step io.quarkus.deployment.steps.ClassTransformingBuildStep#handleClassTransformation threw an exception: java.lang.IllegalStateException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: LocalVariablesSorter only accepts expanded frames (see ClassReader.EXPAND_FRAMES) at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:829)

Can anyone please suggest how to fix this issue?

Thank you.

Georgios Andrianakis

unread,
Nov 29, 2021, 8:34:48 AM11/29/21
to syama...@gmail.com, Quarkus Development mailing list
Does this also happen with the latest version of Quarkus, i.e. 2.5.0.Final?

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/5b07a26c-7e6c-4e19-8a1c-c27d429823a3n%40googlegroups.com.

Syamala Akella

unread,
Nov 29, 2021, 8:43:07 AM11/29/21
to Quarkus Development mailing list
I tried with Quarkus 2.5.0 as well but I got a different error as below:

  java.lang.RuntimeException: java.lang.NoSuchMethodError: 'io.quarkus.bootstrap.model.ApplicationModel io.quarkus.bootstrap.app.CuratedApplication.getApplicationModel()'

at io.quarkus.test.junit.QuarkusTestExtension.throwBootFailureException(QuarkusTestExtension.java:574)
at io.quarkus.test.junit.QuarkusTestExtension.interceptTestClassConstructor(QuarkusTestExtension.java:647)
at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
at org.junit.jupiter.api.extension.InvocationInterceptor.interceptTestClassConstructor(InvocationInterceptor.java:73)
at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:77)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeTestClassConstructor(ClassBasedTestDescriptor.java:355)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateTestClass(ClassBasedTestDescriptor.java:302)
at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.instantiateTestClass(ClassTestDescriptor.java:79)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateAndPostProcessTestInstance(ClassBasedTestDescriptor.java:280)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$4(ClassBasedTestDescriptor.java:272)  

Georgios Andrianakis

unread,
Nov 29, 2021, 8:44:44 AM11/29/21
to syama...@gmail.com, Quarkus Development mailing list
That means you have not updated the Quarkus version everywhere - or if you are running the tests from the IDE it mistakenly has an old Quarkus version on the classpath

George Gastaldi

unread,
Nov 29, 2021, 8:44:56 AM11/29/21
to syama...@gmail.com, Quarkus Development mailing list
Make sure the Quarkus plugin is also using the same version as the Quarkus BOM

Reply all
Reply to author
Forward
0 new messages