[JIRA] (JENKINS-53915) Audit Trail Plugin Configuration Save Error

24 views
Skip to first unread message

thomas@flux7.com (JIRA)

unread,
Oct 4, 2018, 4:20:09 PM10/4/18
to jenkinsc...@googlegroups.com
tom b created an issue
 
Jenkins / Bug JENKINS-53915
Audit Trail Plugin Configuration Save Error
Issue Type: Bug Bug
Assignee: Tomasz Sęk
Components: audit-trail-plugin
Created: 2018-10-04 20:19
Labels: plugin jenkins audit
Priority: Major Major
Reporter: tom b

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  

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

o.v.nenashev@gmail.com (JIRA)

unread,
Oct 8, 2018, 2:17:02 AM10/8/18
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Labels: audit jenkins plugin stapler

o.v.nenashev@gmail.com (JIRA)

unread,
Oct 8, 2018, 2:17:02 AM10/8/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-53915
 
Re: Audit Trail Plugin Configuration Save Error

"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

o.v.nenashev@gmail.com (JIRA)

unread,
Oct 8, 2018, 2:17:02 AM10/8/18
to jenkinsc...@googlegroups.com
Oleg Nenashev assigned an issue to Unassigned
 
Change By: Oleg Nenashev
Assignee: Tomasz Sęk

o.v.nenashev@gmail.com (JIRA)

unread,
Oct 8, 2018, 2:17:03 AM10/8/18
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Oct 8, 2018, 2:20:02 AM10/8/18
to jenkinsc...@googlegroups.com

pibeitz@gmail.com (JIRA)

unread,
May 5, 2019, 1:31:02 PM5/5/19
to jenkinsc...@googlegroups.com

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

pibeitz@gmail.com (JIRA)

unread,
May 5, 2019, 1:31:02 PM5/5/19
to jenkinsc...@googlegroups.com

pibeitz@gmail.com (JIRA)

unread,
Jun 9, 2019, 9:36:04 AM6/9/19
to jenkinsc...@googlegroups.com
 
Re: Audit Trail Plugin Configuration Save Error

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

pibeitz@gmail.com (JIRA)

unread,
Jun 9, 2019, 9:37:02 AM6/9/19
to jenkinsc...@googlegroups.com
Pierre Beitz closed an issue as Cannot Reproduce
 
Change By: Pierre Beitz
Status: Open Closed
Resolution: Cannot Reproduce
Reply all
Reply to author
Forward
0 new messages