Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-836

The Job Status Store may fail to read a job status produced by a job installed with the Extension Manager

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 5.4.6
    • Job
    • None

    Description

      The following are needed in order to reproduce the problem:

      • a job that has a custom job status class. For instance the File Manager application has a PackJob that uses PackJobStatus
      • install the job using the Extension Manager in a wiki (not on farm). For instance, install the File Manager application in a given wiki
      • run the job so that a job status is created.
      • restart the wiki

      During the restart the Job Status Store component tries to repair all the job statuses and for this it needs to load them. It fails to load those that use a custom job status class provided by a job installed through EM.

      2015-07-24 13:59:46,972 [localhost-startStop-1] WARN  .x.j.i.DefaultJobStatusStorage - Failed to load job status in folder [/usr/local/xwiki-workdir/jobs/status/file-manager/4ca9c139-5d6f-a360-a5e3-6d1ab2ea6d8d] 
      com.thoughtworks.xstream.mapper.CannotResolveClassException: org.xwiki.filemanager.job.PackJobStatus
              at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1185) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1169) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1133) ~[xstream-1.4.7.jar:1.4.7]
              at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1075) ~[xstream-1.4.7.jar:1.4.7]
              at org.xwiki.job.internal.JobStatusSerializer.read(JobStatusSerializer.java:109) ~[xwiki-commons-job-5.4.6.jar:na]
              at org.xwiki.job.internal.DefaultJobStatusStorage.loadJobStatus(DefaultJobStatusStorage.java:183) [xwiki-commons-job-5.4.6.jar:na]
              at org.xwiki.job.internal.DefaultJobStatusStorage.loadStatus(DefaultJobStatusStorage.java:170) [xwiki-commons-job-5.4.6.jar:na]
              at org.xwiki.job.internal.DefaultJobStatusStorage.repairFolder(DefaultJobStatusStorage.java:137) [xwiki-commons-job-5.4.6.jar:na]
              at org.xwiki.job.internal.DefaultJobStatusStorage.repairFolder(DefaultJobStatusStorage.java:134) [xwiki-commons-job-5.4.6.jar:na]
              at org.xwiki.job.internal.DefaultJobStatusStorage.repairFolder(DefaultJobStatusStorage.java:134) [xwiki-commons-job-5.4.6.jar:na]
              at org.xwiki.job.internal.DefaultJobStatusStorage.repair(DefaultJobStatusStorage.java:123) [xwiki-commons-job-5.4.6.jar:na]
              at org.xwiki.job.internal.DefaultJobStatusStorage.initialize(DefaultJobStatusStorage.java:86) [xwiki-commons-job-5.4.6.jar:na]
              at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39) [xwiki-commons-legacy-component-default-5.4.6.jar:na]
      

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: