db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl ...@apache.org>
Subject Re: Avalon-Test complains about not being able to close a DataSource
Date Sun, 06 May 2007 14:47:44 GMT
Thomas Fischer wrote:
> When I build the runtime and the org.apache.torque.avalon.AvalonTest is
> run, an exception stacktrace is printed about a NuLlPointerException at
> org.apache.commons.dbcp.datasources.SharedPoolDataSource.close(SharedPoolDataSource.java:64)
> However, the test case succeeds. Is this something that needs looking
> into, or is this an expected behaviour ?
> java.lang.NullPointerException
>         at
> org.apache.commons.dbcp.datasources.SharedPoolDataSource.close(SharedPoolDataSource.java:64)

This is an unchecked null pointer to the DS.internal object pool in
commons-dbcp 1.2.1. This probably happens because this test does not
request a connection from the data source and thus no object pool is
created. The null check is present in 1.2.2.

Bye, Thomas.

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

View raw message