ClassCastException: xx.Sample cannot be cast to xx.Sample when using Remote API
Issue
When using Remote API to invoke the process, following exception is raised:
09:33:22,824 WARN [org.drools.persistence.SingleSessionCommandService] (http-/0.0.0.0:443-11) Could not commit session: java.lang.ClassCastException: com.test.space.Sample cannot be cast to com.test.space.Sample
What is the reason for it? The FQCN of both classes is the same.
Environment
- Red Hat JBoss BPM Suite
- 6.1.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
