org.hibernate.exception.SQLGrammarException: could not fetch initial value

hsqldb | txie | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Hibernate not able to find HSQLDB Table

    hsqldb | 1 decade ago | txie
    org.hibernate.exception.SQLGrammarException: could not fetch initial value
  2. 0

    Java hibernate save objects in different schemas which are in one database

    Stack Overflow | 5 years ago | Olzhas
    org.hibernate.exception.SQLGrammarException: could not fetch initial value for increment generator
  3. 0

    Hibernate Community • View topic - Problems running Hello World example from the book

    hibernate.org | 8 months ago
    org.hibernate.exception.SQLGrammarException: could not fetch initial value for increment generator
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate does not create table from Entity

    Stack Overflow | 3 years ago | kasiaF
    org.hibernate.exception.SQLGrammarException: could not extract ResultSet at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate. java:123) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:89) at org.hibernate.id.IncrementGenerator.initializePreviousValueHolder(IncrementGenerator.java:132)

    Root Cause Analysis

    1. org.hibernate.exception.SQLGrammarException

      could not fetch initial value

      at org.hibernate.exception.ErrorCodeConverter.convert()
    2. Hibernate
      IncrementGenerator.generate
      1. org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:70)
      2. org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
      3. org.hibernate.id.IncrementGenerator.getNext(IncrementGenerator.java:107)
      4. org.hibernate.id.IncrementGenerator.generate(IncrementGenerator.java:45)
      4 frames
    3. Hibernate
      DefaultSaveOrUpdateEventListener.onSaveOrUpdate
      1. org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:85)
      2. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:184)
      3. org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
      4. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:173)
      5. org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
      6. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:69)
      6 frames