How to resolve 'Failed Loading item <job name>' ?

115 views
Skip to first unread message

David Aldrich

unread,
Oct 18, 2017, 4:54:55 AM10/18/17
to jenkins...@googlegroups.com

Hi

 

I have deleted some jobs that used the deprecated multi-branch project plugin. I have also uninstalled that plugin. 

 

Since restarting the system (running Jenkins 2.85) I get exceptions for those deleted jobs:

 

Failed Loading item <job name>

com.thoughtworks.xstream.mapper.CannotResolveClassException: freestyle-multi-branch-project

 

How can I clear these?

 

(The entire exception is shown below).

 

Best regards

 

David

 

Failed Loading item <job name>
com.thoughtworks.xstream.mapper.CannotResolveClassException: freestyle-multi-branch-project
        at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:285)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43)
        at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
        at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:48)
        at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133)
        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:114)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
        at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1053)
        at hudson.XmlFile.read(XmlFile.java:150)
Caused: java.io.IOException: Unable to read /var/lib/jenkins/jobs/<job name>
        at hudson.XmlFile.read(XmlFile.java:152)
        at hudson.model.Items.load(Items.java:371)
        at jenkins.model.Jenkins$17.run(Jenkins.java:3109)
        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:1073)
        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(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

 

Daniel Beck

unread,
Oct 18, 2017, 5:02:39 AM10/18/17
to jenkins...@googlegroups.com

> On 18. Oct 2017, at 10:54, David Aldrich <David....@EMEA.NEC.COM> wrote:
>
> How can I clear these?
>

Two options:
1. Install the plugin again, delete the jobs from the UI
2. Delete the folders on disk

David Aldrich

unread,
Oct 18, 2017, 5:08:55 AM10/18/17
to jenkins...@googlegroups.com
Hi Daniel

> 1. Install the plugin again, delete the jobs from the UI 2. Delete the folders on
> disk

I did delete the jobs from the UI before removing the plugin. So I guess I need to delete them from disk. Would that be from the master at:

/var/lib/jenkins/jobs

?

David
> --
> 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/53E96B83-946B-4CAB-
> 9DAF-EDFB9C17CEBA%40beckweb.net.
> For more options, visit https://groups.google.com/d/optout.
>
>
> Click
> https://www.mailcontrol.com/sr/rKons!pA2afGX2PQPOmvUnd1S5HUtV8BW
> rYoBfncNC0nLhRZBDdNJHQIwCmkzq4eRrt8KGK6VIJzr!jqbv!p6A== to report
> this email as spam.
Reply all
Reply to author
Forward
0 new messages