I have some trouble retrieving the result of an anonymous PLSQL block in java.
Here is the block :
DECLARE
in_cnt_date DATE := \'&1\';
hv_cnt_id NUM
Remove all exception handlers from the PL/SQL code, and execute the block and you will see the exact line number where the error occurs.
Raise inside exception will never let you know the exact error details. Please read http://lalitkumarb.wordpress.com/2014/05/02/when-others-then-null-a-bug/ Focus on the RAISE part.
Once you do it, you will find that there is an data type conversion issue.