| Bug #61940 | Facing "Java.sql.SQLException: No operations allowed after connection closed." | ||
|---|---|---|---|
| Submitted: | 21 Jul 2011 8:40 | Modified: | 21 Jul 2011 9:36 |
| Reporter: | Kedar Nandimath | Email Updates: | |
| Status: | Unsupported | Impact on me: | |
| Category: | Connector / J | Severity: | S2 (Serious) |
| Version: | 3.1.12 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[21 Jul 2011 8:40]
Kedar Nandimath
[21 Jul 2011 8:51]
Tonci Grgin
Hi Kedar and thanks for your report. Two things to note: o c/J 3.1 is long deprecated and, thus, not supported. o Things might be thread safe but that does not mean they are sharable across threads. So, please check your code and fix the race condition and upgrade to newer c/J.
[21 Jul 2011 9:36]
Kedar Nandimath
Hi tonci, to be on safer side i put all code in synchronized block still i got "Java.sql.SQLException: No operations allowed after connection closed." could you please tell me which c/j is recommended and what could be the cause for exception
[11 Oct 2011 12:33]
Tonci Grgin
Kedar, we always recommend latest version. As for the error, you probably work on a connection from one thread while closing same connection from other.
