How to resolve “Invalid string or buffer length” after calling resultset.getString() connection from java to access mdb

佐手、 提交于 2019-12-12 14:44:18

问题


I am having some trouble with my java app querying an Access DB (.mdb). I am getting this error:

[Microsoft][ODBC Driver Manager] Invalid string or buffer length

but only when attempting to call resultset.getString("xxx") on certain rows. About half of the rows that I am querying process just fine but the other half give me this error. It seems like a problem with the data in the row itself but I can't quite figure out what would cause this.

来源:https://stackoverflow.com/questions/23371457/how-to-resolve-invalid-string-or-buffer-length-after-calling-resultset-getstri

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!