Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#762798: java.lang.ClassNotFoundException: hudson/matrix/MatrixBuild

6 views
Skip to first unread message

Ph. Marek

unread,
Sep 25, 2014, 5:20:02 AM9/25/14
to
Source: jenkins
Version: 1.565.2-2

Hi.

I used jenkins=1.509.2+dfsg-2, and it worked fine, with all needed plugins.

After upgrade via apt-get the configured job is lost; importing it via
"jenkins-cli" gives me "java.lang.ClassCastException: java.util.Vector
cannot be cast to hudson.util.DescribableList".


Furthermore, even the "configure jenkins" page gives errors:

javax.servlet.ServletException:
org.apache.commons.jelly.JellyTagException:
jar:file:/run/jenkins/war/WEB-INF/lib/jenkins-core-1.565.2.jar!/lib/form/section.jelly:48:21:
<d:invokeBody> hudson/matrix/MatrixBuild
at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:103)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
...
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.commons.jelly.JellyTagException:
jar:file:/run/jenkins/war/WEB-INF/lib/jenkins-core-1.565.2.jar!/lib/form/section.jelly:48:21:
<d:invokeBody> hudson/matrix/MatrixBuild
at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:745)
...
at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:95)
... 43 more
Caused by: java.lang.NoClassDefFoundError: hudson/matrix/MatrixBuild
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2436)
...
at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
... 121 more
Caused by: java.lang.ClassNotFoundException: hudson.matrix.MatrixBuild
at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 153 more

This problem persists even after moving /var/lib/jenkins away and running
"apt-get install --reinstall jenkins jenkins-common".


UPDATE: deactivating the "GIT client" plugin makes the /configure URL work
again, but that one would be required...

No, there are no (more) plugin updates available.


-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Emmanuel Bourg

unread,
Sep 25, 2014, 7:20:02 AM9/25/14
to
Hi Philipp,

Thank you for the report.

> After upgrade via apt-get the configured job is lost; importing it via
> "jenkins-cli" gives me "java.lang.ClassCastException: java.util.Vector
> cannot be cast to hudson.util.DescribableList".

Do you have the full stacktrace of this exception?


> UPDATE: deactivating the "GIT client" plugin makes the /configure URL work
> again, but that one would be required...
>
> No, there are no (more) plugin updates available.

Could you list the plugins installed please? I'll try to reproduce this
issue.

Emmanuel Bourg


signature.asc

Philipp Marek

unread,
Sep 25, 2014, 8:10:03 AM9/25/14
to
Hello Emmanuel,

thank you for the quick answer!


> > After upgrade via apt-get the configured job is lost; importing it via
> > "jenkins-cli" gives me "java.lang.ClassCastException: java.util.Vector
> > cannot be cast to hudson.util.DescribableList".
>
> Do you have the full stacktrace of this exception?
Here you are.

> > UPDATE: deactivating the "GIT client" plugin makes the /configure URL work
> > again, but that one would be required...
> >
> > No, there are no (more) plugin updates available.
>
> Could you list the plugins installed please? I'll try to reproduce this
> issue.
This:
credentials git-client git git-parameter
instant-messaging ircbot ldap mailer
scm-api ssh-credentials ssh

stacktrace.txt

Philipp Marek

unread,
Sep 25, 2014, 8:30:03 AM9/25/14
to
> This is the trace for the ClassNotFoundException, do you still have the
> one for the ClassCastException?
Oh sorry.

Yes, I found it in my screen backlog:

java.lang.ClassCastException: java.util.Vector cannot be cast to hudson.util.DescribableList
at hudson.model.AbstractProject.triggers(AbstractProject.java:339)
at hudson.model.AbstractProject.onLoad(AbstractProject.java:322)
at hudson.model.Project.onLoad(Project.java:90)
at hudson.model.Items.load(Items.java:273)
at hudson.model.ItemGroupMixIn$4.call(ItemGroupMixIn.java:258)
at hudson.model.ItemGroupMixIn$4.call(ItemGroupMixIn.java:256)
at hudson.model.Items.whileUpdatingByXml(Items.java:84)
at hudson.model.ItemGroupMixIn.createProjectFromXML(ItemGroupMixIn.java:256)
at jenkins.model.Jenkins.createProjectFromXML(Jenkins.java:2967)
at hudson.cli.CreateJobCommand.run(CreateJobCommand.java:73)
at hudson.cli.CLICommand.main(CLICommand.java:234)
at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
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:606)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:309)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:290)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:249)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:328)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63)
at hudson.remoting.InterceptingExecutorService$2.call(InterceptingExecutorService.java:95)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
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:745)


Emmanuel Bourg

unread,
Sep 25, 2014, 10:40:03 AM9/25/14
to
signature.asc

Ricardo Ribalda Delgado

unread,
Sep 27, 2014, 8:00:02 AM9/27/14
to
Hello

Maybe this is related to https://issues.jenkins-ci.org/browse/JENKINS-24864 ?

On Thu, 25 Sep 2014 14:00:59 +0200 Emmanuel Bourg <ebo...@apache.org> wrote:
> This is the trace for the ClassNotFoundException, do you still have the
> one for the ClassCastException?
>
>


Emmanuel Bourg

unread,
Sep 27, 2014, 8:50:01 AM9/27/14
to
Philipp,

Do you still get the "ClassNotFoundException: hudson.matrix.MatrixBuild"
error after installing the matrix-project-plugin? The ClassCastException
may still occur but this is another issue that will get resolved with
#762881

Emmanuel Bourg

signature.asc
0 new messages