• Post Reply Bookmark Topic Watch Topic
  • New Topic

ResultSet Question

 
jacq carballo
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This error came out when i called resultSet.next(). I do not know what could have caused it. Maybe someone could explain what just happened and how to take care of this error.
Thanks in advance.
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Ari
thmetic overflow error converting numeric to data type numeric.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest.processReplyToken(
Unknown Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSRequest.getRow(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplResultSet.positionCursor(Un
known Source)
at com.microsoft.jdbc.base.BaseResultSet.next(Unknown Source)
at Parse.uploadUsageRecord(ParseData.java:119)
at Parse.CheckData(ParseData.java:78)
at ParseData.main(ParseData.java:29)
 
Snigdha Solanki
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There can be serveral reasons for this exception.
Can you post your code which is throwing this exception. It will be easier to find out then.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!