Skip to content

Compatibility issue with Jackson 2 API plugin latest update - NoSuchFieldError: SNAKE_CASE #195

@asiercamara

Description

@asiercamara

Jenkins and plugins versions report

Environment
Jenkins: 2.516.3
OS: Linux - 3.10.0-1160.119.1.el7.x86_64
Java: 17.0.8.1 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
---
analysis-model-api:13.8.0-902.v26f80296f743
ant:518.v8d8dc7945eca_
antisamy-markup-formatter:173.v680e3a_b_69ff3
apache-httpcomponents-client-4-api:4.5.14-269.vfa_2321039a_83
apache-httpcomponents-client-5-api:5.5-166.v870a_96374f91
asm-api:9.8-163.vb_2a_96d3f9c3c
authentication-tokens:1.144.v5ff4a_5ec5c33
authorize-project:2.0.0
bootstrap5-api:5.3.8-876.vb_c62a_27d9a_77
bouncycastle-api:2.30.1.81-264.v95c79c0e772c
branch-api:2.1244.vf95c81f1641c
caffeine-api:3.2.2-178.v353b_8428ed56
checks-api:373.vfe7645102093
cloudbees-bitbucket-branch-source:937.0.3
cloudbees-folder:6.1040.v8a_e6330a_54e3
cobertura:1.17
code-coverage-api:4.99.0
command-launcher:123.v37cfdc92ef67
commons-collections4-api:4.5.0-8.va_d5448ef9011
commons-httpclient3-api:3.1-3
commons-lang3-api:3.18.0-98.v3a_674c06072d
commons-text-api:1.14.0-194.v804a_dc3a_1b_d8
config-file-provider:994.v3d4a_5fa_f353a_
coverage:2.2941.v08df75b_767f1
credentials:1447.v4cb_b_539b_5321
credentials-binding:702.vfe613e537e88
data-tables-api:2.3.4-1400.vb_1e3e3c4dfc8
declarative-pipeline-migration-assistant:1.6.5
declarative-pipeline-migration-assistant-api:1.6.5
display-url-api:2.217.va_6b_de84cc74b_
durable-task:595.ve87b_f1318d67
echarts-api:6.0.0-1146.v5c8f3b_8f0573
eddsa-api:0.3.0.1-19.vc432d923e5ee
email-ext:1925.v1598902b_58dd
emailext-template:233.v1eb_88fc160b_5
external-monitor-job:223.vb_fddcf42c9b_3
extreme-notification:1.6
favorite:2.253.v9b_413168133b_
file-operations:353.vf3b_9b_a_f1f7f7
font-awesome-api:7.0.1-859.v128d3a_efb_6e5
forensics-api:3.1754.v2a_6613b_77002
git:5.7.0
git-client:6.4.0
git-forensics:3.2088.v3a_896f5e4937
git-server:137.ve0060b_432302
github:1.45.0
github-api:1.330-492.v3941a_032db_2a_
github-branch-source:1862.v1a_fc22a_d3788
gitlab-api:5.6.0-100.v83f8f4b_f1129
gitlab-branch-source:723.v090f23d3cc49
gitlab-logo:221.v4041f5e65573
gitlab-oauth:1.22
gitlab-plugin:1.9.9
gradle:2.16.1149.v711b_998b_0532
gson-api:2.13.2-173.va_a_092315913c
h2-api:11.1.4.199-36.vb_ee07e965744
handy-uri-templates-2-api:2.1.8-36.v85e4cb_234a_13
htmlpublisher:427
instance-identity:203.v15e81a_1b_7a_38
ionicons-api:94.vcc3065403257
jackson2-api:2.19.2-408.v18248a_324cfe
jakarta-activation-api:2.1.3-2
jakarta-mail-api:2.1.3-3
javadoc:354.vee1a_660b_4990
javax-activation-api:1.2.0-8
javax-mail-api:1.6.2-11
jaxb:2.3.9-133.vb_ec76a_73f706
jdk-tool:83.v417146707a_3d
jenkins-design-language:1.27.21
jersey2-api:2.47-165.ve7809a_3e87e0
jjwt-api:0.11.5-120.v0268cf544b_89
jnr-posix-api:3.1.20-166.v50a_50932c65b_
joda-time-api:2.14.0-149.v1c3ce991d1b_9
jquery3-api:3.7.1-594.vb_3864f326cf0
jsch:0.2.16-95.v3eecb_55fa_b_78
json-api:20250517-173.v596efb_962a_31
json-path-api:2.9.0-190.veefca_05d5477
jsoup:1.21.2-66.v6ea_38164b_8a_2
junit:1355.v45e2ea_65863c
ldap:780.vcb_33c9a_e4332
mailer:522.va_995fa_cfb_8b_d
mapdb-api:1.0.9-44.va_1e1310c9118
matrix-auth:3.2.8
matrix-project:858.vb_b_eb_9a_7ea_99e
mina-sshd-api-common:2.16.0-167.va_269f38cc024
mina-sshd-api-core:2.16.0-167.va_269f38cc024
nodejs:1.6.5
okhttp-api:4.11.0-189.v976fa_d3379d6
oss-symbols-api:392.v27a_482d90083
pam-auth:1.12
pipeline-build-step:571.v08a_fffd4b_0ce
pipeline-cps-http:171.v419323d0e4b_c
pipeline-graph-analysis:245.v88f03631a_b_21
pipeline-groovy-lib:752.vdddedf804e72
pipeline-input-step:534.v352f0a_e98918
pipeline-maven:1567.vb_2c3a_2116860
pipeline-maven-api:1567.vb_2c3a_2116860
pipeline-milestone-step:138.v78ca_76831a_43
pipeline-model-api:2.2265.v140e610fe9d5
pipeline-model-definition:2.2265.v140e610fe9d5
pipeline-model-extensions:2.2265.v140e610fe9d5
pipeline-stage-step:322.vecffa_99f371c
pipeline-stage-tags-metadata:2.2265.v140e610fe9d5
plain-credentials:199.v9f8e1f741799
plugin-util-api:6.1167.v022176c7e0ca_
prism-api:1.30.0-609.vf0a_df102d9a_f
publish-over:0.22
publish-over-ssh:390.vb_f56e7405751
pubsub-light:1.19
resource-disposer:0.25
scm-api:707.v749f968369d4
script-security:1378.vf25626395f49
skip-certificate-check:50.vcfa_cdb_b_27312
snakeyaml-api:2.3-125.v4d77857a_b_402
snyk-security-scanner:5.0.1
sonar:2.18
sse-gateway:1.28
ssh-agent:386.v36cc0c7582f0
ssh-credentials:361.vb_f6760818e8c
ssh-slaves:3.1071.v0d059c7b_c555
sshd:3.374.v19b_d59ce6610
structs:353.v261ea_40a_80fb_
subversion:1292.ve8cf25770ee3
token-macro:477.vd4f0dc3cb_cf1
trilead-api:2.209.v0e69b_c43c245
update-sites-manager:91.v38ff0407cb_a_d
variant:70.va_d9f17f859e0
violation-comments-to-gitlab:2.62.0
warnings-ng:12.9783.ve1cb_9f060738
workflow-aggregator:608.v67378e9d3db_1
workflow-api:1384.vdc05a_48f535f
workflow-basic-steps:1079.vce64b_a_929c5a_
workflow-cps:4183.v94b_6fd39da_c1
workflow-durable-task-step:1458.va_2e10a_a_b_7c4d
workflow-job:1546.v62a_c59c112dd
workflow-multibranch:811.vcd33d074c2a_0
workflow-scm-step:437.v05a_f66b_e5ef8
workflow-step-api:706.v518c5dcb_24c0
workflow-support:976.vb_d9493c2eb_09
ws-cleanup:0.49

What Operating System are you using (both controller, and any agents involved in the problem)?

linux rhel 7

Reproduction steps

  1. update plugin from jenkins Jackson 2 APIVersión 2.20.0-411.v6ef8fdee4fe9
  2. restart jenkins service
  3. Can't login using GitLab OAuth - NoSuchFieldError: SNAKE_CASE

Expected Results

Users should be able to successfully authenticate using GitLab OAuth regardless of Jackson 2 API plugin version.

Actual Results

Exception throwed
java.lang.NoSuchFieldError: SNAKE_CASE at PluginClassLoader for gitlab-api//org.gitlab4j.api.utils.JacksonJson.<init>(JacksonJson.java:62) at PluginClassLoader for gitlab-oauth//org.jenkinsci.plugins.GitLabAuthenticationToken.<init>(GitLabAuthenticationToken.java:101) at PluginClassLoader for gitlab-oauth//

Anything else?

last working plugin jackson2-api:2.19.2-408.v18248a_324cfe, last available version fails 2.20.0-411.v6ef8fdee4fe9

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions