Hi I am using Access database and i retrieve the contents which is in "string" from the Excel sheet using ExcelApi and put into the database Production with field "decimal" type ! like this '"+Double.valueOf(rs.getString("LINE_COUNT")).doubleValue()+"','"+Double.valueOf(rs.getString("QUALITY")).doubleValue()+"' But i get an error java.lang.NullPointerException at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:9 90) at java.lang.Double.valueOf(Double.java:172) at _0002fLineCount_0002ejspLineCount_jsp_100._jspService(_0002fLineCount _0002ejspLineCount_jsp_100.java:194)
Why don't you just do '"+rs.getString("LINE_COUNT")+"','"+rs.getString("QUALITY")+"'
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus