Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65665

Configuration-as-code exception loading config

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

       

      Getting the following exception every time I try to load a yaml configuration via the plugin

      [2021-05-18T22:29:23.383-0500] [Payara 5.2021.3] [SEVERE] [] [javax.enterprise.web] [tid: _ThreadID=77 _ThreadName=Handling POST /configuration-as-code/checkNewSou
      rce from 10.0.1.1 : http-thread-pool::http-listener-2(3)] [timeMillis: 1621394963383] [levelValue: 1000] [[
        WebModule[]Error while serving https://jenkins.hope.nyc.ny.us/configuration-as-code/checkNewSource
      java.lang.reflect.InvocationTargetException
              at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397)
              at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:405)
              at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:208)
              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:141)
              at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:536)
              at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
              at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:457)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:694)
              at org.kohsuke.stapler.Stapler.service(Stapler.java:240)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
              at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:157)
              at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:248)
              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 io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
              at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
              at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:60)
              at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
              at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:160)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
              at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:155)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:93)
              at jenkins.security.AcegiSecurityExceptionFilter.doFilter(AcegiSecurityExceptionFilter.java:52)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:98)
              at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:53)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:98)
              at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
              at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:98)
              at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:105)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:98)
              at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:101)
              at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:92)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:98)
              at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:218)
              at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:212)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:98)
              at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:96)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:98)
              at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110)
              at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
              at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:62)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:98)
              at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:110)
              at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:170)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
              at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:51)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
              at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:85)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
              at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
              at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:36)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:368)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
              at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
              at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:200)
              at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
              at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
              at java.base/java.lang.Thread.run(Thread.java:829)
      Caused by: java.lang.NoSuchMethodError: 'void org.yaml.snakeyaml.LoaderOptions.setMaxAliasesForCollections(int)'
              at io.jenkins.plugins.casc.yaml.YamlUtils.read(YamlUtils.java:65)
              at io.jenkins.plugins.casc.yaml.YamlUtils.merge(YamlUtils.java:46)
              at io.jenkins.plugins.casc.yaml.YamlUtils.loadFrom(YamlUtils.java:150)
              at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:651)
              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:393)
              ... 90 more
      ]]
      
      

        Attachments

          Activity

          Hide
          lprimak Lenny added a comment -

          This is probably an external issue

          Show
          lprimak Lenny added a comment - This is probably an external issue

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            lprimak Lenny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: