I am getting following error
Caused by: java.lang.IllegalArgumentException: Underflow at oracle.jdbc.driver.OraclePreparedStatement.setDoubleInternal(OraclePreparedStatement.java:6604) ~[ojdbc7-12.1.0.2.0-p0.jar:12.1.0.2.0] at oracle.jdbc.driver.OraclePreparedStatement.setDouble(OraclePreparedStatement.java:6574) ~[ojdbc7-12.1.0.2.0-p0.jar:12.1.0.2.0]*
This happens when one of the double value in my data object is null/illegal. This happens when session.flush
being called. The problem is my data object have composition of other data object and N number of collection elements.
It's difficult to find which double data member is giving the issue.
I have enabled the persistence log and not able to see the query being formed for update statement.
Don't have anything on log except the above line. I have put breakpoints on all the get member functions. The exception didnt happen when session.update
is getting called. It happens when session.flush
being called. Also sometimes I get session time out as I have huge number of data elements. So debugging all the data elements was bit difficult.
How to find which member is giving the issue ?