org.hibernate.exception.GenericJDBCException: could not initialize a collection: [com.test.Team.players#2457600]

Oracle Community | 843859 | 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

    could not initialize a collection+[Microsoft][ODBC SQL Server Driver]Invali

    Oracle Community | 1 decade ago | 843859
    org.hibernate.exception.GenericJDBCException: could not initialize a collection: [com.test.Team.players#2457600]
  2. 0

    could not initialize a collection+ [Microsoft][ODBC SQL Server Driver]Invalid Descrip

    Coderanch | 1 decade ago | Shridhar. Blr.
    org.hibernate.exception.GenericJDBCException: could not initialize a collection: [com.test.Team.players#2457600]
  3. 0

    Who can solve that?

    Coderanch | 9 years ago | Juan Fernandes
    org.hibernate.exception.GenericJDBCException: could not initialize a collection: <---THAT IS THE PROBLEM*****[com.visualbuilder.hibernate.User.phoneNumbers#1]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    could not initialize a collection:

    Coderanch | 9 years ago | Juan Fernandes
    org.hibernate.exception.GenericJDBCException: could not initialize a collection: [com.visualbuilder.hibernate.User.phoneNumbers#1]

    Root Cause Analysis

    1. java.sql.SQLException

      [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index

      at sun.jdbc.odbc.JdbcOdbc.createSQLException()
    2. sun.jdbc.odbc
      JdbcOdbcResultSet.getLong
      1. sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
      2. sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
      3. sun.jdbc.odbc.JdbcOdbc.SQLGetDataDouble(JdbcOdbc.java:3658)
      4. sun.jdbc.odbc.JdbcOdbcResultSet.getDataDouble(JdbcOdbcResultSet.java:5579)
      5. sun.jdbc.odbc.JdbcOdbcResultSet.getLong(JdbcOdbcResultSet.java:635)
      6. sun.jdbc.odbc.JdbcOdbcResultSet.getLong(JdbcOdbcResultSet.java:653)
      6 frames
    3. Hibernate
      AbstractCollectionPersister.initialize
      1. org.hibernate.type.LongType.get(LongType.java:26)
      2. org.hibernate.type.NullableType.nullSafeGet(NullableType.java:77)
      3. org.hibernate.type.NullableType.nullSafeGet(NullableType.java:68)
      4. org.hibernate.persister.collection.AbstractCollectionPersister.readKey(AbstractCollectionPersister.java:612)
      5. org.hibernate.loader.Loader.readCollectionElement(Loader.java:545)
      6. org.hibernate.loader.Loader.readCollectionElements(Loader.java:344)
      7. org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:299)
      8. org.hibernate.loader.Loader.doQuery(Loader.java:384)
      9. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:203)
      10. org.hibernate.loader.Loader.loadCollection(Loader.java:1344)
      11. org.hibernate.loader.collection.OneToManyLoader.initialize(OneToManyLoader.java:106)
      12. org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:484)
      12 frames
    4. Hibernate
      PersistentSet.toString
      1. org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
      2. org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1346)
      3. org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:170)
      4. org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:47)
      5. org.hibernate.collection.PersistentSet.toString(PersistentSet.java:221)
      5 frames
    5. Java RT
      StringBuffer.append
      1. java.lang.String.valueOf(String.java:2131)
      2. java.lang.StringBuffer.append(StringBuffer.java:370)
      2 frames
    6. com.test
      TeamPlayer.main
      1. com.test.TeamPlayer.main(TeamPlayer.java:70)
      1 frame