Details
-
Bug
-
Resolution: Fixed
-
Major
-
14.2.1
-
None
-
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.