Thread 1 - get stmt and resultset, use and close.
Thread 2 - get stmt and resultset - same objects based on
System.identityHashCode(obj)
java.sql.SQLException: can't get column after next() returns false
at com.caucho.jdbc.mysql.ResultSet.getBuffer(ResultSet.java:163)
at
com.caucho.jdbc.mysql.AbstractResultSet.getLong(AbstractResultSet.java:523)
at com.caucho.jdbc.mysql.ResultSet.getLong(ResultSet.java:288)
[...]
but the getLong() call is made in right after a call to resultset.next()
which returned true.
while (rs.next()) {
rs.getLong();
}
this mean that the resultset is not coherent, and I would guess not very
thread safe, as the bug occur
only during concurrent access, from what we can tell.
-- -Chris Beck - Coradiant, Inc - Research & Development - +1.514.908.6314- -- www.coradiant.com - Technical foresight driving Internet economics -- ------- This email represents my opinion, not that of Coradiant. ------- Oooh! Ahhh! That's how it always starts. Then later there's running and screaming. I am seeing exceptions being thrown with reuse of statements and resultsets (same identity hash ID) that did not occur with 0.2.7. I cannot seem to find the source for the driver. The link (http://www.caucho.com/projects/jdbc-mysql/caucho-jdbc-mysql-2.1.0.jar) from the project page (http://www.caucho.com/projects/jdbc-mysql/index.xtp) does not contain source. Neither does resin-ee-2.1.2-src.tar.gz, nor resin-2.1.2-src.tar.gz. Any ideas as to the location? -- -Chris Beck - Coradiant, Inc - Research & Development - +1.514.908.6314- -- www.coradiant.com - Technical foresight driving Internet economics -- ------- This email represents my opinion, not that of Coradiant. ------- Oooh! Ahhh! That's how it always starts. Then later there's running and screaming.Received on Fri 27 Sep 2002 12:35:49 -0700
This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:17:17 PDT