← All tasks
javaspringdoc/springdoc-openapi #1473Not a task: not reproduced

JacksonFeature NoClassDefFoundError

envgap__springdoc__springdoc-openapi-1473

01 / FAILURE SIGNATURE

As reported upstream

java.lang.NoClassDefFoundError: com.fasterxml.jackson.core.util.JacksonFeature
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
6befd4e426ab6e21bbdcb161af45b8ca182f2d0e
Manifest
pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

springdoc/springdoc-openapi #1473 · read the original issue
**Describe the bug**

I'm getting error running unit tests:

```

java.lang.NoClassDefFoundError: com.fasterxml.jackson.core.util.JacksonFeature

	at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:673)

	at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:576)

	at io.swagger.v3.core.util.ObjectMapperFactory.create(ObjectMapperFactory.java:79)

	at io.swagger.v3.core.util.ObjectMapperFactory.createJson(ObjectMapperFactory.java:65)

	at io.swagger.v3.core.util.Json.mapper(Json.java:13)

	at org.springdoc.ui.AbstractSwaggerIndexTransformer.<init>(AbstractSwaggerIndexTransformer.java:86)

	at org.springdoc.webmvc.ui.SwaggerIndexPageTransformer.<init>(SwaggerIndexPageTransformer.java:56)

<rest omitted>

```



I believe the issue is due to the `jackson-core` in `webjars-locator-core` is overriding its version for everything else:

<img width="464" alt="Screen Shot 2022-01-26 at 11 17 32 AM" src="https://user-images.githubusercontent.com/19825876/151214360-09fe5756-00ce-4e31-b7c4-ea3e60a6d6f2.png">



Per https://fasterxml.github.io/jackson-core/javadoc/2.12/com/fasterxml/jackson/core/util/JacksonFeature.html, `JacksonFeature` is added in 2.12.0, which is newer than the version in `webjars-locator-core`.



Fix is to update `webjars-locator-core` to 0.48.0.

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
[]