jenkinsci / configuration-as-code-plugin

Jenkins Configuration as Code Plugin
https://plugins.jenkins.io/configuration-as-code
MIT License
2.7k stars 722 forks source link

Error while serving <JENKINS_URL>/configuration-as-code/checkNewSource #2271

Closed lkisac closed 1 year ago

lkisac commented 1 year ago

Jenkins and plugins versions report

Environment ```text Plugins: ace-editor:1.1 active-directory:2.30 additional-metrics:67.vcb_823d3999a_2 adoptopenjdk:1.5 ansicolor:1.0.2 ant:487.vd79d090d4ea_e antisamy-markup-formatter:159.v25b_c67cd35fb_ apache-httpcomponents-client-4-api:4.5.14-150.v7a_b_9d17134a_5 atlassian-bitbucket-server-integration:3.3.2 audit-trail:333.vb_e1b_b_0f1238c authentication-tokens:1.53.v1c90fd9191a_b_ aws-credentials:191.vcb_f183ce58b_9 aws-java-sdk:1.12.447-382.vda_68e2007233 aws-java-sdk-cloudformation:1.12.447-382.vda_68e2007233 aws-java-sdk-codebuild:1.12.447-382.vda_68e2007233 aws-java-sdk-ec2:1.12.447-382.vda_68e2007233 aws-java-sdk-ecr:1.12.447-382.vda_68e2007233 aws-java-sdk-ecs:1.12.447-382.vda_68e2007233 aws-java-sdk-efs:1.12.447-382.vda_68e2007233 aws-java-sdk-elasticbeanstalk:1.12.447-382.vda_68e2007233 aws-java-sdk-iam:1.12.447-382.vda_68e2007233 aws-java-sdk-kinesis:1.12.447-382.vda_68e2007233 aws-java-sdk-logs:1.12.447-382.vda_68e2007233 aws-java-sdk-minimal:1.12.447-382.vda_68e2007233 aws-java-sdk-sns:1.12.447-382.vda_68e2007233 aws-java-sdk-sqs:1.12.447-382.vda_68e2007233 aws-java-sdk-ssm:1.12.447-382.vda_68e2007233 bitbucket:223.vd12f2bca5430 bootstrap4-api:4.6.0-5 bootstrap5-api:5.2.2-2 bouncycastle-api:2.27 branch-api:2.1071.v1a_188a_562481 build-blocker-plugin:1.7.8 build-history-metrics-plugin:97.vdcf3aa48af8d build-metrics:1.3 build-name-setter:2.2.0 build-timeout:1.30 build-timestamp:1.0.3 build-user-vars-plugin:1.9 caffeine-api:3.1.6-115.vb_8b_b_328e59d8 calendar-view:0.3.2 checkmarx:2022.4.3 checks-api:2.0.0 chromedriver:1.2 cloudbees-folder:6.815.v0dd5a_cb_40e0e command-launcher:100.v2f6722292ee8 commons-lang3-api:3.12.0-36.vd97de6465d5b_ commons-text-api:1.10.0-36.vc008c8fcda_7b_ conditional-buildstep:1.4.2 config-file-provider:3.11.1 configuration-as-code:1625.v27444588cc3d copyartifact:698.v393f578eb_ddc credentials:1236.v31e44e6060c0 credentials-binding:604.vb_64480b_c56ca_ crx-content-package-deployer:1.9 data-tables-api:1.13.3-3 deployit-plugin:23.1.0 display-url-api:2.3.7 docker-commons:419.v8e3cd84ef49c docker-java-api:3.0.14 docker-plugin:1.1.9 docker-workflow:1.28 durable-task:504.vb10d1ae5ba2f echarts-api:5.4.0-3 email-ext:2.96 email-ext-recipients-column:27.vb_9404db_b_018d emailext-template:1.5 envinject:2.901.v0038b_6471582 envinject-api:1.199.v3ce31253ed13 extended-read-permission:3.2 external-monitor-job:203.v683c09d993b_9 extra-columns:1.25 files-found-trigger:1.5 font-awesome-api:6.3.0-2 git:5.0.1 git-client:4.2.0 git-server:99.va_0826a_b_cdfa_d global-build-stats:1.5 global-variable-string-parameter:1.2 handlebars:3.0.8 htmlpublisher:1.31 instance-identity:142.v04572ca_5b_265 ionicons-api:45.vf54fca_5d2154 jackson2-api:2.15.0-334.v317a_165f9b_7c jakarta-activation-api:2.0.1-3 jakarta-mail-api:2.0.1-3 javadoc:233.vdc1a_ec702cff javax-activation-api:1.2.0-6 javax-mail-api:1.6.2-9 jaxb:2.3.8-1 jdk-tool:66.vd8fa_64ee91b_d JDK_Parameter_Plugin:1.0 JiraTestResultReporter:185.v749342e01ce4 jnr-posix-api:3.1.16-2 job-dsl:1.77 job-node-stalker:1.0.5 jquery:1.12.4-1 jquery-detached:1.2.1 jquery3-api:3.6.4-1 jsch:0.1.55.61.va_e9ee26616e7 junit:1198.ve38db_d1b_c975 junit-attachments:131.vef2117770555 junit-realtime-test-reporter:102.v3f020960a_646 label-linked-jobs:6.0.1 ldap:673.v034ec70ec2b_b_ lockable-resources:1150.v59db_2b_994618 log-parser:2.3.0 mail-watcher-plugin:1.18 mailer:448.v5b_97805e3767 mailmap-resolver:0.2 matrix-auth:3.1.7 matrix-combinations-parameter:1.3.2 matrix-project:789.v57a_725b_63c79 matrixtieparent:1.2 maven-plugin:3.22 mercurial:1260.vdfb_723cdcc81 metrics:4.2.13-420.vea_2f17932dd6 mina-sshd-api-common:2.9.2-62.v199162f0a_2f8 mina-sshd-api-core:2.9.2-62.v199162f0a_2f8 momentjs:1.1.1 multiple-scms:0.8 naginator:1.18.2 next-build-number:1.8 nodejs:1.6.0 nodelabelparameter:1.11.0 nvm-wrapper:0.1.7 pam-auth:1.10 Parameterized-Remote-Trigger:3.1.6.3 parameterized-trigger:2.45 pipeline-aws:1.43 pipeline-build-step:491.v1fec530da_858 pipeline-graph-analysis:202.va_d268e64deb_3 pipeline-groovy-lib:656.va_a_ceeb_6ffb_f7 pipeline-input-step:468.va_5db_051498a_4 pipeline-milestone-step:111.v449306f708b_7 pipeline-model-api:2.2125.vddb_a_44a_d605e pipeline-model-declarative-agent:1.1.1 pipeline-model-definition:1.9.3 pipeline-model-extensions:2.2125.vddb_a_44a_d605e pipeline-multibranch-defaults:2.1 pipeline-npm:49.v9c8598493533 pipeline-rest-api:2.32 pipeline-stage-step:305.ve96d0205c1c6 pipeline-stage-tags-metadata:2.2125.vddb_a_44a_d605e pipeline-stage-view:2.32 plain-credentials:143.v1b_df8b_d3b_e48 plugin-util-api:3.2.0 popper-api:1.16.1-3 popper2-api:2.11.6-2 postbuildscript:2.11.0 powershell:2.0 preSCMbuildstep:71.v1f2990a_37e27 publish-over:0.22 publish-over-cifs:0.16 publish-over-ssh:1.24 rebuild:320.v5a_0933a_e7d61 resource-disposer:0.22 rich-text-publisher-plugin:1.4 role-strategy:631.va_dd0d500b_fc5 run-condition:1.5 s3:0.12.3444.vf1f416e058d3 saml:2.333.vc81e525974a_c scm-api:667.v8b_6e07cdc7f2 scp:1.8 script-security:1244.ve463715a_f89c sectioned-view:1.25 selection-tasks-plugin:1.0 selenium:3.141.59 selenium-builder:1.14 seleniumhtmlreport:1.1 seleniumrc-plugin:1.0 sidebar-link:2.2.1 sitemonitor:0.6 sloccount:1.27 snakeyaml-api:1.33-95.va_b_a_e3e47b_fa_4 soapui-pro-functional-testing:1.7 ssh:2.6.1 ssh-agent:333.v878b_53c89511 ssh-credentials:305.v8f4381501156 ssh-slaves:1.834.v622da_57f702c ssh-steps:1.2.1 ssh2easy:1.4 sshd:3.275.v9e17c10f2571 structs:324.va_f5d6774f3a_d teamconcert:2.4.1 teamconcert-git:2.0.3 timestamper:1.24 token-macro:359.vb_cde11682e0c trilead-api:2.84.v72119de229b_7 uno-choice:2.6.5 validating-string-parameter:2.8 variant:59.vf075fe829ccb windows-slaves:1.8.1 workflow-aggregator:2.7 workflow-api:1208.v0cc7c6e0da_9e workflow-basic-steps:2.24 workflow-cps:3659.v582dc37621d8 workflow-cps-global-lib:609.vd95673f149b_b workflow-cps-global-lib-http:2.20.0 workflow-durable-task-step:2.39 workflow-job:1292.v27d8cc3e2602 workflow-multibranch:746.v05814d19c001 workflow-scm-step:408.v7d5b_135a_b_d49 workflow-step-api:639.v6eca_cd8c04a_a_ workflow-support:839.v35e2736cfd5c working-hours:1.1 ws-cleanup:0.45 xml-job-to-job-dsl:0.1.13 xvfb:1.2 yaml-axis:0.3.0 ```

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

Controller info: os.name: Linux os.version: 3.10.0-1160.76.1.el7.x86_64 java.version: 11.0.17 jenkins version: 2.387.2 (LTS)

Reproduction steps

  1. Open Configuration as Code :/manage/configuration-as-code/
  2. Add Path or URL to textbox
  3. Click outside textbox

Expected Results

Message: "This configuration can be applied"

Actual Results

Error message: "An internal error occurred during form field validation (HTTP 500)..."

jenkins.log:

2023-05-03 15:53:21.955+0000 [id=1170]  WARNING i.j.p.casc.BaseConfigurator#createAttribute: Can't handle class jenkins.plugins.git.GitSCMSource#owner: type is abstract but not Describable.

2023-05-03 15:53:21.981+0000 [id=1170]  WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://<jenkins_host>:8080/manage/configuration-as-code/checkNewSource

java.lang.NullPointerException

        at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$collectProblems$0(ConfigurationAsCode.java:262)

        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)

        at java.base/java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1764)

        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)

        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)

        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)

        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)

        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)

        at io.jenkins.plugins.casc.ConfigurationAsCode.collectProblems(ConfigurationAsCode.java:263)

        at io.jenkins.plugins.casc.ConfigurationAsCode.doCheckNewSource(ConfigurationAsCode.java:246)

        at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)

        at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397)

Caused: java.lang.reflect.InvocationTargetException

        at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:401)

        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)

        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900)

        at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:475)

        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770)

        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900)

        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:836)

        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900)

        at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:475)

        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770)

        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900)

        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:698)

        at org.kohsuke.stapler.Stapler.service(Stapler.java:248)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)

        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)

        at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665)

        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:157)

        at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:112)

        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)

        at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:81)

        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)

        at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:129)

        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)

        at com.atlassian.bitbucket.jenkins.internal.applink.oauth.serviceprovider.auth.OAuth1aRequestFilter.doFilter(OAuth1aRequestFilter.java:91)

        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)

        at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)

        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)

        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:160)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:154)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:94)

        at jenkins.security.AcegiSecurityExceptionFilter.doFilter(AcegiSecurityExceptionFilter.java:52)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:54)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126)

       at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:110)

        at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:101)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:227)

        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:221)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:97)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:117)

        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)

        at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:63)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:111)

        at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:172)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:53)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:86)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:38)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)

        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:549)

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)

        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)

        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570)

        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)

        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1383)

        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)

        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484)

        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543)

        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)

        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1305)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)

        at org.eclipse.jetty.server.Server.handle(Server.java:563)

        at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505)

        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762)

        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497)

        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282)

        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314)

        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)

        at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)

        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:416)

        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:385)

        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:272)

        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:140)

        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411)

        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:934)

        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1078)

        at java.base/java.lang.Thread.run(Thread.java:829)

2023-05-03 15:53:21.982+0000 [id=1170]  WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID bc1e1b35-bafd-4bf9-8543-71a2a0732b5e

java.lang.NullPointerException

        at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$collectProblems$0(ConfigurationAsCode.java:262)

        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)

        at java.base/java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1764)

       at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)

        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)

        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)

        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)

        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)

        at io.jenkins.plugins.casc.ConfigurationAsCode.collectProblems(ConfigurationAsCode.java:263)

        at io.jenkins.plugins.casc.ConfigurationAsCode.doCheckNewSource(ConfigurationAsCode.java:246)

        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)

        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900)

        at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:475)

        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770)

        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900)

        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:836)

        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900)

        at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:475)

        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770)

        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900)

        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:698)

        at org.kohsuke.stapler.Stapler.service(Stapler.java:248)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)

        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)

        at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665)

        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:157)

        at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:112)

        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)

        at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:81)

        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)

        at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:129)

        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)

        at com.atlassian.bitbucket.jenkins.internal.applink.oauth.serviceprovider.auth.OAuth1aRequestFilter.doFilter(OAuth1aRequestFilter.java:91)

        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)

        at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)

        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)

        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:160)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:154)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:94)

        at jenkins.security.AcegiSecurityExceptionFilter.doFilter(AcegiSecurityExceptionFilter.java:52)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:54)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126)

        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:110)

        at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:101)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:227)

        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:221)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:97)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:117)

        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)

        at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:63)

       at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)

        at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:111)

        at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:172)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:53)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:86)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:38)

        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)

        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)

        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:549)

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)

        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)

        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570)

        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)

        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1383)

        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)

        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484)

        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543)

        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)

        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1305)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)

        at org.eclipse.jetty.server.Server.handle(Server.java:563)

        at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505)

        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762)

        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497)

       at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282)

        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314)

        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)

        at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)

        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:416)

        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:385)

        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:272)

        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:140)

        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411)

        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:934)

        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1078)

Anything else?

Similar issue to #1950.

Note: it may be difficult to post the configuration YAML file as there is sensitive information there. Please let me know if there is a particular block that may need to be reviewed and I can see what I can post (and omit). There are no syntax errors in this file as the same config is working on another controller with a previous version of config as code

lkisac commented 1 year ago

+@timja Checking back if there might be any update.

timja commented 1 year ago

Note: it may be difficult to post the configuration YAML file as there is sensitive information there. Please let me know if there is a particular block that may need to be reviewed and I can see what I can post (and omit). There are no syntax errors in this file as the same config is working on another controller with a previous version of config as code

Please provide a minimal config that can re-produce this issue

timja commented 1 year ago

Please add it here, new issues are not monitored there.

timja commented 1 year ago

That's not very minimal, can it be reduced more please?

lkisac commented 1 year ago

@timja Checking back for any update, thanks.

timja commented 1 year ago

It is not minimal enough and I don't have the time to investigate it right now.

Others are welcome to

jetersen commented 1 year ago

Fixed in https://github.com/jenkinsci/configuration-as-code-plugin/releases/tag/1670.v564dc8b_982d0

lkisac commented 1 year ago

@jetersen , @timja , could we have one of the admins remove this post? The casc file, although some sensitive info was stripped, shouldn't be posted. I'm unable to remove it myself, thanks