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 AppFuse JIRA by Matt Raible, 1 year ago
Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection
via AppFuse JIRA by Matt Raible, 1 year ago
Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection
via soso.io by Unknown author, 2 years ago
Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionException: JDBC begin transaction failed:
via verydemo.com by Unknown author, 1 year ago
Could not open Hibernate Session for transaction; nested exception is org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.service.jdbc.connections.spi.ConnectionProvider]
via Stack Overflow by Blitris
, 2 years ago
Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection
via iteye.com by Unknown author, 1 year ago
Could not open Hibernate Session for transaction; nested exception is java.lang.UnsupportedOperationException: The application must supply JDBC connections
java.net.ConnectException: Connection refused	at java.net.PlainSocketImpl.socketConnect(Native Method)	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)	at java.net.Socket.connect(Socket.java:579)	at java.net.Socket.connect(Socket.java:528)	at java.net.Socket.(Socket.java:425)	at java.net.Socket.(Socket.java:208)	at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)	at java.security.AccessController.doPrivileged(Native Method)	at org.apache.derby.client.net.NetAgent.(Unknown Source)	at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)	at org.apache.derby.client.am.Connection.(Unknown Source)	at org.apache.derby.client.net.NetConnection.(Unknown Source)	at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetConnection(Unknown Source)	at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)	at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)	at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)	at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)	at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:141)	at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:292)	at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:297)	at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:169)	at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:67)	at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:160)	at org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1395)	at org.springframework.orm.hibernate4.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:399)	at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)	at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:334)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)	at undefined.$Proxy112.getAllRoles(Unknown Source)	at com.najitaka.webapp.listener.StartupListener.setupContext(StartupListener.java:96)	at com.najitaka.webapp.listener.StartupListener.contextInitialized(StartupListener.java:83)	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:764)	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:406)	at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:756)	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:242)	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1221)	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699)	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454)	at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:256)	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)	at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)	at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167)	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)	at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)	at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90)	at org.eclipse.jetty.server.Server.doStart(Server.java:262)	at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)	at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:511)	at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:364)	at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:516)	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:310)	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:146)	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:211)	at org.apache.maven.cli.MavenCli.main(MavenCli.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:601)	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)