← All tasks
javaswagger-api/swagger-core #4834Not a task: not reproduced

Bump classgraph dependency

envgap__swagger-api__swagger-core-4834

01 / FAILURE SIGNATURE

As reported upstream

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
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
c0e8bb97ee5eef758c33612ae04acaec6e83f48b
Manifest
pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

swagger-api/swagger-core #4834 · read the original issue
I bumped into the same issue as mentioned here: https://github.com/karatelabs/karate/issues/2627 when trying to generate generate openapi specs in my Quarkus application.

```
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
```

I was able to solve this by overriding the `io.github.classgraph:classgraph` in my pom:

```
<dependency>
    <groupId>io.swagger.core.v3</groupId>
    <artifactId>swagger-jaxrs2-jakarta</artifactId>
</dependency>
<!-- Override classgraph version from swagger-jaxrs2-jakarta -->
<dependency>
    <groupId>io.github.classgraph</groupId>
    <artifactId>classgraph</artifactId>
    <version>4.8.179</version>
</dependency>
```

Would it be possible to bump the classgraph dependency?
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]