-->
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.  [ 4 posts ] 
Author Message
 Post subject: Envers: ListProxy trouble
PostPosted: Fri Sep 07, 2012 3:21 am 
Newbie

Joined: Fri Sep 07, 2012 2:58 am
Posts: 2
Running envers 1.2.2.GA-hibernate-3.3

I am trying to compare different revisions (AuditQuery.forRevisionsOfEntity) of lists and I end up with IndexOutOfBoundsException every now and then.

@ManyToMany(targetEntity = ServiceProviderEB.class)
@IndexColumn(name = "priority")
public List<ServiceProvider> getServiceProviders() {
return serviceProviders;
}


java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
at java.util.ArrayList.RangeCheck(ArrayList.java:547) ~[na:1.6.0_31]
at java.util.ArrayList.set(ArrayList.java:337) ~[na:1.6.0_31]
at org.hibernate.envers.entities.mapper.relation.lazy.initializor.ListCollectionInitializor.addToCollection(ListCollectionInitializor.java:75) ~[jboss-envers-1.2.2.GA-hibernate-3.3.jar:1.2.2.GA-hibernate-3.3]
at org.hibernate.envers.entities.mapper.relation.lazy.initializor.ListCollectionInitializor.addToCollection(ListCollectionInitializor.java:39) ~[jboss-envers-1.2.2.GA-hibernate-3.3.jar:1.2.2.GA-hibernate-3.3]
at org.hibernate.envers.entities.mapper.relation.lazy.initializor.AbstractCollectionInitializor.initialize(AbstractCollectionInitializor.java:67) ~[jboss-envers-1.2.2.GA-hibernate-3.3.jar:1.2.2.GA-hibernate-3.3]
at org.hibernate.envers.entities.mapper.relation.lazy.proxy.CollectionProxy.checkInit(CollectionProxy.java:50) ~[jboss-envers-1.2.2.GA-hibernate-3.3.jar:1.2.2.GA-hibernate-3.3]
at org.hibernate.envers.entities.mapper.relation.lazy.proxy.CollectionProxy.equals(CollectionProxy.java:128) ~[jboss-envers-1.2.2.GA-hibernate-3.3.jar:1.2.2.GA-hibernate-3.3]


It seems that the excpetion is thrown when envers are trying to rebuild my lists.

Can this camparison be done? and in that case does anyone have any pointers?

Cheers

/Jesper


Top
 Profile  
 
 Post subject: Re: Envers: ListProxy trouble
PostPosted: Thu Nov 29, 2012 1:35 pm 
Newbie

Joined: Thu Nov 29, 2012 1:28 pm
Posts: 2
Hi,


Do you have solved your problem? I have exactly the same problem. If yes, could you explain it to me?

Thanks in advance.

Best regards,


Top
 Profile  
 
 Post subject: Re: Envers: ListProxy trouble
PostPosted: Fri Nov 30, 2012 2:54 am 
Newbie

Joined: Fri Sep 07, 2012 2:58 am
Posts: 2
No Im sorry lfmparente, no solution.

/Jesper


Top
 Profile  
 
 Post subject: Re: Envers: ListProxy trouble
PostPosted: Sun Dec 02, 2012 8:29 am 
Newbie

Joined: Thu Nov 29, 2012 1:28 pm
Posts: 2
Hi,


Thanks for your response.

Best regards.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.