CA Gen java.lang.ClassCastException
search cancel

CA Gen java.lang.ClassCastException

book

Article ID: 204457

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset Gen - Host Encyclopedia Gen - Run Time Distributed

Issue/Introduction

The Gen Toolset was upgraded from 8.5 to 8.6.  After changing code in a module IXXX I get the following error message when I flow from IYYY to IXXX.  I am not sure if the settings are correct.  In the error message, the current statement that is given is the end of IYYY

java.lang.ClassCastException: class invwce.IXXXISS_IA cannot be cast to class inventry.IXXXISS_IA (invwce.IXXXISS_IA and inventry.IXXXISS_IA are in unnamed module of loader 'deployment.inventry.ear.inventry.war' @42abf3bd)

 

Environment

Release : 8.62

Component : CA Gen Enterprise Java Beans

Resolution

There is a difference in java package names being used.  In the error message, one version of IXXXISS_IA has a package name of invwce and the other version of IXXXISS_IA has a package name of inventry.  The java package name needs to changed to be the same and regenerate all the necessary code.