PersistentStoreCollectionSession

Help
2014-01-17
2014-01-25
  • Ruslan Vaskov
    Ruslan Vaskov
    2014-01-17

    Hi!
    What is the reason of following exception?
    It happened only once
    Error code: -458
    SQL state: S1000
    Message: java.lang.RuntimeException: unsupported internal operation: PersistentStoreCollectionSession java.lang.RuntimeException: unsupported internal operation: PersistentStoreCollectionSession
    Local message: java.lang.RuntimeException: unsupported internal operation: PersistentStoreCollectionSession java.lang.RuntimeException: unsupported internal operation: PersistentStoreCollectionSession
    Stack trace of root exception:
    java.sql.SQLException: java.lang.RuntimeException: unsupported internal operation: PersistentStoreCollectionSession java.lang.RuntimeException: unsupported internal operation: PersistentStoreCollectionSession
    at org.hsqldb.jdbc.Util.sqlException(Util.java:418)
    at org.hsqldb.jdbc.Util.sqlException(Util.java:247)
    at org.hsqldb.jdbc.JDBCStatement.fetchResult(JDBCStatement.java:1830)
    at org.hsqldb.jdbc.JDBCStatement.executeQuery(JDBCStatement.java:181)
    Query was following
    SELECT INDEX_NAME,COLUMN_NAME,CASE WHEN NON_UNIQUE='false' THEN 1 ELSE 0 END
                FROM INFORMATION_SCHEMA.SYSTEM_INDEXINFO
                WHERE TABLE_SCHEM=CURRENT_SCHEMA AND
                TABLE_NAME='SomeTable'
                ORDER BY INDEX_NAME,ORDINAL_POSITION
    Thanks.

     
  • Fred Toussi
    Fred Toussi
    2014-01-18

    It shouldn't have happened. That exception is not designed to be thrown in operation. It is used for methods that are never called or switch cases that do not exist.

     
  • Ruslan Vaskov
    Ruslan Vaskov
    2014-01-24

    another confusing exception was caught doing the same:
    Error code: -104
    SQL state: 23505
    java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; SYSTEM_INDEXINFO table: SYSTEM_INDEXINFO

     
  • Fred Toussi
    Fred Toussi
    2014-01-24

    Which version of hsqldb is this?

     
  • Ruslan Vaskov
    Ruslan Vaskov
    2014-01-25

    First time it was 2.2.9, now it is 2.3.1 (BTW, driver returns 2.3.0, is it OK?)
    I emphasize that it does not happen always - our Jenkins CI reports about this from time to time

     
  • Fred Toussi
    Fred Toussi
    2014-01-25

    I have added some synchronization to the code. Please try with the latest snapshot for version 2.3.2 from the support page on the web site and see how it goes.