java.lang.RuntimeException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not prepare statement

GitHub | rferreira | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hibernate 5.2.1/JPA @GeneratedValue.AUTO cases

    GitHub | 10 months ago | rferreira
    java.lang.RuntimeException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not prepare statement
  2. 0

    GitHub comment 315#233986907

    GitHub | 9 months ago | thomasmueller
    java.lang.RuntimeException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not prepare statement
  3. 0

    Unable to start dotcms-3.2 on H2

    GitHub | 2 years ago | bryanboza
    org.h2.jdbc.JdbcSQLException: Tabla "QRTZ_TRIGGERS" no encontrada Table "QRTZ_TRIGGERS" not found; SQL statement: select * from qrtz_triggers, qrtz_cron_triggers where (qrtz_triggers.job_group='User Job' or qrtz_triggers.job_group='Recurrent Campaign') and qrtz_triggers.job_group<>'PAUSED' and qrtz_triggers.start_time < ? and qrtz_triggers.trigger_name=qrtz_cron_triggers.trigger_name and qrtz_triggers.trigger_group=qrtz_cron_triggers.trigger_group [42102-176]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    CachedRowSet Support

    Google Groups | 3 years ago | da...@dandymadeproductions.com
    org.h2.jdbc.JdbcSQLException: Column "NAME" not found; SQL statement: INSERT INTO KEY_TABLES.PUBLIC."key_table5" (name, color, price) VALUES (?, ?, ?) [42122-175]
  6. 0

    Get error after add spring-boot-starter-web in mybatis-spring-boot-starter-sample-annotation

    GitHub | 4 months ago | QiuMing
    org.h2.jdbc.JdbcSQLException: Table "CITY" not found; SQL statement: select * from city where state = ? [42102-193] ; bad SQL grammar []; nested exception is org.h2.jdbc.JdbcSQLException: Table "CITY" not found; SQL statement: select * from city where state = ? [42102-193]
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.h2.jdbc.JdbcSQLException

    Sequence "hibernate_sequence" not found; SQL statement: call next value for hibernate_sequence [90036-192]

    at org.h2.message.DbException.getJdbcSQLException()
  2. H2 Database Engine
    JdbcConnection.prepareStatement
    1. org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
    2. org.h2.message.DbException.get(DbException.java:179)
    3. org.h2.message.DbException.get(DbException.java:155)
    4. org.h2.command.Parser.readSequence(Parser.java:5438)
    5. org.h2.command.Parser.readTerm(Parser.java:2821)
    6. org.h2.command.Parser.readFactor(Parser.java:2320)
    7. org.h2.command.Parser.readSum(Parser.java:2307)
    8. org.h2.command.Parser.readConcat(Parser.java:2277)
    9. org.h2.command.Parser.readCondition(Parser.java:2127)
    10. org.h2.command.Parser.readAnd(Parser.java:2099)
    11. org.h2.command.Parser.readExpression(Parser.java:2091)
    12. org.h2.command.Parser.parseCall(Parser.java:4477)
    13. org.h2.command.Parser.parsePrepared(Parser.java:364)
    14. org.h2.command.Parser.parse(Parser.java:317)
    15. org.h2.command.Parser.parse(Parser.java:289)
    16. org.h2.command.Parser.prepareCommand(Parser.java:254)
    17. org.h2.engine.Session.prepareLocal(Session.java:560)
    18. org.h2.engine.Session.prepareCommand(Session.java:501)
    19. org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1202)
    20. org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:73)
    21. org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:290)
    21 frames
  3. HikariCP-java6
    ConnectionJavassistProxy.prepareStatement
    1. com.zaxxer.hikari.proxy.ConnectionProxy.prepareStatement(ConnectionProxy.java:263)
    2. com.zaxxer.hikari.proxy.ConnectionJavassistProxy.prepareStatement(ConnectionJavassistProxy.java)
    2 frames
  4. Hibernate
    AbstractSaveEventListener.saveWithGeneratedId
    1. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$1.doPrepare(StatementPreparerImpl.java:87)
    2. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:172)
    3. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareStatement(StatementPreparerImpl.java:72)
    4. org.hibernate.id.enhanced.SequenceStructure$1.getNextValue(SequenceStructure.java:94)
    5. org.hibernate.id.enhanced.NoopOptimizer.generate(NoopOptimizer.java:40)
    6. org.hibernate.id.enhanced.SequenceStyleGenerator.generate(SequenceStyleGenerator.java:412)
    7. org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:105)
    7 frames
  5. org.hibernate.jpa
    JpaPersistEventListener.saveWithGeneratedId
    1. org.hibernate.jpa.event.internal.core.JpaPersistEventListener.saveWithGeneratedId(JpaPersistEventListener.java:67)
    1 frame
  6. Hibernate
    SessionImpl.persist
    1. org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:189)
    2. org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:132)
    3. org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:58)
    4. org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:757)
    5. org.hibernate.internal.SessionImpl.persist(SessionImpl.java:737)
    6. org.hibernate.internal.SessionImpl.persist(SessionImpl.java:742)
    6 frames
  7. com.scanii.web
    DashboardSeleniumTest.before
    1. com.scanii.web.models.daos.AbstractDAO.persist(AbstractDAO.java:18)
    2. com.scanii.web.NoniBaseTest.lambda$createUser$0(NoniBaseTest.java:67)
    3. com.scanii.web.models.daos.AbstractDAO.commit(AbstractDAO.java:31)
    4. com.scanii.web.NoniBaseTest.createUser(NoniBaseTest.java:67)
    5. com.scanii.web.DashboardSeleniumTest.before(DashboardSeleniumTest.java:36)
    5 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  9. JUnit
    JUnitCore.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
    5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    6. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    9. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    10. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    11. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    12. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    13. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    14. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    15. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    16. org.junit.runners.Suite.runChild(Suite.java:127)
    17. org.junit.runners.Suite.runChild(Suite.java:26)
    18. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    19. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    20. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    21. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    22. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    23. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    24. org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    24 frames
  10. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    2 frames
  11. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    2 frames