CachedConnectionStrategy throwing java.lang.NullPointerException
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BoneCP |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I am trying to use the Cached connection strategy in my app running inside quartz scheduler.
Here is my configurations to BoneCp
BoneCPConfig config = new BoneCPConfig();
//.....
config.
My app is thowing the following exception
java.lang.
at oracle.
at oracle.
at oracle.
at oracle.
at oracle.
at oracle.
at com.jolbox.
at com.xyz.
Here is my connection pool utility code to obtain connection from BoneCp
public Connection getConnection(
{
Connection connection = connectionPool.
connection.
return connection;
}
i just modified my code to check my connection object is null or not
Connection connection = connectionPool.
log.info(
ConnectionHandle handle = (ConnectionHand
Connection con = handle.
log.info(
and the results are,
ConnectionPool.
ConnectionPool.
So it is clear that, the internal connection wrapped into ConnectionHandle is null and the operation connection.
Thanks
Confirmed, but please note it's marked as very experimental at this stage.