-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggest to Update io.github.classgraph version to 4.8.178 to solve Quarkus related ExceptionInInitializerError #2627
Comments
@abdallah-rashwan noted and thanks for the report. can you also confirm if using the "all" classifier (shaded JAR) solves the problem as described here: https://github.com/karatelabs/karate-examples/blob/main/database/README.md#using-the-shaded-jar |
Hi @ptrthomas thanks for your quick response. Unfortunately classifier "all" not solving the problem. I believe its because of the relocation of the packages. |
@abdallah-rashwan that is a bit surprising. we can certainly bump the version, but if you can submit a way to replicate the problem using this project as a base, that would be great: https://github.com/karatelabs/karate-examples/blob/main/quarkus/README.md |
@ptrthomas created a fork here: https://github.com/abdallah-rashwan/karate-examples |
is it for pc ?? |
I have a similar problem. I can see this was added to 1.5.1 milestone. Any idea of when it will be available ? |
should be released next week, at least by 10-Jan. |
1.5.1 released |
Hello everyone
I'm using
[email protected]
for running integration tests for a Quarkus application. After upgrading to Quarkus version 3.16.3 I keeps receiving an exception "stacktrace added below", its mainly related to a NPE handler fromQuarkusClassLoaderHandler
from io.github.classgraph. Doing some investigation I've seen that you're usingmaven-shade-plugin
to relocate some package to different names withKarate
prefix, so thisQuarkusClassLoaderHandler
class is being added toKarate
package.Below is the exception trace I'm receiving.
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Collection.iterator()" because the return value of "karate.nonapi.io.github.classgraph.reflection.ReflectionUtils.getFieldVal(boolean, Object, String)" is null at karate.nonapi.io.github.classgraph.classloaderhandler.QuarkusClassLoaderHandler.findClasspathOrderForQuarkusClassloader(QuarkusClassLoaderHandler.java:120) at karate.nonapi.io.github.classgraph.classloaderhandler.QuarkusClassLoaderHandler.findClasspathOrder(QuarkusClassLoaderHandler.java:111) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ... 18 more
Runner.path("path").parallel(1);
is to reproduce the issue.After doing some investigation I found out that this error is coming from
io.github.classgraph
and being solved here classgraph/classgraph#893 which is fixing classgraph/classgraph#891 .My suggestion is basically upgrade
io.github.classgraph
dependency version for 4.1.178 at least and I believe it will fix it.My environment is as follows.
JDK: 21
Quarkus: 3.16.3
Karate: 1.5.0
The text was updated successfully, but these errors were encountered: