| Bug #5069 | NullPointerExcept: ResultSetMetaData.getColumnCount(ResultSetMetaData.java:315) | ||
|---|---|---|---|
| Submitted: | 17 Aug 2004 5:38 | Modified: | 21 Dec 2004 1:24 |
| Reporter: | Ken Johanson | ||
| Status: | No Feedback | ||
| Category: | Connector/J | Severity: | S2 (Serious) |
| Version: | 3.1-nightly-20040815 | OS: | |
| Assigned to: | Mark Matthews | Target Version: | |
[17 Aug 2004 5:38]
Ken Johanson
[17 Aug 2004 6:02]
Mark Matthews
Unfortunately your rough code doesn't make this repeatable (just checked, I don't get a null pointer exception with that code). My guess is you're calling getMetaData() _after_ the result set has been closed? (either explicitly, or implicitly by closing the statement that created it, or executing another query on the same statement?). I will add a check so that you get the _correct_ exception, but you will now see a 'Result set closed' exception.
[17 Aug 2004 7:07]
Ken Johanson
Right you are, it was being closed in a try-finally, on this bug and the last relating to PreparedStatement. My Aplogies, and thank you. Case closed.
