Cannot save job configuration: error 500 org.apache.commons.jelly.JellyTagException

Bug #1128694 reported by Angel Guzman Maeso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jenkins (Ubuntu)
Triaged
Low
Unassigned
Raring
Won't Fix
Low
Unassigned

Bug Description

Configuring a new job or editing I get a stacktrace just after the section for "run actions for execute after". This doesn't allow save any job configuration, so I cannot use jenkins.

--------

Status Code: 500

Exception: org.apache.commons.jelly.JellyTagException: jar:file:/run/jenkins/war/WEB-INF/lib/jenkins-core-1.480.2.jar!/lib/form/block.jelly:32:22: <d:invokeBody> hudson/maven/AbstractMavenProject
Stacktrace:
javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/run/jenkins/war/WEB-INF/lib/jenkins-core-1.480.2.jar!/lib/form/block.jelly:32:22: <d:invokeBody> hudson/maven/AbstractMavenProject
 at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:103)
 at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
 at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
 at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
 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.Stapler.invoke(Stapler.java:488)
 at org.kohsuke.stapler.Stapler.service(Stapler.java:162)
 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:94)
 at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
 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.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:215)
 at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/run/jenkins/war/WEB-INF/lib/jenkins-core-1.480.2.jar!/lib/form/block.jelly:32:22: <d:invokeBody> hudson/maven/AbstractMavenProject
 at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:735)
 at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:290)
 at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
 at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
 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.CallTagLibScript.run(CallTagLibScript.java:119)
 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:270)
 at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
 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:270)
 at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
 at org.apache.commons.jelly.tags.core.WhenTag.doTag(WhenTag.java:46)
 at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
 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:270)
 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.CallTagLibScript.run(CallTagLibScript.java:119)
 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.CallTagLibScript.run(CallTagLibScript.java:119)
 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.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:270)
 at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
 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:270)
 at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
 at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
 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.CallTagLibScript.run(CallTagLibScript.java:119)
 at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
 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:270)
 at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
 at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)
 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.CallTagLibScript.run(CallTagLibScript.java:119)
 at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
 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:270)
 at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
 at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
 at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
 at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
 at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
 at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
 at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
 at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
 at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
 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.CallTagLibScript.run(CallTagLibScript.java:119)
 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.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
 at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
 at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:95)
 ... 40 more
Caused by: java.lang.NoClassDefFoundError: hudson/maven/AbstractMavenProject
 at hudson.plugins.analysis.core.PluginDescriptor.isApplicable(PluginDescriptor.java:215)
 at hudson.tasks.BuildStepDescriptor.filter(BuildStepDescriptor.java:84)
 at hudson.Functions.getPublisherDescriptors(Functions.java:707)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)
 at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
 at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
 at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
 at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
 at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
 at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72)
 at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:58)
 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:270)
 ... 111 more

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: jenkins 1.480.2+dfsg-1~exp1
ProcVersionSignature: Ubuntu 3.8.0-6.12-generic 3.8.0-rc7
Uname: Linux 3.8.0-6-generic i686
ApportVersion: 2.8-0ubuntu4
Architecture: i386
Date: Mon Feb 18 05:02:33 2013
InstallationDate: Installed on 2013-02-03 (14 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: jenkins
UpgradeStatus: Upgraded to raring on 2013-02-03 (14 days ago)

Revision history for this message
Angel Guzman Maeso (shakaran) wrote :
Revision history for this message
James Page (james-page) wrote :

Hi Angel

Please can you check/update the version of the Maven 2 plugin that you are using; unlike upstream Ubuntu does not distribute this as core so it needs to be manually updates.

I hope this will fix your issue.

Cheers

James

Changed in jenkins (Ubuntu):
status: New → Incomplete
Revision history for this message
Angel Guzman Maeso (shakaran) wrote :

I found the workaround fix based in your comment. I did the following:

$ sudo apt-get install maven
$ jenkins-cli -s http://localhost:8080 install-plugin maven-plugin
$ jenkins-cli -s http://localhost:8080 safe-restart

Then the stacktrace gone and I can use jenkins now. Should maven and maven-plugin be shipped by default? If not, at least catch the exception for avoid the stacktrace and show a graceful warning message instead. That helps to the new users to have a best experience at install.

Revision history for this message
James Page (james-page) wrote :

Angel

The maven-plugin should ship in the jenkins package; however right now the effort to make that happen (due to missing dependencies, forks of other projects being used by jenkins) means that its not happening in the short term.

I'll add something to the README.Debian to this effect to let users know they really need to install the maven-plugin to get functional jenkins.

James Page (james-page)
Changed in jenkins (Ubuntu):
status: Incomplete → Triaged
importance: Undecided → Low
Revision history for this message
Spacemonkey (mitch-spacemonkeylabs) wrote :

Looks like I'm forced to downgrade jenkins to be compatible with the maven plugin.

Is there any other way around this issue? I cannot edit or create jobs now. Manually installing the maven plugin doesn't fix the issue for me.

Revision history for this message
Spacemonkey (mitch-spacemonkeylabs) wrote :

Nevermind, just figured out how to unpin the plugin - now I can use jenkins again.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

raring has seen the end of its life and is no longer receiving any updates. Marking the raring task for this ticket as "Won't Fix".

Changed in jenkins (Ubuntu Raring):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.