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

Audit Trail Plugin Configuration Save Error

    Details

    • Similar Issues:

      Description

      Details: * After installing the latest Audit trail plugin and trying to configure the following loggers, log file and console types, after clicking "save" I get the following page every time error page every time. *

      Example error: * java.lang.IllegalArgumentException: Specified type class hudson.plugins.audit_trail.LogFileAuditLogger is not assignable to the expected class hudson.plugins.audit_trail.LogFileAuditLogger at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:671) Caused: java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.audit_trail.LogFileAuditLogger from

      {"log":"","limit":"","count":"","stapler-class":"hudson.plugins.audit_trail.LogFileAuditLogger","$class":"hudson.plugins.audit_trail.LogFileAuditLogger"}

      at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:680) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at hudson.model.Descriptor.newInstance(Descriptor.java:592) Caused: java.lang.Error: Failed to instantiate class hudson.plugins.audit_trail.LogFileAuditLogger from

      {"log":"/var/log/example","limit":"50","count":"10","stapler-class":"hudson.plugins.audit_trail.LogFileAuditLogger","$class":"hudson.plugins.audit_trail.LogFileAuditLogger"}

      * Full log: * h2. Stack trace java.lang.IllegalArgumentException: Specified type class hudson.plugins.audit_trail.LogFileAuditLogger is not assignable to the expected class hudson.plugins.audit_trail.LogFileAuditLogger at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:671) Caused: java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.audit_trail.LogFileAuditLogger from

      {"log":"","limit":"","count":"","stapler-class":"hudson.plugins.audit_trail.LogFileAuditLogger","$class":"hudson.plugins.audit_trail.LogFileAuditLogger"}

      at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:680) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at hudson.model.Descriptor.newInstance(Descriptor.java:592) Caused: java.lang.Error: Failed to instantiate class hudson.plugins.audit_trail.LogFileAuditLogger from

      {"log":"","limit":"","count":"","stapler-class":"hudson.plugins.audit_trail.LogFileAuditLogger","$class":"hudson.plugins.audit_trail.LogFileAuditLogger"}

      at hudson.model.Descriptor.newInstance(Descriptor.java:600) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:1055) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:1017) at hudson.plugins.audit_trail.AuditTrailPlugin.configure(AuditTrailPlugin.java:78) at jenkins.model.GlobalPluginConfiguration.configure(GlobalPluginConfiguration.java:27) at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:3731) at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:3695) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343) at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77) at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734) Caused: javax.servlet.ServletException at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:784) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:864) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:668) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:860) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:92) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:530) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

      I am using Jenkins version 2.121.2  

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          "hudson.plugins.audit_trail.LogFileAuditLogger is not assignable to the expected class hudson.plugins.audit_trail.LogFileAuditLogger"... this one is really confusing.

          Specified type class hudson.plugins.audit_trail.LogFileAuditLogger is
           not assignable to the expected class 
          hudson.plugins.audit_trail.LogFileAuditLogger at 
          org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:671)
           Caused: java.lang.IllegalArgumentException: Failed to instantiate class
           hudson.plugins.audit_trail.LogFileAuditLogger from 
          {"log":"","limit":"","count":"","stapler-class<span class="code-quote">":"hudson.plugins.audit_trail.LogFileAuditLogger","$class<span class="code-quote">":"hudson.plugins.audit_trail.LogFileAuditLogger"}
           at 
          org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:680)
           at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at 
          org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at 
          hudson.model.Descriptor.newInstance(Descriptor.java:592) Caused: 
          java.lang.Error: Failed to instantiate class 
          hudson.plugins.audit_trail.LogFileAuditLogger from 
          {"log":"","limit":"","count":"","stapler-class<span class="code-quote">":"hudson.plugins.audit_trail.LogFileAuditLogger","$class<span class="code-quote">":"hudson.plugins.audit_trail.LogFileAuditLogger"}
          
          

          There is no recent changes in the plugin which could have caused such behavior. Maybe it is an issue in Stapler

          Show
          oleg_nenashev Oleg Nenashev added a comment - "hudson.plugins.audit_trail.LogFileAuditLogger is not assignable to the expected class hudson.plugins.audit_trail.LogFileAuditLogger"... this one is really confusing. Specified type class hudson.plugins.audit_trail.LogFileAuditLogger is not assignable to the expected class hudson.plugins.audit_trail.LogFileAuditLogger at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:671) Caused: java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.audit_trail.LogFileAuditLogger from { "log" : ""," limit ":" "," count ":" "," stapler- class span class="code-quote">":" hudson.plugins.audit_trail.LogFileAuditLogger "," $ class span class="code-quote">":" hudson.plugins.audit_trail.LogFileAuditLogger"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:680) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at hudson.model.Descriptor.newInstance(Descriptor.java:592) Caused: java.lang.Error: Failed to instantiate class hudson.plugins.audit_trail.LogFileAuditLogger from { "log" : ""," limit ":" "," count ":" "," stapler- class span class="code-quote">":" hudson.plugins.audit_trail.LogFileAuditLogger "," $ class span class="code-quote">":" hudson.plugins.audit_trail.LogFileAuditLogger"} There is no recent changes in the plugin which could have caused such behavior. Maybe it is an issue in Stapler
          Show
          oleg_nenashev Oleg Nenashev added a comment - Here is a Stapler code: https://github.com/stapler/stapler/blob/master/core/src/main/java/org/kohsuke/stapler/RequestImpl.java#L670-L671  
          Hide
          pierrebtz Pierre Beitz added a comment -

          tom b Do you still reproduce the issue? Would you mind describing the exact steps you are using to reproduce?

          Show
          pierrebtz Pierre Beitz added a comment - tom b Do you still reproduce the issue? Would you mind describing the exact steps you are using to reproduce?
          Hide
          pierrebtz Pierre Beitz added a comment -

          Closing as not reproducible, feel free to reopen in case you have a valid test case on a recent Jenkins version.

          Show
          pierrebtz Pierre Beitz added a comment - Closing as not reproducible, feel free to reopen in case you have a valid test case on a recent Jenkins version.

            People

            • Assignee:
              pierrebtz Pierre Beitz
              Reporter:
              thomasflux7 tom b
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: