-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
Powered by SuggestiMate
The thing is that I have installed Warnings Plug-in 4.23,and I can see it in my job configuration.But it will do nothing when I click Add button to add Scan console. Nothing appears.
Do you have any idea about this problem? Thanks a lot.
- snapshot.png
- 60 kB
[JENKINS-17251] No parser appear when click Add button
Which browser are you using? Are there any problems reported when using a JavaScript Debugger like Firebug?
I used Chrome and IE, both of them have problems. I have upload all my installed plugin capture, can you find something conflict with Warning-plugin?
Actually I don't see why there is a problem on your system. One thing that we could check, in order to investigate this bug:
- On the same system, start Jenkins in a new JENKINS_HOME directory with java -jar jenkins.war
- Install the warnings plug-in using the update manager
- Restart Jenkins and try the add buttons
Dependening on the results we can decide which steps should be next...
I start a new Jenkins with different Jenkins_home and different port, warnings-plugins still can not be work. So I guess something related to my enviroment impact its work. Any clue?
Oh, by the way, I still use Jenkins 1.475.
I have to report the same issue. Jenkins version is 1.480.3, Plugin Version is 4.23.
[Steps to reproduce]
- Add post build step "Scan for compiler warnings"
[Expected behavior]
- Jenkins adds post build step
[Additional info]
- If it helps: I was able to add the "Task Scanner" Plugin as a post build step successfully.
[Actual behavior]
- Nothing happens
[Relevant Log entries]
The following log seems relevant:
Mrz 19, 2013 4:46:25 PM org.kohsuke.stapler.compression.CompressionFilter reportException
WARNING: Untrapped servlet exception
hudson.util.IOException2: Failed to evaluate the template closure
at hudson.widgets.RenderOnDemandClosure$1.generateResponse(RenderOnDemandClosure.java:127)
at org.kohsuke.stapler.HttpResponseRenderer$Default.handleHttpResponse(HttpResponseRenderer.java:107)
at org.kohsuke.stapler.HttpResponseRenderer$Default.generateResponse(HttpResponseRenderer.java:64)
at org.kohsuke.stapler.Function.renderResponse(Function.java:103)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:92)
at org.kohsuke.stapler.MetaClass$JavaScriptProxyMethodDispatcher.doDispatch(MetaClass.java:439)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:625)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488)
at org.kohsuke.stapler.Stapler.service(Stapler.java:125)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
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 org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
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 org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
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:66)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.jelly.JellyTagException: file:/D:/HudsonDATA/plugins/warnings/WEB-INF/classes/hudson/plugins/warnings/WarningsPublisher/config.jelly:6:36: <j:invokeStatic> method getAvailableParsers threw exception: hudson/plugins/violations/types/csslint/CssLintParser
at org.apache.commons.jelly.tags.core.InvokeStaticTag.doTag(InvokeStaticTag.java:148)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:146)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
at hudson.widgets.RenderOnDemandClosure$1.generateResponse(RenderOnDemandClosure.java:100)
... 64 more
Caused by: java.lang.NoClassDefFoundError: hudson/plugins/violations/types/csslint/CssLintParser
at hudson.plugins.warnings.parser.ViolationsRegistry.addParsers(ViolationsRegistry.java:29)
at hudson.plugins.warnings.parser.ParserRegistry.getAllParsers(ParserRegistry.java:204)
at hudson.plugins.warnings.parser.ParserRegistry.getAvailableParsers(ParserRegistry.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.jelly.tags.core.InvokeStaticTag.doTag(InvokeStaticTag.java:125)
... 87 more
The follow
@Eric I'm not sure if this is the same problem: in your case you can't add the post build action. yufei could add the post build action, but could not select warning parsers...
But anyway, good to see that in your case an exception is thrown. Can you please try to install the violations plug-in and restart? Or is it already installed?
@Ulli Hafner
I start a new JENKINS in a different PC(WIN XP 32bits),and download warnings plugin, it still not work. I click add button, still nothing happened. But the 'Advanced' button works well. I guess some lib or dll used in this plugin need to install, but I can not figure out what is it as nothing appears in console.
@Ulli: Thanks for the quick reply. Violations is already installed (Version 0.7.7). The violations plug in had been installed before the Warnings plug in. We recently upgraded from Hudson V1.395, the Violations plug in was installed before the upgrade, the warnings plug in was installed after the upgrade.
Sorry for interrupting this topic with another issue. Should I open a new ticket?
@Eric: Yes please either try to upgrade the violations plug-in or remove it if not necessary. Maybe your version conflicts with the version my plug-in requires (the dependency is optional: the warnings plug-in reuses the parsers of the violations plug-in if installed). If that does not help, please file a new bug report...
@yufei Q: I can't reproduce your problem. Are both machines Windows XP? Which Java version are you using? Please paste the console output that shows up when you start Jenkins until you hit the add button...
Following is console ouput from I start Jenkins to I click add button. No ouput for hitting button...
E:\YufeiPrivate\new\TEST>java -jar jenkins.war --httpPort=3000 --ajp13Port=8010
Running from: E:\YufeiPrivate\new\TEST\jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Mar 20, 2013 5:09:41 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Jenkins home directory: E:\YufeiPrivate\new\TEST found at: EnvVars.masterEnvVars
.get("JENKINS_HOME")
Mar 20, 2013 5:09:45 PM winstone.Logger logInternal
INFO: HTTP Listener started: port=3000
Mar 20, 2013 5:09:45 PM winstone.Logger logInternal
INFO: AJP13 Listener started: port=8010
Mar 20, 2013 5:09:45 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled
Mar 20, 2013 5:09:48 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Mar 20, 2013 5:09:48 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Mar 20, 2013 5:09:49 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Mar 20, 2013 5:09:49 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Mar 20, 2013 5:09:49 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Mar 20, 2013 5:09:59 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Mar 20, 2013 5:10:02 PM org.apache.sshd.common.util.SecurityUtils$BouncyCastleRe
gistration run
INFO: Trying to register BouncyCastle as a JCE provider
Mar 20, 2013 5:10:03 PM org.apache.sshd.common.util.SecurityUtils$BouncyCastleRe
gistration run
INFO: Registration succeeded
Mar 20, 2013 5:10:03 PM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 60042
Mar 20, 2013 5:10:03 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Mar 20, 2013 5:10:03 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 60043
Mar 20, 2013 5:10:03 PM hudson.WebAppMain$2 run
INFO: Jenkins is fully up and running
This warning appear in my another jenkins. Do you think it is related?
17:21:38,420 ERROR [STDERR] Mar 20, 2013 5:21:38 PM hudson.maven.settings.Config
ProviderDelegate <init>
WARNING: 'config-file-provider' plugin installed..., administration of setting.x
ml will not be available!
Are both machines Windows XP?
YF: no. One is Win7 and another is XP
Which Java version are you using?
YF: Both machines use 1.7
@Ulli: Thanks - updating the violations plug in has resolved my issue.
@Ulli Hafner
Hi, I still cann't get console log parser, but I modified job's config.xml and add WarningsPublisher, then restart Jenkins, now I can add log parser for this job now.. Do you think plugin can work?
Another question, do we have any out put for the result, like some xml file? Thanks.
I can get files such as "JavaCompilerjavac-warnings.xml" under builds folder, but I cann't find such file under project folder.
Can you please check your console or the Jenkins log too see if there is an exception thrown?