Description
Describe the bug
Generally identical to #7036 and #7106, but in a different context.
Jenkins provides API plugins (like Jackson 2 API) and has recently released Jackson 2 API 2.19.0. Jenkins users who install that Jackson 2 API plugin release are reporting exceptions (JENKINS-75712) when using Kubernetes agents.
We're not ready to upgrade from Kubernetes client API 6.x to 7.x, though we have a draft pull request in progress at:
It would be a great help to the Jenkins project if the Jackson API 2.19.0 adaptation could be backported to Kubernetes client 6.x.
Fabric8 Kubernetes Client version
6.13.5
Steps to reproduce
- Run a Jenkins Kubernetes agent on a Kubernetes 1.32 cluster with a resource limitation as described in JENKINS-75712
- Confirm that the exception is reported as:
java.lang.NullPointerException: Cannot invoke "com.fasterxml.jackson.databind.JsonSerializer.serialize(Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)" because "keySerializer" is null at PluginClassLoader for jackson2
Expected behavior
Null pointer exception should not be reported and the Jenkins agent should be allocated
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.32
Environment
Amazon
Fabric8 Kubernetes Client Logs
N/A
Additional context
A draft pull request that shows the failure through a unit test of the Jenkins kubernetes plugin is available at: