email -ext plugin: startup warnings after cleaning up

92 views
Skip to first unread message

Matthew...@diamond.ac.uk

unread,
Dec 19, 2011, 6:59:47 AM12/19/11
to jenkins...@googlegroups.com
I was previously running version 2.15 of the email-ext plugin. I ran the groovy script described in https://issues.jenkins-ci.org/browse/JENKINS-11061 (to remove $PROJECT_DEFAULT_RECIPIENTS), and then upgraded the plugin to version 2.16 (two changes at once - never a good strategy). Now, I get a stack trace on Jenkins startup (details follow). Is there a problem with the script I ran, and if so, what's the best way to fix it?
Thanks

WARNING: Skipping a non-existent field recipientList
com.thoughtworks.xstream.converters.reflection.NonExistentFieldException: No such field hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.recipientList
at com.thoughtworks.xstream.converters.reflection.FieldDictionary.field(FieldDictionary.java:106)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.getFieldType(PureJavaReflectionProvider.java:152)
at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:356)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:229)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:180)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926)
at hudson.util.XStream2.unmarshal(XStream2.java:91)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
at hudson.XmlFile.unmarshal(XmlFile.java:156)
at hudson.model.Descriptor.load(Descriptor.java:759)
at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.<init>(ExtendedEmailPublisherDescriptor.java:273)
at hudson.plugins.emailext.ExtendedEmailPublisher.<clinit>(ExtendedEmailPublisher.java:463)
at hudson.plugins.emailext.EmailExtensionPlugin.addEmailTriggerPlugin(EmailExtensionPlugin.java:101)
at hudson.plugins.emailext.EmailExtensionPlugin.start(EmailExtensionPlugin.java:80)
at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:343)
at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:332)
at hudson.PluginManager$2$1$1.run(PluginManager.java:294)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:804)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
19-Dec-2011 09:50:21 hudson.model.Descriptor load
WARNING: Failed to load /scratch/jenkins_home/hudson.plugins.emailext.ExtendedEmailPublisher.xml
hudson.util.IOException2: Unable to read /scratch/jenkins_home/hudson.plugins.emailext.ExtendedEmailPublisher.xml
at hudson.XmlFile.unmarshal(XmlFile.java:160)
at hudson.model.Descriptor.load(Descriptor.java:759)
at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.<init>(ExtendedEmailPublisherDescriptor.java:273)
at hudson.plugins.emailext.ExtendedEmailPublisher.<clinit>(ExtendedEmailPublisher.java:463)
at hudson.plugins.emailext.EmailExtensionPlugin.addEmailTriggerPlugin(EmailExtensionPlugin.java:101)
at hudson.plugins.emailext.EmailExtensionPlugin.start(EmailExtensionPlugin.java:80)
at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:343)
at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:332)
at hudson.PluginManager$2$1$1.run(PluginManager.java:294)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:804)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.thoughtworks.xstream.converters.ConversionException: null : null
---- Debugging information ----
cause-exception : java.lang.NullPointerException
cause-message : null
class : hudson.plugins.emailext.ExtendedEmailPublisherDescriptor
required-type : hudson.plugins.emailext.ExtendedEmailPublisherDescriptor
path : /hudson.plugins.emailext.ExtendedEmailPublisherDescriptor
line number : 17
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926)
at hudson.util.XStream2.unmarshal(XStream2.java:91)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
at hudson.XmlFile.unmarshal(XmlFile.java:156)
... 16 more
Caused by: java.lang.NullPointerException
at hudson.diagnosis.OldDataMonitor.report(OldDataMonitor.java:178)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:270)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:180)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
... 25 more
19-Dec-2011 09:50:21 jenkins.model.Jenkins$5 runTask

<< end >>


--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

Slide

unread,
Dec 19, 2011, 9:14:59 AM12/19/11
to jenkins...@googlegroups.com

Edit config.xml and remove the recipientList item from the email-ext configuration.

Matthew...@diamond.ac.uk

unread,
Dec 19, 2011, 10:14:29 AM12/19/11
to jenkins...@googlegroups.com

I found that I also needed to remove the recipientList item from hudson.plugins.emailext.ExtendedEmailPublisher.xml, in addition to removing it from all the job config.xml’s.

Matthew

Reply all
Reply to author
Forward
0 new messages