After few hours of debugging turned out, that the problem is somewhere in the 
handling of the BigDecimal values (JDBC or JBoss issue?). It was strange, that 
althogh the stacktrace pointed to makeConnection method, the problem occured in 
other methods!

Solution was:

storeAccount():
changed database column type from NUMERIC(10,2) to DECIMAL(15,2)

loadAccount():
reading decimal value as long and and converting it to BigDecimal
balance = BigDecimal.valueOf(rs.getLong(3));


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860668#3860668

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860668


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to