0 Replies Latest reply on Jul 26, 2002 9:15 PM by Bhakta

    Cache Exception

    Bhakta Newbie

      I got the Database Connection from predifined DataSource and while executing connection.prepareStatement(sql) it is throwing below exception. It is not giving the exception everytime. sometimes it works fine.


      java.lang.NullPointerException
      at org.jboss.pool.cache.LeastRecentlyUsedCache.getObject(LeastRecentlyUsedCache.java:129)
      at org.jboss.pool.cache.LeastRecentlyUsedCache.useObject(LeastRecentlyUsedCache.java:35)
      at org.jboss.pool.jdbc.ConnectionInPool.prepareStatement(ConnectionInPool.java:430)
      at org.jboss.pool.jdbc.ConnectionInPool.prepareStatement(ConnectionInPool.java:243)
      at com.ispring.db.DatabaseResource.getPreparedStatement(DatabaseResource.java:133)
      at com.ispring.applications.db.ActionMessageDM.getAllUserDelegants(ActionMessageDM.java:2087)
      at com.ispring.applications.factory.ActionMessageEJB.getAllUserDelegants(ActionMessageEJB.java:209)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:412)
      at java.lang.reflect.Method.invoke(Native Method)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      at sun.rmi.transport.Transport$1.run(Transport.java:152)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
      at java.lang.Thread.run(Thread.java:484)