Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20063

Use refactoring jobs with REST API

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      When you try to start a refactoring job with REST API by calling "*/jobs" endpoint, server send HTTP 500 error "The server encountered an unexpected condition which prevented it from fulfilling the request".

      The logs record this error :

      AVERTISSEMENT: Exception or error caught by status service

      java.lang.ClassCastException: class org.xwiki.job.DefaultRequest cannot be cast to class org.xwiki.refactoring.job.EntityRequest (org.xwiki.job.DefaultRequest and org.xwiki.refactoring.job.EntityRequest are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @4102b1b1)

       

      According to tmortagne "it seems to be a common mistake among the refactoring/* jobs". Refer to this topic on forum.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            Vayarda Jérôme
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: