Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Java.net JIRA by Heikki Salokanto, 1 year ago
java.lang.NullPointerException
via GitHub by pdurbin
, 2 years ago
via Stack Overflow by brevleq
, 2 years ago
java.lang.NullPointerException
com.sun.appserv.connectors.internal.api.PoolingException: java.lang.NullPointerException	at com.sun.enterprise.resource.ConnectorXAResource.getResourceHandle(ConnectorXAResource.java:255)	at com.sun.enterprise.resource.ConnectorXAResource.end(ConnectorXAResource.java:159)	at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified.delistResource(JavaEETransactionManagerSimplified.java:528)	at com.sun.enterprise.resource.rm.SystemResourceManagerImpl.delistResource(SystemResourceManagerImpl.java:145)	at com.sun.enterprise.resource.pool.PoolManagerImpl.resourceClosed(PoolManagerImpl.java:381)	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 org.hibernate.connection.DatasourceConnectionProvider.closeConnection(DatasourceConnectionProvider.java:97)	at org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.java:474)	at org.hibernate.jdbc.ConnectionManager.aggressiveRelease(ConnectionManager.java:429)	at org.hibernate.jdbc.ConnectionManager.afterStatement(ConnectionManager.java:304)	at org.hibernate.jdbc.AbstractBatcher.closePreparedStatement(AbstractBatcher.java:572)	at org.hibernate.jdbc.AbstractBatcher.closeStatement(AbstractBatcher.java:291)	at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:307)	at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:234)	at org.hibernate.loader.Loader.doQuery(Loader.java:854)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)	at org.hibernate.loader.Loader.doList(Loader.java:2533)	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)	at org.hibernate.loader.Loader.list(Loader.java:2271)	at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:119)	at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1716)	at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:347)	at my.own.dao.package.MyOwnDAO.selaa(MyOwnDAO.java:126)	at my.own.package.MyClass.selaa(MyClass.java:42)	at sun.reflect.GeneratedMethodAccessor606.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:616)	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.GeneratedMethodAccessor117.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:616)	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.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)	at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)	at $Proxy246.selaa(Unknown Source)	at my.own.package.__EJB31_Generated__MyOwnClass__Intf____Bean__.selaa(Unknown Source)	at my.another.package.AnotherClass.onMessage(AnotherClass.java:145)	at sun.reflect.GeneratedMethodAccessor604.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:616)	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.invokeTargetBeanMethod(BaseContainer.java:4180)	at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5368)	at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)	at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:1099)	at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:81)	at com.sun.enterprise.connectors.inbound.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:171)	at $Proxy336.onMessage(Unknown Source)	at com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:260)	at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:114)	at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)	at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)