Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java exception (BigInteger)

Status
Not open for further replies.

sfdfsf

Civil/Environmental
Nov 2, 2005
1
Hi

I am trying to fetch numeric data from an oracle database
but I am getting this exception


??? Java exception occurred:
java.lang.NumberFormatException: For input string: "524853,"

at java.lang.NumberFormatException.forInputString(Unknown Source)

at java.lang.Integer.parseInt(Unknown Source)

at java.math.BigInteger.<init>(Unknown Source)

at java.math.BigInteger.<init>(Unknown Source)

at java.math.BigDecimal.<init>(Unknown Source)

at sun.jdbc.odbc.JdbcOdbcResultSet.getBigDecimal(Unknown Source)

at sun.jdbc.odbc.JdbcOdbcResultSet.getObject(Unknown Source)

at com.mathworks.toolbox.database.fetchTheData.dataFetch(fetchTheData.jav
a:604)
.

Error in ==> cursor.fetch at 109
dataFetched =
dataFetch(fet,resultSetMetaData,p.NullStringRead,p.NullNumberRead);

Any ideas what might be wrong?

Thank u

Kate
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor