glassfish
  1. glassfish
  2. GLASSFISH-20329

RAR7093 : Error while cleaning up ManagedConnection

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2_b05
    • Fix Version/s: None
    • Component/s: jdbc
    • Labels:
      None
    • Environment:

      OS: Solaris 5.10 on SPARC
      JRE: 1.6.0_38 running as 32 bit (-d32 set)
      JDBC: Sybase jConnect 7.07
      DB: Sybase 15.5.0.0

      Description

      I found this issue had previously been raised, yet had been closed due to the fact that it couldn't be reproduced: http://java.net/jira/browse/GLASSFISH-16778. Since there was no further mention of the error code (RAR7093) elsewhere in JIRA I have assumed that the issue may remain.

      JDBC Connection Pool config extract from domain.xml:

      <jdbc-connection-pool connection-creation-retry-interval-in-seconds="30" datasource-classname="com.sybase.jdbc4.jdbc.SybConnectionPoolDataSource" res-type="javax.sql.ConnectionPoolDataSource" description="connection pool" associate-with-thread="true" statement-cache-size="64" name="jdbc/appPool" non-transactional-connections="true" connection-creation-retry-attempts="100" ping="true">
      <property name="DYNAMIC_PREPARE" value="true"></property>
      <property name="FAKE_METADATA" value="true"></property>
      <property name="user" value="user"></property>
      <property name="password" value="password"></property>
      <property name="BE_AS_JDBC_COMPLIANT_AS_POSSIBLE" value="true"></property>
      <property name="portNumber" value="4000"></property>
      <property name="databaseName" value="database"></property>
      <property name="serverName" value="server"></property>
      </jdbc-connection-pool>
      <jdbc-resource pool-name="jdbc/appPool" jndi-name="jdbc/appPoolDataSource"></jdbc-resource>

      The above is the configuration for just one of several pools, each backed by a different database.

      For this particular pool, each Connection obtained from the pool has AutoCommit explicitly set to true (this is a legacy app that I have severely limited scope to change). Connections are returned to the pool via a call to Connection.close(), within finally blocks. Below are the 3 sequential entries excerpted from the server.log file. The first indicates that something has gone awry and that's a separate problem for me to solve; this entry is incidental to the issue with the failure of the GlassFish JDBC pool implementation to close the Connection cleanly and is provided only for context.

      [#|2013-04-17T03:02:41.079-0400|INFO|oracle-glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=26;_ThreadName=Th
      read-3;|java.sql.SQLException: JZ006: Caught IOException: java.io.IOException: JZ0PA: The query has been cancelled and the response discarded. The
      cancel was probably issued by another statement on the connection.
      at com.sybase.jdbc4.jdbc.SybConnection.getAllExceptions(Unknown Source)
      at com.sybase.jdbc4.jdbc.SybStatement.handleSQLE(Unknown Source)
      at com.sybase.jdbc4.jdbc.SybStatement.nextResult(Unknown Source)
      at com.sybase.jdbc4.jdbc.SybStatement.nextResult(Unknown Source)
      at com.sybase.jdbc4.jdbc.SybStatement.queryLoop(Unknown Source)
      at com.sybase.jdbc4.jdbc.SybStatement.executeQuery(Unknown Source)
      at com.sybase.jdbc4.jdbc.SybPreparedStatement.executeQuery(Unknown Source)
      at com.sun.gjc.spi.jdbc40.PreparedStatementWrapper40.executeQuery(PreparedStatementWrapper40.java:642)
      at crisk.server.trades.listeners.ATFeedFXListenerBean.process(ATFeedFXListenerBean.java:55)
      at crisk.server.PollingBean.poll(PollingBean.java:21)
      at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
      at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
      at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
      at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
      at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
      at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
      at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundTimeout(SystemInterceptorProxy.java:149)
      at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
      at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
      at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
      at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
      at com.sun.ejb.containers.BaseContainer.callEJBTimeout(BaseContainer.java:4058)
      at com.sun.ejb.containers.EJBTimerService.deliverTimeout(EJBTimerService.java:1832)
      at com.sun.ejb.containers.EJBTimerService.access$100(EJBTimerService.java:108)
      at com.sun.ejb.containers.EJBTimerService$TaskExpiredWork.run(EJBTimerService.java:2646)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      #]

      [#|2013-04-17T03:02:41.108-0400|WARNING|oracle-glassfish3.1.2|javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.allocator|_Threa
      dID=26;_ThreadName=Thread-3;|RAR7093 : Error while cleaning up ManagedConnection
      java.lang.NullPointerException
      at com.sun.gjc.spi.ManagedConnection.getActualConnection(ManagedConnection.java:717)
      at com.sun.gjc.spi.ManagedConnectionFactory.resetIsolation(ManagedConnectionFactory.java:513)
      at com.sun.gjc.spi.ManagedConnection.resetConnectionProperties(ManagedConnection.java:496)
      at com.sun.gjc.spi.ManagedConnection.cleanup(ManagedConnection.java:348)
      at com.sun.enterprise.resource.allocator.AbstractConnectorAllocator.cleanup(AbstractConnectorAllocator.java:166)
      at com.sun.enterprise.resource.pool.ConnectionPool.cleanupResource(ConnectionPool.java:1082)
      at com.sun.enterprise.resource.pool.AssocWithThreadResourcePool.freeUnenlistedResource(AssocWithThreadResourcePool.java:262)
      at com.sun.enterprise.resource.pool.ConnectionPool.resourceClosed(ConnectionPool.java:1017)
      at com.sun.enterprise.resource.pool.PoolManagerImpl.putbackResourceToPool(PoolManagerImpl.java:428)
      at com.sun.enterprise.resource.pool.PoolManagerImpl.resourceClosed(PoolManagerImpl.java:382)
      at com.sun.enterprise.resource.listener.LocalTxConnectionEventListener.connectionClosed(LocalTxConnectionEventListener.java:77)
      at com.sun.gjc.spi.ManagedConnection.connectionClosed(ManagedConnection.java:784)
      at com.sun.gjc.spi.base.ConnectionHolder.close(ConnectionHolder.java:217)
      at com.sun.gjc.spi.jdbc40.ConnectionHolder40.close(ConnectionHolder40.java:587)
      at crisk.utils.jdbc.JdbcResourceUtil.cleanup(JdbcResourceUtil.java:21)
      at crisk.server.trades.listeners.ATFeedFXListenerBean.process(ATFeedFXListenerBean.java:151)
      at crisk.server.PollingBean.poll(PollingBean.java:21)
      at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
      at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
      at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
      at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
      at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
      at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
      at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundTimeout(SystemInterceptorProxy.java:149)
      at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
      at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
      at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
      at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
      at com.sun.ejb.containers.BaseContainer.callEJBTimeout(BaseContainer.java:4058)
      at com.sun.ejb.containers.EJBTimerService.deliverTimeout(EJBTimerService.java:1832)
      at com.sun.ejb.containers.EJBTimerService.access$100(EJBTimerService.java:108)
      at com.sun.ejb.containers.EJBTimerService$TaskExpiredWork.run(EJBTimerService.java:2646)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      #]

      [#|2013-04-17T03:02:41.119-0400|WARNING|oracle-glassfish3.1.2|javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.pool|_ThreadID=2
      6;_ThreadName=Thread-3;|RAR8066: Cleanup of a resource from pool [ jdbc/appPool ] failed. Exception : com.sun.appserv.connec
      tors.internal.api.PoolingException: java.lang.NullPointerException|#]

        Activity

        Hide
        jirout.jak added a comment -

        I found the same problem on GF 3.1.2.2 b5.

        I had this configuration od pool:

        <jdbc-connection-pool validation-table-name="dual" steady-pool-size="4" idle-timeout-in-seconds="600" connection-leak-reclaim="true" validate-atmost-once-period-in-seconds="60" is-isolation-level-guaranteed="false" datasource-classname="oracle.jdbc.xa.client.OracleXADataSource" max-pool-size="100" res-type="javax.sql.XADataSource" connection-leak-timeout-in-seconds="120" name="sdp2RwOraPool" is-connection-validation-required="true" transaction-isolation-level="read-committed">
        <property name="user" value="sdp2_prod"></property>
        <property name="url" value="jdbc:oracle:thin:@zsdpdb01.sdp.local:1521:sdp"></property>
        <property name="password" value="sdp2_prod"></property>
        <property name="TestConnectionsOnReserve" value="false"></property>
        <property name="TestConnectionsOnRelease" value="false"></property>
        </jdbc-connection-pool>

        Probably it is related to higher load od application server. It seems, that reaised randomly when the load of AS is high. Here is detailed message:

        [#|2013-09-09T09:20:51.928+0200|WARNING|glassfish3.1.2|javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.pool|_ThreadID=33;_ThreadName=Thread-2;|A potential connection leak detected for connection pool sdp2RwOraPool. The stack trace of the thread is provided below :
        com.sun.enterprise.resource.pool.ConnectionPool.setResourceStateToBusy(ConnectionPool.java:324)
        com.sun.enterprise.resource.pool.ConnectionPool.getResourceFromTransaction(ConnectionPool.java:603)
        com.sun.enterprise.resource.pool.ConnectionPool.internalGetResource(ConnectionPool.java:515)
        com.sun.enterprise.resource.pool.ConnectionPool.getResource(ConnectionPool.java:381)
        com.sun.enterprise.resource.pool.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:245)
        com.sun.enterprise.resource.pool.PoolManagerImpl.getResource(PoolManagerImpl.java:170)
        com.sun.enterprise.connectors.ConnectionManagerImpl.getResource(ConnectionManagerImpl.java:332)
        com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:301)
        com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:190)
        com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
        com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:160)
        com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:113)
        org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:46)
        org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
        org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
        org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
        org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573)
        org.hibernate.loader.Loader.doQuery(Loader.java:696)
        org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
        org.hibernate.loader.Loader.doList(Loader.java:2228)
        org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
        org.hibernate.loader.Loader.list(Loader.java:2120)
        org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
        org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
        org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
        org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
        org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
        org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67)
        cz.i.sdp.papi.ejb.dao.PohledavkaDaoBean.findPohledavkaByAkceTypIds(PohledavkaDaoBean.java:108)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
        org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
        com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
        com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
        com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
        com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
        sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
        com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
        com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
        com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
        com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89)
        $Proxy777.findPohledavkaByAkceTypIds(Unknown Source)
        cz.i.sdp.papi.action.ejb.ActionExecutorBean.applyActionWhereApplicable(ActionExecutorBean.java:336)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
        org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
        com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
        com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
        com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
        com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
        sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
        com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
        com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
        com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
        com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89)
        $Proxy582.applyActionWhereApplicable(Unknown Source)
        cz.i.sdp.papi.ejb.batch.helper.LineBatchExportImport.exportData(LineBatchExportImport.java:302)
        cz.i.sdp.papi.ejb.batch.fenix.ExportImportFenixEPSBean.exportData(ExportImportFenixEPSBean.java:94)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
        org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
        com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
        com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
        com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
        com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
        sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
        com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
        com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
        com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
        com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89)
        $Proxy493.exportData(Unknown Source)
        cz.i.sdp.sdp2.async.ejb.PapiExportDataBean.execute(PapiExportDataBean.java:49)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
        org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
        com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
        com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
        com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
        com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
        sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
        com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
        com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
        com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
        com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89)
        $Proxy925.execute(Unknown Source)
        cz.i.sdp.sdp2.async.generic.TaskProcessorAssistantBean.processRequest(TaskProcessorAssistantBean.java:57)
        sun.reflect.GeneratedMethodAccessor1565.invoke(Unknown Source)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
        org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
        com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
        com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
        cz.i.sdp.sdp2.ejb.interceptor.ExceptionInterceptor.intercept(ExceptionInterceptor.java:31)
        sun.reflect.GeneratedMethodAccessor192.invoke(Unknown Source)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
        cz.i.sdp.sdp2.ejb.interceptor.PersistenceInterceptor.intercept(PersistenceInterceptor.java:33)
        sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
        cz.i.sdp.sdp2.ejb.interceptor.LoggerInterceptor.intercept(LoggerInterceptor.java:27)
        sun.reflect.GeneratedMethodAccessor207.invoke(Unknown Source)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
        com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
        com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
        sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
        com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
        com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
        com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
        com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
        com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89)
        $Proxy702.processRequest(Unknown Source)
        cz.i.sdp.sdp2.async.mdb.BaseTaskProcessorBean.process(BaseTaskProcessorBean.java:30)
        cz.i.sdp.taskmanager.processor.AbstractTaskProcessor.processPayload(AbstractTaskProcessor.java:79)
        cz.i.sdp.taskmanager.processor.AbstractTaskProcessor.onMessage(AbstractTaskProcessor.java:51)
        sun.reflect.GeneratedMethodAccessor1508.invoke(Unknown Source)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
        org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
        com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:4180)
        com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5368)
        com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
        com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:1099)
        com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:81)
        com.sun.enterprise.connectors.inbound.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:171)
        $Proxy981.onMessage(Unknown Source)
        com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:260)
        com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:114)
        com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
        com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)

        Monitoring Statistics :

        Monitoring Statistics for
        sdp2RwOraPool|#]

        me time|#]

        n,boolean)|#]

        wn from bean
        at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:5071)
        at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4906)
        at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2045)
        at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1994)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89)
        at $Proxy777.findPohledavkaByAkceTypIds(Unknown Source)
        at cz.i.sdp.papi.action.ejb.ActionExecutorBean.applyActionWhereApplicable(ActionExecutorBean.java:336)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
        at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
        at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
        at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
        at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
        at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
        at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
        at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        .....

        [#|2013-09-09T09:21:23.442+0200|WARNING|glassfish3.1.2|javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.pool|_ThreadID=32;_ThreadName=Thread-2;|RAR8066: Cleanup of a resource from pool [ sdp2
        RwOraPool ] failed. Exception : com.sun.appserv.connectors.internal.api.PoolingException: java.lang.NullPointerException|#]

        Show
        jirout.jak added a comment - I found the same problem on GF 3.1.2.2 b5. I had this configuration od pool: <jdbc-connection-pool validation-table-name="dual" steady-pool-size="4" idle-timeout-in-seconds="600" connection-leak-reclaim="true" validate-atmost-once-period-in-seconds="60" is-isolation-level-guaranteed="false" datasource-classname="oracle.jdbc.xa.client.OracleXADataSource" max-pool-size="100" res-type="javax.sql.XADataSource" connection-leak-timeout-in-seconds="120" name="sdp2RwOraPool" is-connection-validation-required="true" transaction-isolation-level="read-committed"> <property name="user" value="sdp2_prod"></property> <property name="url" value="jdbc:oracle:thin:@zsdpdb01.sdp.local:1521:sdp"></property> <property name="password" value="sdp2_prod"></property> <property name="TestConnectionsOnReserve" value="false"></property> <property name="TestConnectionsOnRelease" value="false"></property> </jdbc-connection-pool> Probably it is related to higher load od application server. It seems, that reaised randomly when the load of AS is high. Here is detailed message: [#|2013-09-09T09:20:51.928+0200|WARNING|glassfish3.1.2|javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.pool|_ThreadID=33;_ThreadName=Thread-2;|A potential connection leak detected for connection pool sdp2RwOraPool. The stack trace of the thread is provided below : com.sun.enterprise.resource.pool.ConnectionPool.setResourceStateToBusy(ConnectionPool.java:324) com.sun.enterprise.resource.pool.ConnectionPool.getResourceFromTransaction(ConnectionPool.java:603) com.sun.enterprise.resource.pool.ConnectionPool.internalGetResource(ConnectionPool.java:515) com.sun.enterprise.resource.pool.ConnectionPool.getResource(ConnectionPool.java:381) com.sun.enterprise.resource.pool.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:245) com.sun.enterprise.resource.pool.PoolManagerImpl.getResource(PoolManagerImpl.java:170) com.sun.enterprise.connectors.ConnectionManagerImpl.getResource(ConnectionManagerImpl.java:332) com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:301) com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:190) com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165) com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:160) com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:113) org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:46) org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446) org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167) org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161) org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573) org.hibernate.loader.Loader.doQuery(Loader.java:696) org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259) org.hibernate.loader.Loader.doList(Loader.java:2228) org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125) org.hibernate.loader.Loader.list(Loader.java:2120) org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401) org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361) org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196) org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148) org.hibernate.impl.QueryImpl.list(QueryImpl.java:102) org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67) cz.i.sdp.papi.ejb.dao.PohledavkaDaoBean.findPohledavkaByAkceTypIds(PohledavkaDaoBean.java:108) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052) org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124) com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388) com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571) com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162) com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144) sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370) com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360) com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348) com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214) com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89) $Proxy777.findPohledavkaByAkceTypIds(Unknown Source) cz.i.sdp.papi.action.ejb.ActionExecutorBean.applyActionWhereApplicable(ActionExecutorBean.java:336) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052) org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124) com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388) com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571) com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162) com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144) sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370) com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360) com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348) com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214) com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89) $Proxy582.applyActionWhereApplicable(Unknown Source) cz.i.sdp.papi.ejb.batch.helper.LineBatchExportImport.exportData(LineBatchExportImport.java:302) cz.i.sdp.papi.ejb.batch.fenix.ExportImportFenixEPSBean.exportData(ExportImportFenixEPSBean.java:94) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052) org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124) com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388) com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571) com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162) com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144) sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370) com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360) com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348) com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214) com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89) $Proxy493.exportData(Unknown Source) cz.i.sdp.sdp2.async.ejb.PapiExportDataBean.execute(PapiExportDataBean.java:49) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052) org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124) com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388) com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571) com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162) com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144) sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370) com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360) com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348) com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214) com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89) $Proxy925.execute(Unknown Source) cz.i.sdp.sdp2.async.generic.TaskProcessorAssistantBean.processRequest(TaskProcessorAssistantBean.java:57) sun.reflect.GeneratedMethodAccessor1565.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052) org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124) com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388) com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571) cz.i.sdp.sdp2.ejb.interceptor.ExceptionInterceptor.intercept(ExceptionInterceptor.java:31) sun.reflect.GeneratedMethodAccessor192.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571) cz.i.sdp.sdp2.ejb.interceptor.PersistenceInterceptor.intercept(PersistenceInterceptor.java:33) sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571) cz.i.sdp.sdp2.ejb.interceptor.LoggerInterceptor.intercept(LoggerInterceptor.java:27) sun.reflect.GeneratedMethodAccessor207.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571) com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162) com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144) sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861) com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370) com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360) com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348) com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214) com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89) $Proxy702.processRequest(Unknown Source) cz.i.sdp.sdp2.async.mdb.BaseTaskProcessorBean.process(BaseTaskProcessorBean.java:30) cz.i.sdp.taskmanager.processor.AbstractTaskProcessor.processPayload(AbstractTaskProcessor.java:79) cz.i.sdp.taskmanager.processor.AbstractTaskProcessor.onMessage(AbstractTaskProcessor.java:51) sun.reflect.GeneratedMethodAccessor1508.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052) org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124) com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:4180) com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5368) com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348) com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:1099) com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:81) com.sun.enterprise.connectors.inbound.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:171) $Proxy981.onMessage(Unknown Source) com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:260) com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:114) com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497) com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540) Monitoring Statistics : Monitoring Statistics for sdp2RwOraPool|#] me time|#] n,boolean)|#] wn from bean at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:5071) at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4906) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2045) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1994) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89) at $Proxy777.findPohledavkaByAkceTypIds(Unknown Source) at cz.i.sdp.papi.action.ejb.ActionExecutorBean.applyActionWhereApplicable(ActionExecutorBean.java:336) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052) at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124) at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388) at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619) at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800) at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571) at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162) at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144) at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ..... [#|2013-09-09T09:21:23.442+0200|WARNING|glassfish3.1.2|javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.pool|_ThreadID=32;_ThreadName=Thread-2;|RAR8066: Cleanup of a resource from pool [ sdp2 RwOraPool ] failed. Exception : com.sun.appserv.connectors.internal.api.PoolingException: java.lang.NullPointerException|#]

          People

          • Assignee:
            sfelts
            Reporter:
            simon_park_java
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: