look at this statement in your code: cstmt.setString(3,balAmt);
that sets the third parameter to balAmt but actually you only have 2 parameters in your stored procedure String sql = "{ call...