Re: [JBoss-user] Minerva and ResultSet MetaData Bug?
Well, at least you can get source! What version, BTW? Rick Gibbs wrote: Bummer, that means it might be my driver. I'm using PostgreSQL. Thanks! | -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]On Behalf Of enter name | here | Sent: Tuesday, May 15, 2001 6:26 PM | To: [EMAIL PROTECTED] | Subject: Re: [JBoss-user] Minerva and ResultSet MetaData Bug? | | | I just did the following and it worked fine with Minerva Pools and Oracle | | |Connection conn = datasource.getConnection(); |conn.setAutoCommit( true ); |PreparedStatement pstmt = conn.prepareStatement( query ); |ResultSet rs = pstmt.executeQuery(); | |boolean anyresults = false; |System.out.println( rs.getClass() ); |ResultSetMetaData md = rs.getMetaData(); |System.out.println( COL COUNT= + md.getColumnCount() ); |... blah... | | and get: | | [AVR] class org.opentools.minerva.jdbc.ResultSetInPool | [AVR] COL COUNT=2 | | | not sure what might cause that problem (one of the few I have not run into | ;) | | sorry | scott | | | - Original Message - | From: Rick Gibbs [EMAIL PROTECTED] | To: [EMAIL PROTECTED] | Sent: Tuesday, May 15, 2001 3:00 PM | Subject: [JBoss-user] Minerva and ResultSet MetaData Bug? | | | | We are getting the following exception when we try to access the | ResultSet's | metadata: | | ResultSetMetaData md = rs.getMetaData(); | int columnCount = md.getColumnCount(); | | Stack Trace: java.sql.SQLException: ResultSet has been closed! |at | | org.opentools.minerva.jdbc.ResultSetInPool.getMetaData(ResultSetIn | Pool.java: | 542) |at | | com.earthcars.core.dao.BaseDAO.constructResultFromResultSet(BaseDA | O.java:131 | ) |at com.earthcars.core.dao.BaseDAO.execute(BaseDAO.java:113) | | We aren't closing the ResultSet until after this piece of code but it | seems | that Minerva is doing that before we get a chance to get the metadata. | Has | anyone else seen this or expirenced problems with Minerva and metadata? | | Thanks, | | | Rick | | | ___ | JBoss-user mailing list | [EMAIL PROTECTED] | http://lists.sourceforge.net/lists/listinfo/jboss-user | | | ___ | JBoss-user mailing list | [EMAIL PROTECTED] | http://lists.sourceforge.net/lists/listinfo/jboss-user | ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Minerva and ResultSet MetaData Bug?
We are getting the following exception when we try to access the ResultSet's metadata: ResultSetMetaData md = rs.getMetaData(); int columnCount = md.getColumnCount(); Stack Trace: java.sql.SQLException: ResultSet has been closed! at org.opentools.minerva.jdbc.ResultSetInPool.getMetaData(ResultSetInPool.java: 542) at com.earthcars.core.dao.BaseDAO.constructResultFromResultSet(BaseDAO.java:131 ) at com.earthcars.core.dao.BaseDAO.execute(BaseDAO.java:113) We aren't closing the ResultSet until after this piece of code but it seems that Minerva is doing that before we get a chance to get the metadata. Has anyone else seen this or expirenced problems with Minerva and metadata? Thanks, Rick ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Minerva and ResultSet MetaData Bug?
On Tue, May 15, 2001 at 06:00:42PM -0400, Rick Gibbs wrote: We are getting the following exception when we try to access the ResultSet's metadata: ResultSetMetaData md = rs.getMetaData(); int columnCount = md.getColumnCount(); Stack Trace: java.sql.SQLException: ResultSet has been closed! at org.opentools.minerva.jdbc.ResultSetInPool.getMetaData(ResultSetInPool.java: 542) at com.earthcars.core.dao.BaseDAO.constructResultFromResultSet(BaseDAO.java:131 ) at com.earthcars.core.dao.BaseDAO.execute(BaseDAO.java:113) We aren't closing the ResultSet until after this piece of code but it seems that Minerva is doing that before we get a chance to get the metadata. Has anyone else seen this or expirenced problems with Minerva and metadata? Sounds like yet another Minerva bug. As this is now JBossPool, I guess we should fix these. Please log this as a bug at SourceForge and include a complete test case, if at all possible. Thanks, Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Minerva and ResultSet MetaData Bug?
I just did the following and it worked fine with Minerva Pools and Oracle Connection conn = datasource.getConnection(); conn.setAutoCommit( true ); PreparedStatement pstmt = conn.prepareStatement( query ); ResultSet rs = pstmt.executeQuery(); boolean anyresults = false; System.out.println( rs.getClass() ); ResultSetMetaData md = rs.getMetaData(); System.out.println( COL COUNT= + md.getColumnCount() ); ... blah... and get: [AVR] class org.opentools.minerva.jdbc.ResultSetInPool [AVR] COL COUNT=2 not sure what might cause that problem (one of the few I have not run into ;) sorry scott - Original Message - From: Rick Gibbs [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 3:00 PM Subject: [JBoss-user] Minerva and ResultSet MetaData Bug? We are getting the following exception when we try to access the ResultSet's metadata: ResultSetMetaData md = rs.getMetaData(); int columnCount = md.getColumnCount(); Stack Trace: java.sql.SQLException: ResultSet has been closed! at org.opentools.minerva.jdbc.ResultSetInPool.getMetaData(ResultSetInPool.java: 542) at com.earthcars.core.dao.BaseDAO.constructResultFromResultSet(BaseDAO.java:131 ) at com.earthcars.core.dao.BaseDAO.execute(BaseDAO.java:113) We aren't closing the ResultSet until after this piece of code but it seems that Minerva is doing that before we get a chance to get the metadata. Has anyone else seen this or expirenced problems with Minerva and metadata? Thanks, Rick ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Minerva and ResultSet MetaData Bug?
Bummer, that means it might be my driver. I'm using PostgreSQL. Thanks! | -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]On Behalf Of enter name | here | Sent: Tuesday, May 15, 2001 6:26 PM | To: [EMAIL PROTECTED] | Subject: Re: [JBoss-user] Minerva and ResultSet MetaData Bug? | | | I just did the following and it worked fine with Minerva Pools and Oracle | | |Connection conn = datasource.getConnection(); |conn.setAutoCommit( true ); |PreparedStatement pstmt = conn.prepareStatement( query ); |ResultSet rs = pstmt.executeQuery(); | |boolean anyresults = false; |System.out.println( rs.getClass() ); |ResultSetMetaData md = rs.getMetaData(); |System.out.println( COL COUNT= + md.getColumnCount() ); |... blah... | | and get: | | [AVR] class org.opentools.minerva.jdbc.ResultSetInPool | [AVR] COL COUNT=2 | | | not sure what might cause that problem (one of the few I have not run into | ;) | | sorry | scott | | | - Original Message - | From: Rick Gibbs [EMAIL PROTECTED] | To: [EMAIL PROTECTED] | Sent: Tuesday, May 15, 2001 3:00 PM | Subject: [JBoss-user] Minerva and ResultSet MetaData Bug? | | | | We are getting the following exception when we try to access the | ResultSet's | metadata: | | ResultSetMetaData md = rs.getMetaData(); | int columnCount = md.getColumnCount(); | | Stack Trace: java.sql.SQLException: ResultSet has been closed! |at | | org.opentools.minerva.jdbc.ResultSetInPool.getMetaData(ResultSetIn | Pool.java: | 542) |at | | com.earthcars.core.dao.BaseDAO.constructResultFromResultSet(BaseDA | O.java:131 | ) |at com.earthcars.core.dao.BaseDAO.execute(BaseDAO.java:113) | | We aren't closing the ResultSet until after this piece of code but it | seems | that Minerva is doing that before we get a chance to get the metadata. | Has | anyone else seen this or expirenced problems with Minerva and metadata? | | Thanks, | | | Rick | | | ___ | JBoss-user mailing list | [EMAIL PROTECTED] | http://lists.sourceforge.net/lists/listinfo/jboss-user | | | ___ | JBoss-user mailing list | [EMAIL PROTECTED] | http://lists.sourceforge.net/lists/listinfo/jboss-user | ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user