Symptom
During the New Hiring process in EC, the below Exception was thrown:
Wrapped Exception: Remote Exception: Cannot cast class com.successfactors.genericobjecttest.bean.Person$$EnhancerByCGLIB$$c503235d to class com.successfactors.person.bean.core.model.Person; nested exception is: java.lang.ClassCastException: Cannot cast class com.successfactors.genericobjecttest.bean.Person$$EnhancerByCGLIB$$c503235d to class com.successfactors.person.bean.core.model.Person
Check for the below settings in Provisioning System
( Company Settings => "Enable EP on MDF" )
Uncheck "Enable EP on MDF" and Save the settings.
Environment
Employee Central
SuccessFactors
Reproducing the Issue
Perform a New Hire in EC
Exception thrown:
Wrapped Exception: Remote Exception: Cannot cast class com.successfactors.genericobjecttest.bean.Person$$EnhancerByCGLIB$$c503235d to class com.successfactors.person.bean.core.model.Person; nested exception is: java.lang.ClassCastException: Cannot cast class com.successfactors.genericobjecttest.bean.Person$$EnhancerByCGLIB$$c503235d to class com.successfactors.person.bean.core.model.Person
Resolution
Check for the below settings in Provisioning System
( Company Settings => "Enable EP on MDF" )
If this option is selected, please Uncheck "Enable EP on MDF" and Save the settings.
See Also
Admin Tools - Admin Center
Employee Central
SuccessFactors
Keywords
KBA , LOD-SF-EC-HIR , Hire & Rehire Wizards , Problem