org.hibernate.exception.GenericJDBCException: could not perform sequential read of results (forward)

Hibernate JIRA | Strong Liu | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    {quote} Result set is IDLE as you are not currently accessing a row. Description: The application has called one of the ResultSet.getXXX column-data retrieval methods, but there is no current row; the application has not called ResultSet.next(), or ResultSet.next() returned "false" to indicate that there is no data. Action: Check that rs.next() is set to "true" before calling rs.getXXX. {quote} org.hibernate.exception.GenericJDBCException: could not perform sequential read of results (forward) at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.loader.Loader.loadSequentialRowsForward(Loader.java:420) at org.hibernate.impl.FetchingScrollableResultsImpl.next(FetchingScrollableResultsImpl.java:83) at org.hibernate.test.hql.ScrollableCollectionFetchingTest.testScrollingJoinFetchesEmptyResultSet(ScrollableCollectionFetchingTest.java:67) Caused by: java.sql.SQLException: JZ0R1: Result set is IDLE as you are not currently accessing a row. at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(Unknown Source) at com.sybase.jdbc3.jdbc.SybResultSet.checkIfReadableRow(Unknown Source) at com.sybase.jdbc3.jdbc.SybResultSet.getColumn(Unknown Source) at com.sybase.jdbc3.jdbc.SybResultSet.getLong(Unknown Source) at com.sybase.jdbc3.jdbc.SybResultSet.getLong(Unknown Source) at org.hibernate.type.LongType.get(LongType.java:51) at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:184) at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:173) at org.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:1120) at org.hibernate.loader.Loader.loadSequentialRowsForward(Loader.java:409) ... 31 more

    Hibernate JIRA | 7 years ago | Strong Liu
    org.hibernate.exception.GenericJDBCException: could not perform sequential read of results (forward)
  2. 0

    {quote} Result set is IDLE as you are not currently accessing a row. Description: The application has called one of the ResultSet.getXXX column-data retrieval methods, but there is no current row; the application has not called ResultSet.next(), or ResultSet.next() returned "false" to indicate that there is no data. Action: Check that rs.next() is set to "true" before calling rs.getXXX. {quote} org.hibernate.exception.GenericJDBCException: could not perform sequential read of results (forward) at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.loader.Loader.loadSequentialRowsForward(Loader.java:420) at org.hibernate.impl.FetchingScrollableResultsImpl.next(FetchingScrollableResultsImpl.java:83) at org.hibernate.test.hql.ScrollableCollectionFetchingTest.testScrollingJoinFetchesEmptyResultSet(ScrollableCollectionFetchingTest.java:67) Caused by: java.sql.SQLException: JZ0R1: Result set is IDLE as you are not currently accessing a row. at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(Unknown Source) at com.sybase.jdbc3.jdbc.SybResultSet.checkIfReadableRow(Unknown Source) at com.sybase.jdbc3.jdbc.SybResultSet.getColumn(Unknown Source) at com.sybase.jdbc3.jdbc.SybResultSet.getLong(Unknown Source) at com.sybase.jdbc3.jdbc.SybResultSet.getLong(Unknown Source) at org.hibernate.type.LongType.get(LongType.java:51) at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:184) at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:173) at org.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:1120) at org.hibernate.loader.Loader.loadSequentialRowsForward(Loader.java:409) ... 31 more

    Hibernate JIRA | 7 years ago | Strong Liu
    org.hibernate.exception.GenericJDBCException: could not perform sequential read of results (forward)

    Root Cause Analysis

    1. java.sql.SQLException

      JZ0R1: Result set is IDLE as you are not currently accessing a row.

      at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError()
    2. com.sybase.jdbc3
      SybResultSet.getLong
      1. com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(Unknown Source)
      2. com.sybase.jdbc3.jdbc.SybResultSet.checkIfReadableRow(Unknown Source)
      3. com.sybase.jdbc3.jdbc.SybResultSet.getColumn(Unknown Source)
      4. com.sybase.jdbc3.jdbc.SybResultSet.getLong(Unknown Source)
      5. com.sybase.jdbc3.jdbc.SybResultSet.getLong(Unknown Source)
      5 frames
    3. Hibernate
      Loader.loadSequentialRowsForward
      1. org.hibernate.type.LongType.get(LongType.java:51)
      2. org.hibernate.type.NullableType.nullSafeGet(NullableType.java:184)
      3. org.hibernate.type.NullableType.nullSafeGet(NullableType.java:173)
      4. org.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:1120)
      5. org.hibernate.loader.Loader.loadSequentialRowsForward(Loader.java:409)
      6. org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
      7. org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
      8. org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
      9. org.hibernate.loader.Loader.loadSequentialRowsForward(Loader.java:420)
      9 frames
    4. Hibernate
      FetchingScrollableResultsImpl.next
      1. org.hibernate.impl.FetchingScrollableResultsImpl.next(FetchingScrollableResultsImpl.java:83)
      1 frame
    5. org.hibernate.test
      ScrollableCollectionFetchingTest.testScrollingJoinFetchesEmptyResultSet
      1. org.hibernate.test.hql.ScrollableCollectionFetchingTest.testScrollingJoinFetchesEmptyResultSet(ScrollableCollectionFetchingTest.java:67)
      1 frame