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 JIRA by Etienne Morency-Bachand [X], 1 year ago
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Unknown database 'opal_data_sql123')
via JIRA by Etienne Morency-Bachand [X], 2 years ago
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Unknown database 'opal_data_sql123')
via JIRA by Ramin Haeri Azad, 1 year ago
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.atomikos.jdbc.AtomikosSQLException: Connection pool exhausted - try increasing 'maxPoolSize' and/or 'borrowConnectionTimeout' on the DataSourceBean.
via JIRA by Ramin Haeri Azad, 2 years ago
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.atomikos.jdbc.AtomikosSQLException: Connection pool exhausted - try increasing 'maxPoolSize' and/or 'borrowConnectionTimeout' on the DataSourceBean.
via GitHub by Bert-R
, 2 years ago
java.lang.ClassCastException: com.fasterxml.classmate.members.ResolvedConstructor cannot be cast to com.fasterxml.classmate.members.ResolvedParameterizedMember
via GitHub by harti2006
, 2 years ago
java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'opal_data_sql123'	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)	at com.mysql.jdbc.Util.getInstance(Util.java:386)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:928)	at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1750)	at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1290)	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2493)	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2526)	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2311)	at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:834)	at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)	at org.apache.commons.dbcp.managed.LocalXAConnectionFactory.createConnection(LocalXAConnectionFactory.java:62)	at org.apache.commons.dbcp.managed.PoolableManagedConnectionFactory.makeObject(PoolableManagedConnectionFactory.java:103)	at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)	at org.apache.commons.dbcp.managed.BasicManagedDataSource.createPoolableConnectionFactory(BasicManagedDataSource.java:196)	at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)	at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:331)	at org.obiba.opal.core.runtime.jdbc.SessionFactoryFactory.guessDialect(SessionFactoryFactory.java:81)	at org.obiba.opal.core.runtime.jdbc.SessionFactoryFactory.getSessionFactory(SessionFactoryFactory.java:75)	at org.obiba.opal.core.runtime.jdbc.SessionFactoryFactory$$FastClassByCGLIB$$d174c549.invoke()	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)	at org.obiba.opal.core.runtime.jdbc.SessionFactoryFactory$$EnhancerByCGLIB$$5d355b1e.getSessionFactory()	at org.obiba.opal.core.service.impl.DefaultDatabaseRegistry$SessionFactoryCacheLoader.load(DefaultDatabaseRegistry.java:333)	at org.obiba.opal.core.service.impl.DefaultDatabaseRegistry$SessionFactoryCacheLoader.load(DefaultDatabaseRegistry.java:328)	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)	at com.google.common.cache.LocalCache.get(LocalCache.java:3932)	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3936)	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4806)	at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4812)	at org.obiba.opal.core.service.impl.DefaultDatabaseRegistry.getSessionFactory(DefaultDatabaseRegistry.java:152)	at org.obiba.opal.core.runtime.jdbc.DatabaseSessionFactoryProvider.getSessionFactory(DatabaseSessionFactoryProvider.java:43)	at org.obiba.magma.datasource.hibernate.support.HibernateDatasourceFactory.internalCreate(HibernateDatasourceFactory.java:35)	at org.obiba.magma.AbstractDatasourceFactory.create(AbstractDatasourceFactory.java:36)	at org.obiba.magma.DefaultDatasourceRegistry.addDatasource(DefaultDatasourceRegistry.java:107)	at org.obiba.magma.security.SecuredDatasourceRegistry.addDatasource(SecuredDatasourceRegistry.java:48)	at org.obiba.magma.MagmaEngine.addDatasource(MagmaEngine.java:135)	at org.obiba.opal.project.ProjectsServiceImpl$2.doInTransaction(ProjectsServiceImpl.java:209)	at org.obiba.opal.project.ProjectsServiceImpl$2.doInTransaction(ProjectsServiceImpl.java:198)	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)	at org.obiba.opal.project.ProjectsServiceImpl.registerDatasource(ProjectsServiceImpl.java:198)	at org.obiba.opal.project.ProjectsServiceImpl.save(ProjectsServiceImpl.java:156)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)	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$1.proceedWithInvocation(TransactionInterceptor.java:96)	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at com.sun.proxy.$Proxy84.save(Unknown Source)	at org.obiba.opal.web.project.ProjectsResource.createProject(ProjectsResource.java:71)	at org.obiba.opal.web.project.ProjectsResource$$FastClassByCGLIB$$47d9e36.invoke()	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:627)	at org.obiba.opal.web.project.ProjectsResource$$EnhancerByCGLIB$$6742cb6b.createProject()	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:280)	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:234)	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:221)	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)	at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329)	at org.obiba.opal.server.httpd.AuthenticationFilter.doFilterInternal(AuthenticationFilter.java:73)	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)	at org.obiba.opal.server.httpd.OpalVersionFilter.doFilterInternal(OpalVersionFilter.java:39)	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)	at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)	at org.eclipse.jetty.server.Server.handle(Server.java:363)	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931)	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992)	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)	at java.lang.Thread.run(Thread.java:724)