Adding environment variable via configure global settings fails with exception

adding a new Jekins environment variable via Manage → System (configure global settings and paths) fails with exception error.

Jan 14, 2024 9:02:07 AM WARNING hudson.init.impl.InstallUncaughtExceptionHandler handleException
Caught unhandled exception with ID 76b2f75d-bc98-4fd9-a00b-551344619373
java.lang.IllegalArgumentException: The frontend sent an unexpected list of classes ([“hudson.maven.local_repo.DefaultLocalRepositoryLocator”,“hudson.maven.local_repo.PerExecutorLocalRepositoryLocator”,“hudson.maven.local_repo.PerJobLocalRepositoryLocator”]) rather than an expected single class. See Table to div layout migration for more information.
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:750)
Caused: java.lang.IllegalArgumentException: Failed to instantiate class hudson.maven.local_repo.LocalRepositoryLocator from {“stapler-class”:[“hudson.maven.local_repo.DefaultLocalRepositoryLocator”,“hudson.maven.local_repo.PerExecutorLocalRepositoryLocator”,“hudson.maven.local_repo.PerJobLocalRepositoryLocator”],“$class”:[“hudson.maven.local_repo.DefaultLocalRepositoryLocator”,“hudson.maven.local_repo.PerExecutorLocalRepositoryLocator”,“hudson.maven.local_repo.PerJobLocalRepositoryLocator”]}
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:771)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:551)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:546)
at hudson.maven.MavenModuleSet$DescriptorImpl.configure(MavenModuleSet.java:1441)
at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:4097)
at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:4061)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:409)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:207)
at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36)
at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)
at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:140)
at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:558)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770)
Caused: javax.servlet.ServletException
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:818)

Jenkins Setup:
The Jenkins (2.426.1) server 
OS: Windows Server 2016 - 10.0
64bit
Java: 11.0.6 - AdoptOpenJDK (OpenJDK 64-Bit Server VM)
Office-365-Connector:4.20.2
Parameterized-Remote-Trigger:3.1.5.1
ace-editor:1.1
active-directory:2.34
amazon-ecr:1.114.vfd22430621f5
amazon-inspector-image-scanner:110.v2c3ed98a_5019
ansible:1.1
ansicolor:1.0.2
ant:481.v7b_09e538fcca
antisamy-markup-formatter:162.v0e6ec0fcfcf6
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
authentication-tokens:1.53.v1c90fd9191a_b_
aws-credentials:191.vcb_f183ce58b_9
aws-java-sdk:1.12.406-378.v938a_d577f750
aws-java-sdk-cloudformation:1.12.406-378.v938a_d577f750
aws-java-sdk-codebuild:1.12.406-378.v938a_d577f750
aws-java-sdk-ec2:1.12.406-378.v938a_d577f750
aws-java-sdk-ecr:1.12.406-378.v938a_d577f750
aws-java-sdk-ecs:1.12.406-378.v938a_d577f750
aws-java-sdk-efs:1.12.406-378.v938a_d577f750
aws-java-sdk-elasticbeanstalk:1.12.406-378.v938a_d577f750
aws-java-sdk-iam:1.12.406-378.v938a_d577f750
aws-java-sdk-kinesis:1.12.406-378.v938a_d577f750
aws-java-sdk-logs:1.12.406-378.v938a_d577f750
aws-java-sdk-minimal:1.12.406-378.v938a_d577f750
aws-java-sdk-sns:1.12.406-378.v938a_d577f750
aws-java-sdk-sqs:1.12.406-378.v938a_d577f750
aws-java-sdk-ssm:1.12.406-378.v938a_d577f750
aws-lambda:0.5.10
blueocean-autofavorite:1.2.5
blueocean-bitbucket-pipeline:1.22.0
blueocean-commons:1.27.3
blueocean-config:1.27.3
blueocean-core-js:1.27.3
blueocean-dashboard:1.27.3
blueocean-display-url:2.4.1
blueocean-events:1.22.0
blueocean-git-pipeline:1.22.0
blueocean-github-pipeline:1.22.0
blueocean-i18n:1.27.3
blueocean-jira:1.27.3
blueocean-jwt:1.27.3
blueocean-personalization:1.27.3
blueocean-pipeline-api-impl:1.25.7
blueocean-pipeline-editor:1.24.7
blueocean-pipeline-scm-api:1.27.3
blueocean-rest:1.27.3
blueocean-rest-impl:1.27.3
blueocean-web:1.27.3
bootstrap4-api:4.6.0-5
bootstrap5-api:5.3.2-2
bouncycastle-api:2.29
branch-api:2.1135.v8de8e7899051
build-blocker-plugin:1.7.9
build-environment:1.7
build-name-setter:2.4.0
build-pipeline-plugin:2.0.1
build-timeout:1.30
build-timestamp:1.0.3
build-user-vars-plugin:1.8
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.0.0
cloudbees-bitbucket-branch-source:773.v4b_9b_005b_562b_
cloudbees-credentials:3.3
cloudbees-disk-usage-simple:178.v1a_4d2f6359a_8
cloudbees-folder:6.858.v898218f3609d
cloudbees-jenkins-advisor:336.v4d00382fe22c
cobertura:1.17
code-coverage-api:4.1.0
command-launcher:90.v669d7ccb_7c31
commons-httpclient3-api:3.1-3
commons-lang3-api:3.13.0-62.v7d18e55f51e2
commons-text-api:1.11.0-94.v3e1f4a_926e49
conditional-buildstep:1.4.3
credentials:1309.v8835d63eb_d8a_
credentials-binding:642.v737c34dea_6c2
cucumber-reports:5.8.0
custom-tools-plugin:0.8
data-tables-api:1.13.3-3
datadog:5.6.1
dependency-check-jenkins-plugin:5.4.0
display-url-api:2.200.vb_9327d658781
docker-build-publish:1.4.0
docker-build-step:2.8
docker-commons:419.v8e3cd84ef49c
docker-java-api:3.1.5.2
docker-plugin:1.2.3
docker-slaves:1.0.7
docker-workflow:563.vd5d2e5c4007f
durable-task:523.va_a_22cf15d5e0
dynamic_extended_choice_parameter:1.0.1
echarts-api:5.4.3-1
email-ext:2.102
emailext-template:1.5
envinject:2.901.v0038b_6471582
envinject-api:1.199.v3ce31253ed13
extended-choice-parameter:359.v35dcfdd0c20d
extended-read-permission:3.2
extensible-choice-parameter:1.8.1
external-monitor-job:215.v2e88e894db_f8
favorite:2.4.1
font-awesome-api:6.5.1-1
forensics-api:2.1.0
git:5.2.1
git-client:4.6.0
git-parameter:0.9.19
git-server:99.va_0826a_b_cdfa_d
git-tag-message:1.7.1
gitflow:1.0.1
github:1.36.0
github-api:1.303-417.ve35d9dd78549
github-autostatus:3.6.2
github-branch-source:1703.vd5a_2b_29c6cdc
gitlab-api:5.3.0-91.v1f9a_fda_d654f
gitlab-branch-source:684.vea_fa_7c1e2fe3
gitlab-logo:1.1.2
gitlab-oauth:1.18
gitlab-plugin:1.7.16
google-oauth-plugin:1.0.8
gradle:2.9
handlebars:3.0.8
handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953
hashicorp-vault-pipeline:1.4
hashicorp-vault-plugin:364.vf5d54b_3dc313
htmlpublisher:1.31
instance-identity:142.v04572ca_5b_265
ionicons-api:56.v1b_1c8c49374e
jackson2-api:2.15.3-372.v309620682326
jacoco:3.3.3
jakarta-activation-api:2.0.1-3
jakarta-mail-api:2.0.1-3
javadoc:226.v71211feb_e7e9
javax-activation-api:1.2.0-6
javax-mail-api:1.6.2-9
jaxb:2.3.9-1
jdk-tool:63.v62d2fd4b_4793
jenkins-design-language:1.27.3
jersey2-api:2.41-133.va_03323b_a_1396
jira:3.9
jjwt-api:0.11.5-77.v646c772fddb_0
jnr-posix-api:3.1.16-2
job-import-plugin:3.6
jobConfigHistory:1207.vd28a_54732f92
jquery:1.12.4-1
jquery-detached:1.2.1
jquery-ui:1.0.2
jquery3-api:3.7.1-1
jsch:0.1.55.2
junit:1240.vf9529b_881428
kubernetes:3900.va_dce992317b_4
kubernetes-cli:1.12.0
kubernetes-client-api:6.8.1-224.vd388fca_4db_3b_
kubernetes-credentials:0.10.0
ldap:671.v2a_9192a_7419d
list-git-branches-parameter:0.0.13
lockable-resources:1131.vb_7c3d377e723
log-parser:2.3.0
mailer:463.vedf8358e006b_
mapdb-api:1.0.9-28.vf251ce40855d
mask-passwords:150.vf80d33113e80
matrix-auth:3.2.1
matrix-project:818.v7eb_e657db_924
maven-plugin:3.21
mercurial:1260.vdfb_723cdcc81
metrics:4.2.13-420.vea_2f17932dd6
mina-sshd-api-common:2.11.0-86.v836f585d47fa_
mina-sshd-api-core:2.11.0-86.v836f585d47fa_
momentjs:1.1.1
monitoring:1.92.0
multi-module-tests-publisher:1.44
multiple-scms:0.8
next-build-number:1.8
nexus-artifact-uploader:2.14
nodelabelparameter:1.12.0
oauth-credentials:0.5
okhttp-api:4.11.0-157.v6852a_a_fa_ec11
opentelemetry:2.10.0
pam-auth:1.10
parameterized-scheduler:1.2
parameterized-trigger:787.v665fcf2a_830b_
performance:918.v5511b_a_d40338
performance-signature-ui:3.2.2
perfpublisher:8.09
pipeline-aws:1.43
pipeline-build-step:516.v8ee60a_81c5b_9
pipeline-github-lib:1.0
pipeline-graph-analysis:202.va_d268e64deb_3
pipeline-groovy-lib:689.veec561a_dee13
pipeline-input-step:477.v339683a_8d55e
pipeline-milestone-step:111.v449306f708b_7
pipeline-model-api:2.2151.ve32c9d209a_3f
pipeline-model-declarative-agent:1.1.1
pipeline-model-definition:2.2151.ve32c9d209a_3f
pipeline-model-extensions:2.2151.ve32c9d209a_3f
pipeline-rest-api:2.32
pipeline-stage-step:305.ve96d0205c1c6
pipeline-stage-tags-metadata:2.2151.ve32c9d209a_3f
pipeline-stage-view:2.32
pipeline-utility-steps:2.15.1
plain-credentials:143.v1b_df8b_d3b_e48
plugin-usage-plugin:4.2
plugin-util-api:3.6.0
popper-api:1.16.1-3
popper2-api:2.11.6-2
powershell:2.0
prism-api:1.29.0-4
project-health-report:1.2
prometheus:2.1.2
pubsub-light:1.17
rebuild:330.v645b_7df10e2a_
resource-disposer:0.21
role-strategy:587.588.v850a_20a_30162
run-condition:1.5
saml:2.298.vc7a_2b_3958628
scm-api:676.v886669a_199a_a_
script-security:1294.v99333c047434
simple-theme-plugin:146.v0e67db_a_9052e
slack:631.v40deea_40323b
snakeyaml-api:2.2-111.vc6598e30cc65
sonar:2.15
sse-gateway:1.26
ssh:2.6.1
ssh-agent:295.v9ca_a_1c7cc3a_a_
ssh-credentials:308.ve4497b_ccd8f4
ssh-slaves:1.33.0
ssh-steps:1.2.1
sshd:3.242.va_db_9da_b_26a_c3
structs:325.vcb_307d2a_2782
subversion:2.17.3
support-core:1366.v9d076592655d
test-results-analyzer:0.4.0
thinBackup:1.17
timestamper:1.23
token-macro:384.vf35b_f26814ec
trilead-api:2.84.v72119de229b_7
uno-choice:2.8.1
variant:59.vf075fe829ccb
windows-slaves:1.8.1
workflow-aggregator:596.v8c21c963d92d
workflow-api:1283.v99c10937efcb_
workflow-basic-steps:1042.ve7b_140c4a_e0c
workflow-cps:3817.vd20b_7e2b_692b_
workflow-cps-global-lib:609.vd95673f149b_b
workflow-durable-task-step:1289.v4d3e7b_01546b_
workflow-job:1385.vb_58b_86ea_fff1
workflow-multibranch:756.v891d88f2cd46
workflow-scm-step:415.v434365564324
workflow-step-api:639.v6eca_cd8c04a_a_
workflow-support:865.v43e78cc44e0d
ws-cleanup:0.44
zap:1.1.0
zap-pipeline:1.16
zapper:1.0.7

One or more of the plugins installed on your Jenkins controller have not been updated for the configuration form modernization that was implemented in Jenkins 2.277.1.

Detailed steps to help you identify the plugin(s) with the problem are available in another Jenkins community forum post.