-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: AbstractCollectionPersister null index column for collection
PostPosted: Fri Jan 13, 2012 4:50 am 
Newbie

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>


Top
 Profile  
 
 Post subject: Re: AbstractCollectionPersister null index column for collection
PostPosted: Wed Jan 25, 2012 10:59 am 
Newbie

Joined: Fri Jan 13, 2012 4:46 am
Posts: 2
Bonjour,

avez-vous pu avancé sur ce sujet ?


cordialement,
Jerome


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.