fjtirado opened a new issue, #3460:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3460

   ### Describe the bug
   
   Following exception appears when a REST invocation fails. 
   
   2024-04-03 15:10:35,541 kpanchal-mac ERROR [io.undertow.request.io:48] 
(executor-thread-1) Exception handling request 
74c28029-f891-45cb-86e9-f27961104c6e-1 to /mta-analysis: 
java.lang.ClassCastException: class 
org.kie.kogito.process.ProcessInstanceExecutionException cannot be cast to 
class org.kie.kogito.process.workitem.WorkItemExecutionException 
(org.kie.kogito.process.ProcessInstanceExecutionException and 
org.kie.kogito.process.workitem.WorkItemExecutionException are in unnamed 
module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @5542c4ed)
           at 
org.kie.kogito.resource.exceptions.BaseExceptionsHandler.lambda$new$23(BaseExceptionsHandler.java:146)
           at 
org.kie.kogito.resource.exceptions.BaseExceptionsHandler.mapException(BaseExceptionsHandler.java:190)
           at 
org.kie.kogito.resource.exceptions.ProcessInstanceExecutionExceptionMapper.toResponse(ProcessInstanceExecutionExceptionMapper.java:31)
           at 
org.kie.kogito.resource.exceptions.ProcessInstanceExecutionExceptionMapper.toResponse(ProcessInstanceExecutionExceptionMapper.java:26)
           at 
org.jboss.resteasy.core.ExceptionHandler.executeExceptionMapper(ExceptionHandler.java:139)
           at 
org.jboss.resteasy.core.ExceptionHandler.unwrapException(ExceptionHandler.java:183)
           at 
org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:100)
           at 
org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:344)
           at 
org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:205)
           at 
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:452)
           at 
org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:240)
           at 
org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:154)
           at
   
   ### Expected behavior
   
   The original exception is propagated to customer, rather than a ClassCast one
   
   ### Actual behavior
   
   _No response_
   
   ### How to Reproduce?
   
   _No response_
   
   ### Output of `uname -a` or `ver`
   
   _No response_
   
   ### Output of `java -version`
   
   _No response_
   
   ### GraalVM version (if different from Java)
   
   _No response_
   
   ### Kogito version or git rev (or at least Quarkus version if you are using 
Kogito via Quarkus platform BOM)
   
   _No response_
   
   ### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
   
   _No response_
   
   ### Additional information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to