Expected <void> or an object, but a primitive of type '%1' was returned instead

Error code -10131
Error constant EL_JAVA_EXPECTED_RETURN_OBJECT
Parameter 1 Class name.
 Probable cause