commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Carmichael <to...@concur.com>
Subject RE: DO NOT REPLY [Bug 24136] - ClassCastException in DriverAdap terCPDS when setPoolPreparedStatements(true)
Date Fri, 30 Jan 2004 23:02:17 GMT
With this error in the code, translates to no coverage of this feature by
anyone.  Statement pooling is a big part of improving scalability for our
application.  I am surprised that no one else takes advantage of it.  


ToddC


-----Original Message-----
From: Todd Carmichael [mailto:toddc@concur.com] 
Sent: Thursday, January 29, 2004 12:51 PM
To: 'commons-user@jakarta.apache.org'
Subject: RE: DO NOT REPLY [Bug 24136] - ClassCastException in DriverAdap
terCPDS when setPoolPreparedStatements(true)


Does anyone have a 'quick' fix for this problem?  I have the code and can
make changes on my side.  

Thanks!

ToddC


-----Original Message-----
From: bugzilla@apache.org [mailto:bugzilla@apache.org] 
Sent: Monday, December 29, 2003 4:00 AM
To: commons-dev@jakarta.apache.org
Subject: DO NOT REPLY [Bug 24136] - ClassCastException in DriverAdapterCPDS
when setPoolPreparedStatements(true)


DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24136>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24136

ClassCastException in DriverAdapterCPDS when setPoolPreparedStatements(true)





------- Additional Comments From hauser@acm.org  2003-12-29 12:00 -------
Got today's source out of CVS and just did "ant": ...
compile:

compile-test:

test:
     [java] .........................................
     [java] ----------------------------------------
     [java] BEGIN getConnection1()
...
     [java] Multithread test time = 2013 ms
     [java] .E.....................Multithread test time = 50 ms
     [java] Multithread test time = 2023 ms
     [java] ........
     [java] .........E
     [java] Time: 28.562
     [java] There were 2 errors:
     [java] 1)
testPoolPrepareStatement(org.apache.commons.dbcp.datasources.Test
SharedPoolDataSource)java.lang.ClassCastException:
org.apache.commons.dbcp.Teste rConnection
     [java]     at
org.apache.commons.dbcp.PoolablePreparedStatement.<init>(Pool
ablePreparedStatement.java:104)
     [java]     at
org.apache.commons.dbcp.cpdsadapter.PoolablePreparedStatement
Stub.<init>(PoolablePreparedStatementStub.java:89)
     [java]     at
org.apache.commons.dbcp.cpdsadapter.PooledConnectionImpl.make
Object(PooledConnectionImpl.java:311)
     [java]     at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObj
ect(GenericKeyedObjectPool.java:792)
     [java]     at
org.apache.commons.dbcp.cpdsadapter.PooledConnectionImpl.prep
areStatement(PooledConnectionImpl.java:243)
     [java]     at
org.apache.commons.dbcp.cpdsadapter.ConnectionImpl.prepareSta
tement(ConnectionImpl.java:332)
     [java]     at
org.apache.commons.dbcp.datasources.TestSharedPoolDataSource.
testPoolPrepareStatement(TestSharedPoolDataSource.java:469)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message