Using Spring 1.2.1 and oracle.jdbc.pool.OracleDataSource 10.2.0.3.0 I sometimes get a stack trace like below. I think it is caused by the connection pool being full. Does anyone know the cause for sure? Also do newer versions of spring or Oracle JDBC handle this better?
java.lang.NullPointerException at org.springframework.jdbc.core.PreparedStatementCreatorFactory$PreparedStatementCreatorImpl.createPreparedStatement(PreparedStatementCreatorFactory.java:213) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:444) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:491) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:522) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:543) at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:114) at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:124) at sps.wfds.biz.glacier.MemberDAO.create(MemberDAO.java:44) at sps.wfds.biz.glacier.MemberDAO.create(MemberDAO.java:23) at sps.wfds.biz.glacier.AbstractDAO.createAndValidate(AbstractDAO.java:22) at sps.wfds.web.interceptor.AbstractPrincipal.init(AbstractPrincipal.java:87) at sps.wfds.web.interceptor.AbstractPrincipal.getAttributes(AbstractPrincipal.java:66) at sps.wfds.web.interceptor.AbstractPrincipal.getAttribute(AbstractPrincipal.java:60) at sps.wfds.web.interceptor.AbstractPrincipal.setLocale(AbstractPrincipal.java:38) at sps.wfds.web.util.LocaleUtil.setLocale(LocaleUtil.java:24) at sps.wfds.web.interceptor.SSOPrincipal.(SSOPrincipal.java:22) at sps.wfds.web.interceptor.SSOAuthority.getPrincipal(SSOAuthority.java:18) at sps.wfds.web.interceptor.Authorization.preHandle(Authorization.java:44) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:674) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625) at org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:386) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:346) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)