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 Oracle Community by peppeme, 1 year ago
Error in allocating a connection. Cause: In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections.
via com.br by Unknown author, 2 years ago
Error in allocating a connection. Cause: null
via Oracle Community by ekraffmiller, 7 months ago
Error in allocating a connection. Cause: Connection could not be allocated because: Failed to start database '/usr/local/glassfish/domains/domain1/lib/databases/ejbtimer', see the next exception for details.
via netbeans.org by Unknown author, 1 year ago
Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
via Oracle Community by eligetiv, 1 year ago
Error in allocating a connection. Cause: In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections.
via Stack Overflow by harikrishna
, 2 years ago
Error in allocating a connection. Cause: java.lang.IllegalStateException: Wrong XAState: 0
java.sql.SQLException: Error in allocating a connection. Cause: In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections.	at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)	at com.sun.jdo.spi.persistence.support.sqlstore.ejb.TransactionHelperImpl.getConnection(TransactionHelperImpl.java:212)	at com.sun.jdo.spi.persistence.support.sqlstore.ejb.EJBHelper.getConnection(EJBHelper.java:197)	at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.getConnectionInternal(TransactionImpl.java:1447)	at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.getConnection(TransactionImpl.java:1358)	at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.executeQuery(SQLStoreManager.java:447)	at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.retrieve(SQLStoreManager.java:376)	at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.retrieve(PersistenceManagerImpl.java:1118)	at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.doExecute(QueryImpl.java:689)	at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.executeWithArray(QueryImpl.java:607)	at com.sun.ejb.containers.TimerBean_2100919770_ConcreteImpl.ejbSelectTimersByContainer(TimerBean_2100919770_ConcreteImpl.java:1458)	at com.sun.ejb.containers.TimerBean.ejbHomeSelectTimersByContainer(TimerBean.java:665)	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 com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)	at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)	at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)	at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:242)	at undefined.$Proxy22.selectTimersByContainer(Unknown Source)	at com.sun.ejb.containers.EJBTimerService.destroyTimers(EJBTimerService.java:729)	at com.sun.ejb.containers.BaseContainer.destroyTimers(BaseContainer.java:1610)	at com.sun.ejb.containers.BaseContainer.undeploy(BaseContainer.java:2931)	at com.sun.ejb.containers.StatelessSessionContainer.undeploy(StatelessSessionContainer.java:744)	at com.sun.enterprise.server.AbstractLoader.unloadEjbs(AbstractLoader.java:411)	at com.sun.enterprise.server.ApplicationLoader.unload(ApplicationLoader.java:236)	at com.sun.enterprise.server.TomcatApplicationLoader.unload(TomcatApplicationLoader.java:213)	at com.sun.enterprise.server.ApplicationManager.applicationUndeployed(ApplicationManager.java:525)	at com.sun.enterprise.server.ApplicationManager.applicationUndeployed(ApplicationManager.java:699)	at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:930)	at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:912)	at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:461)	at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)	at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)	at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)	at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStopEvent(ServerDeploymentTarget.java:332)	at com.sun.enterprise.deployment.phasing.ApplicationStopPhase.runPhase(ApplicationStopPhase.java:136)	at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)	at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)	at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:652)	at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:699)	at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.stop(ApplicationsConfigMBean.java:767)	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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)	at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)	at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)	at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)	at undefined.$Proxy1.invoke(Unknown Source)	at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)	at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)	at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:69)	at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:155)	at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:122)	at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:193)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)	at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)	at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)	at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)