This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am developing a portlet application which will show my database table("OrderData") to the user.
to accomplish this i am retrieving all the table rows and adding them to a HashTable(HashTable<String ,String>).There are some columns in my table which are of float datatype e.g price. I am getting price from the result set as getDouble and then converting it to string to strore it into hashtable.
When i run my application,it works fine and shows all the table data to the user,but after some time(after 1-2 hours) when database table grows my price field gets truncated on screen and shows invalid values. If i restart my Server(jetspeed) then problem gets resolved but reoccurs after 1-2 hours.