File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "XAPool throwing NullPointerException" Watch "XAPool throwing NullPointerException" New topic
Author

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: http://aspose.com/file-tools
 
subject: XAPool throwing NullPointerException
 
Similar Threads
Why I can't catch NumberFormatException in the tableModel
yet another question about GC... does Exceptions get g. collected?
nullpointerexception
Lost properties
a mistake for bean