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 JFrog JIRA by David Causse, 1 year ago
via JFrog JIRA by David Causse, 2 years ago
via XWiki.org JIRA by Brandon Esbach, 2 years ago
via sourceforge.net by Unknown author, 2 years ago
Borrow prepareStatement from pool failed
via activemq-users by alt_alt, 2 years ago
Borrow prepareStatement from pool failed
via nabble.com by Unknown author, 2 years ago
org.apache.derby.impl.jdbc.EmbedSQLException: Java exception: '/var/lib/repository/data/db/seg0/c420.dat (Too many open files): java.io.FileNotFoundException'.	at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)	at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)	at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)	at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)	at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)	at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)	at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.(Unknown Source)	at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.(Unknown Source)	at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.(Unknown Source)	at org.apache.derby.impl.jdbc.EmbedPreparedStatement40.(Unknown Source)	at org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Unknown Source)	at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)	at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)	at org.apache.commons.dbcp.PoolingConnection.makeObject(PoolingConnection.java:285)	at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1179)	at org.apache.commons.dbcp.PoolingConnection.prepareStatement(PoolingConnection.java:107)	at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281)	at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313)	at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:356)	at org.apache.jackrabbit.core.util.db.ConnectionHelper.access$200(ConnectionHelper.java:67)	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:340)	at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:336)	at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:479)	at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:336)	at org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.existsReferencesTo(BundleDbPersistenceManager.java:1257)	at org.apache.jackrabbit.core.state.SharedItemStateManager.hasNodeReferences(SharedItemStateManager.java:356)	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.checkReferentialIntegrity(SharedItemStateManager.java:1029)	at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:576)	at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1112)	at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1142)	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)	at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)	at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)	at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:328)	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1141)	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)	at org.artifactory.jcr.JcrSession.save(JcrSession.java:164)	at org.artifactory.jcr.fs.JcrFsItem.bruteForceDelete(JcrFsItem.java:328)	at org.artifactory.jcr.fs.JcrFile.getStream(JcrFile.java:289)	at org.artifactory.repo.jcr.StoringRepoMixin.getResourceStreamHandle(StoringRepoMixin.java:405)	at org.artifactory.repo.jcr.JcrRepoBase.getResourceStreamHandle(JcrRepoBase.java:409)	at org.artifactory.repo.service.RepositoryServiceImpl.getResourceStreamHandle(RepositoryServiceImpl.java:1443)	at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)	at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:75)	at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:47)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)	at $Proxy61.getResourceStreamHandle(Unknown Source)	at org.artifactory.engine.DownloadServiceImpl.respondFoundResource(DownloadServiceImpl.java:196)	at org.artifactory.engine.DownloadServiceImpl.respond(DownloadServiceImpl.java:181)	at org.artifactory.engine.DownloadServiceImpl.process(DownloadServiceImpl.java:136)	at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)	at org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:67)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)	at $Proxy74.process(Unknown Source)	at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:117)	at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:76)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:206)	at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:116)	at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:97)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:66)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)	at java.lang.Thread.run(Thread.java:619)