eclipse-ee4j / eclipse-ee4j/jersey

NullPointerException in ServerProcessingBinder.java:154 when using jersey-media-json-jackson

Open
#3,419 5 comments 0 reactions 0 assignees View on GitHub
Component: core Component: media NullPointerException Priority: Minor Type: Bug
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

When adding jersey-media-json-jackson as a mvn dependency, a NPE is triggered when using a custom injected context.

I have marked it as minor as it is possible to just ignore the crash as it does not seem to have any effect on the functionally of the server.

A minimal repro case is available at [https://github.com/PhroZenOne/jersey-json-bug](https://github.com/PhroZenOne/jersey-json-bug)

For stacktrace see: [https://github.com/PhroZenOne/jersey-json-bug/blob/master/stacktrace.txt](https://github.com/PhroZenOne/jersey-json-bug/blob/master/stacktrace.txt)

To reproduce this issue run:

git clone git@github.com:PhroZenOne/jersey-json-bug.git
cd jersey-json-bug/
mvn -Dtest=BugTrigger test
#### Environment
Tested on windows and ubuntu (with java build 1.8.0_101-b13)
#### Affected Versions
[2.23.1]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.