This is kind of weird. Usually ( I'd say most of times ) I get this error.
Code:
org.hibernate.exception.GenericJDBCException: could not initialize a collection:
[ar.com.nextel.model.solicitudes.beans.Item.serviciosAdicionalesSoportados#1302
17]
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLSta
teConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java
:43)
at org.hibernate.loader.Loader.loadCollection(Loader.java:1992)
at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader
.java:36)
at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(Ab
stractCollectionPersister.java:565)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializ
eCollection(DefaultInitializeCollectionEventListener.java:60)
at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1716)
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPer
sistentCollection.java:344)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersisten
tCollection.java:86)
at org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:163)
at java.util.Collections$1.<init>(Collections.java:993)
at java.util.Collections$UnmodifiableCollection.iterator(Collections.java:992)
at ar.com.nextel.model.solicitudes.synchronization.changeLog.builder.ItemChange
LogEntriesBuilder.buildOneToManyChangeLogEntries(ItemChangeLogEntriesBuilder.jav
a:35)
It has never happened before. My mappings are OK.
Usually if I retrieve from DB some datas it works well but if I load the same datas with lot of more datas, the exception is thrown at some common point.
Any one got experience on this ?
Regards.