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

hsqldb | txie | 1 decade 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 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 | 4 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 | 7 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