Joined: Fri Jan 13, 2012 4:46 am Posts: 2
|
Bonjour,
Cette situation est bloquante.
Que ce passe-t-il ? Que faire pour corriger ?
Voici l'Exception rencontrée aléatoirement au moment de la récupération de la collection "executions" d'un objet de la classe Execution. la librairie JAVA hibernate-core-3.5.6-Final.jar est utilisée.
Caused by: org.hibernate.HibernateException: null index column for collection: mypackage.Execution.executions at org.hibernate.persister.collection.AbstractCollectionPersister.readIndex(AbstractCollectionPersister.java:771) at org.hibernate.collection.PersistentList.readFrom(PersistentList.java:402) at org.hibernate.loader.Loader.readCollectionElement(Loader.java:1072) at org.hibernate.loader.Loader.readCollectionElements(Loader.java:690) at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:630) at org.hibernate.loader.Loader.doQuery(Loader.java:745) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270) at org.hibernate.loader.Loader.loadCollection(Loader.java:2082) at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:62) at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:628) at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:83) at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1853) at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:369) at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111) at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:134) at org.hibernate.collection.PersistentList.isEmpty(PersistentList.java:121)
Voici le mapping de l'objet Execution: <class name="mypackage.Execution" table="BN_PVM_EXEC"> <id name="id" column="DBID_"> <generator class="native" /> </id>
[... SKIP ... ]
<list name="executions" cascade="all-delete-orphan" inverse="false" fetch="subselect"> <key column="PARENT_" foreign-key="FK_EXEC_PARENT" /> <list-index column="PARENT_IDX_" /> <one-to-many class="mypackage.Execution" /> </list> <many-to-one name="parent" class="mypackage.Execution" column="PARENT_" foreign-key="FK_INTERN_EXEC_PARENT" index="IDX_INTERN_EXEC_PARENT" /> [... SKIP ... ]
</class>
|
|