Lucee 6.0.0.313-SNAPSHOT Error (java.util.NoSuchElementException) Message Pool exhausted

Java Stacktrace lucee.runtime.exp.NativeException: Pool exhausted
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:451)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:356)
at lucee.runtime.config.DatasourceConnPool.borrowObject(DatasourceConnPool.java:36)
at lucee.runtime.db.DatasourceManagerImpl.getConnection(DatasourceManagerImpl.java:79)
at lucee.runtime.tag.Query.executeDatasoure(Query.java:1120)
at lucee.runtime.tag.Query._doEndTag(Query.java:702)
at lucee.runtime.tag.Query.doEndTag(Query.java:567)
at components.awssecretmanager_cfc$cf.udfCall(/components/awsSecretManager.cfc:11)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:348)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:663)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1960)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1777)
at application_cfm$cf.call(/application.cfm:27)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1027)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:950)
at lucee.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:56)
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:45)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2494)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2480)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2451)
at lucee.runtime.engine.Request.exe(Request.java:45)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1218)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1164)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:764)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.util.NoSuchElementException: Pool exhausted
… 52 more

Hi @saifee and welcome. Could you please elaborate with more details about your problem than just copy pasting a stack trace?

Have you also tried a stable release of Lucee?

Related ticket in JIRA: [LDEV-1447] - Lucee

we are getting this error for a week now.
i tried to move back to stable release after i downgrade it stops working and goes back to snapshot version

The problem is application works fine after a reboot or lucee restart for sometime but we have to restart every hour or sometime earlier. It keeps showing error of Pool Exhausted

|Servlet Container |Apache Tomcat/9.0.46|
|Java |11.0.11 (AdoptOpenJDK) 64bit |
Version Lucee 6.0.0.313-SNAPSHOT

@cfmitrah that ticket is for the old implementation, 6.0 switched the the apache commons pool.

@saifee please be aware, 6.0 is really not ready for production!!!

I think you have the auto update enabled in the admin, never use that option, it’s not safe

but thanks for the bug report, can you file a new ticket (including which datasource you are using)

1 Like

i downgraded and disabled auto updates

bug filed [LDEV-4320] - Lucee

1 Like