oracle.jbo.domain.Number cannot be cast to java.lang.String

This issues comes when the Attribute is defined as String in the Entity Object (EO) and View Object (VO) but we are passing the Number value at the run time to the View Object

Possible Solution:  convert the type of attribute from Number to String

String strEmpNo=null;

Number varEmpNo= (Number) EmployeeCurrRow.getAttribute(“EmpNum”);

strEmpNo= varEmpNo.toString();