Jenkins crashing after 1.631 update and disabling mailer

60 views
Skip to first unread message

Zach La Celle

unread,
Oct 5, 2015, 5:09:13 PM10/5/15
to Jenkins Users
I recently upgrade to 1.631, and rebooted/ran successfully.  I have also had issues with Extended Mailer Plugin emailing when it shouldn't, so I tried disabling it in the plugin list.

Now, when I restart Jenkins, I get this:

SEVERE: Failed Loading global config
java.io.IOException: Unable to read /var/lib/jenkins/config.xml
        at hudson.XmlFile.unmarshal(XmlFile.java:167)
        at jenkins.model.Jenkins$16.run(Jenkins.java:2663)
        at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
        at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
        at jenkins.model.Jenkins$7.runTask(Jenkins.java:899)
        at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
        at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
        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)
Caused by: java.lang.NoClassDefFoundError: hudson/tasks/Mailer$UserProperty
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
        at java.lang.Class.getDeclaredFields(Class.java:1811)
        at com.thoughtworks.xstream.mapper.AnnotationMapper.processTypes(AnnotationMapper.java:216)
        at com.thoughtworks.xstream.mapper.AnnotationMapper.processAnnotations(AnnotationMapper.java:182)
        at com.thoughtworks.xstream.mapper.AnnotationMapper.defaultImplementationOf(AnnotationMapper.java:141)
        at hudson.util.xstream.MapperDelegate.defaultImplementationOf(MapperDelegate.java:59)
        at com.thoughtworks.xstream.mapper.MapperWrapper.defaultImplementationOf(MapperWrapper.java:46)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:54)
        at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:352)
        at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:290)
        at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:229)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
        at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
        at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
        at hudson.util.XStream2.unmarshal(XStream2.java:113)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
        at hudson.XmlFile.unmarshal(XmlFile.java:163)
        ... 9 more
Caused by: java.lang.ClassNotFoundException: hudson.tasks.Mailer$UserProperty
        at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
        at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
        at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 31 more

The config file is present, and should be working.

Any ideas?

Victor Martinez

unread,
Oct 5, 2015, 5:29:30 PM10/5/15
to Jenkins Users
Hi,

 Are you sure the mail plugin is there? since "Caused by: java.lang.NoClassDefFoundError: hudson/tasks/Mailer$UserProperty" means that plugin is not part of the installation. A bit weird as the mail plugin is part of the jenkins default plugin list afaik. You could reinstall it and see whether it works, and that's probably the same issue you've seen with the Extended Mailer Plugin.

I hope it helps

Cheers

Zach La Celle

unread,
Oct 5, 2015, 5:48:18 PM10/5/15
to jenkins...@googlegroups.com

So I figured out how to re-enable the mailer plugin from the terminal, and it starts fine. So it looks like disabling this plugin crashes Jenkins.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/CPNM0kxeBFg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b509b343-634a-453f-bd72-db44ae83500b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Slide

unread,
Oct 5, 2015, 5:50:47 PM10/5/15
to jenkins...@googlegroups.com
If you have other plugins that use the classes from Mailer, then yes, it will definitely crash.

You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAJGGFMY%2Bm-hf2Pd6Fu__sM2yFZyi3_g319jbKMsDFyeoqODnew%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages