Title: Jboss 2.4.6: NullPointerException in XAPoolDataSource.getConnection()

  My jboss 2.4.6 instance is running for a month or something. Since yesterday I began to face the following exceptions:

java.lang.NullPointerException
  at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:216)
  at com.tw.eazybuild.ejb.EjbUtil.getConnection(EjbUtil.java:108)
  at com.tw.eazybuild.ejb.BannerBean.ejbFindByCategoryBanners(BannerBean.java:211)
  at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod(BMPPersistenceManager.java:509)
  at org.jboss.ejb.plugins.BMPPersistenceManager.findEntities(BMPPersistenceManager.java:246)
[...]

It's here:
 [...]
212:      String user = factory.getUser();
213:      String password = factory.getPassword();
214:      String[] params = {user, password};
215:      XAConnection xaConn = (XAConnection) pool.getObject(params);
216:      return xaConn.getConnection();
                  ^^^^
 [...]

  Why can it happen? To temporary solve the problem I invoke stop/start on the XAPoolDataSource MBean. It helps for a day or so. Before I never faced the problem, and my jboss configuration has not changed since I started it month ago.


Best wishes,
  Alexei Yudichev   mailto:[EMAIL PROTECTED]

Reply via email to