javax.persistence.PersistenceException

org.hibernate.exception.GenericJDBCException: Could not open connection

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web71

  • via GitHub by jackrabb1t
    ,
  • via GitHub by d7071
    ,
  • Stack trace

    • javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1387)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1310)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:273)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final] at org.jbpm.services.task.persistence.JPATaskPersistenceContext.queryInTransaction(JPATaskPersistenceContext.java:421)[jbpm-human-task-jpa-6.4.0.Beta1.jar:6.4.0.Beta1] at org.jbpm.services.task.commands.InitDeadlinesCommand.execute(InitDeadlinesCommand.java:52)[jbpm-human-task-core-6.4.0.Beta1.jar:6.4.0.Beta1] at org.jbpm.services.task.commands.InitDeadlinesCommand.execute(InitDeadlinesCommand.java:33)[jbpm-human-task-core-6.4.0.Beta1.jar:6.4.0.Beta1] at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65)[jbpm-human-task-core-6.4.0.Beta1.jar:6.4.0.Beta1] at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)[drools-core-6.4.0.Beta1.jar:6.4.0.Beta1] at org.jbpm.services.task.persistence.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:69)[jbpm-human-task-jpa-6.4.0.Beta1.jar:6.4.0.Beta1] at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)[drools-core-6.4.0.Beta1.jar:6.4.0.Beta1] at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73)[drools-persistence-jpa-6.4.0.Beta1.jar:6.4.0.Beta1] at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)[drools-core-6.4.0.Beta1.jar:6.4.0.Beta1] at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:82)[drools-persistence-jpa-6.4.0.Beta1.jar:6.4.0.Beta1] at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40)[jbpm-human-task-core-6.4.0.Beta1.jar:6.4.0.Beta1] at org.jbpm.services.task.impl.TaskDeadlinesServiceImpl.initialize(TaskDeadlinesServiceImpl.java:367)[jbpm-human-task-core-6.4.0.Beta1.jar:6.4.0.Beta1] at org.jbpm.services.task.HumanTaskConfigurator.getTaskService(HumanTaskConfigurator.java:157)[jbpm-human-task-core-6.4.0.Beta1.jar:6.4.0.Beta1] at org.jbpm.vertx.VerticleServiceProvider.configureServices(VerticleServiceProvider.java:161)[__vertx~38d5f586-8564-48af-b7ec-732e2e774230~__vertx/:na] at org.jbpm.vertx.VerticleServiceProvider.<init>(VerticleServiceProvider.java:72)[__vertx~38d5f586-8564-48af-b7ec-732e2e774230~__vertx/:na] at org.jbpm.vertx.VerticleServiceProvider.configure(VerticleServiceProvider.java:46)[__vertx~38d5f586-8564-48af-b7ec-732e2e774230~__vertx/:na] at org.jbpm.vertx.JbpmVerticle.start(JbpmVerticle.java:48)[__vertx~38d5f586-8564-48af-b7ec-732e2e774230~__vertx/:na] at org.vertx.java.platform.Verticle.start(Verticle.java:82)[vertx-platform-2.1.5.jar:na] at org.vertx.java.platform.impl.DefaultPlatformManager$21.run(DefaultPlatformManager.java:1758)[vertx-platform-2.1.5.jar:na] at org.vertx.java.core.impl.DefaultContext$3.run(DefaultContext.java:175)[vertx-core-2.1.5.jar:na] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:370)[netty-all-4.0.21.Final.jar:4.0.21.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)[netty-all-4.0.21.Final.jar:4.0.21.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)[netty-all-4.0.21.Final.jar:4.0.21.Final] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_45] Caused by: org.hibernate.exception.GenericJDBCException: Could not open connection at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:221)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:157)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:56)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:161)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:182)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:159)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1854)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1831)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1811)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.loader.Loader.doQuery(Loader.java:899)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:341)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.loader.Loader.doList(Loader.java:2516)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.loader.Loader.doList(Loader.java:2502)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2332)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.loader.Loader.list(Loader.java:2327)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:490)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:355)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:195)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1268)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:264)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    PizPiz
    6 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    linxiaolonglinxiaolong
    Once,
    23 more bugmates