The moose likes JDBC and Relational Databases and the fly likes XAPool throwing NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "XAPool throwing NullPointerException" Watch "XAPool throwing NullPointerException" New topic

XAPool throwing NullPointerException

Bhupinder Dhillon
Ranch Hand

Joined: Oct 12, 2000
Posts: 124
I hope someone has used this pool manager before and can help me. I'm trying to create a GenericPool for XADataSource but it's throwing NullPointerException at pool.start(). Here's what I've got so far:

It's supposed to work like this:
Create XADataSource
Create StandardXAPoolDataSource and pass the XADataSource to it
Create a GenericPool and pass the StandardXAPoolDataSource to constructor
Start the pool
That's all there should be but I can't figure out where I'm going wrong. Here's the API docs for the pool XAPool 1.3
I agree. Here's the link:
subject: XAPool throwing NullPointerException
It's not a secret anymore!