Hi,
 
When I'm trying to close a PooledConnectionSapDB I get a
ClassCastException in close method. In the method close all the
statements should be closed. But if I debug this cannot work, because
the WeakReference in the statementContainer is of type
ClientStatementSapDB.
 
            WeakReference r =
(WeakReference)this.statementContainer.get(i);
            StatementSapDB st = (StatementSapDB)o;
             if (st != null){
                 st.close();
              }
 
I'm connecting this way:
 
ConnectionPoolDataSource = (ConnectionPoolDataSource) driver;
PooledConnection ret = theSource.getPooledConnection();
 
Driver is: com.sap.dbtech.jdbcext.ConnectionPoolDataSourceSapDB
 
Is this a bug in the driver or am I doing something wrong?
 
Greets,
  Mathias

Reply via email to