Skip to content

Jenkins + Kubernetes and Jackson 2.19.0 issue #7107

Closed
@MarkEWaite

Description

@MarkEWaite

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

  1. Run a Jenkins Kubernetes agent on a Kubernetes 1.32 cluster with a resource limitation as described in JENKINS-75712
  2. 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:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions