-->
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.  [ 1 post ] 
Author Message
 Post subject: Concurrent Tx and Hibernate cache
PostPosted: Tue Dec 06, 2005 7:57 am 
Newbie

Joined: Tue Dec 06, 2005 7:44 am
Posts: 2
Hi,

I'm load testing an application in JTA environment, DBServer is seperate from App Server, using ehcache.

Every request results in one or more DB hits.

Sometimes i get this exception, which I'm unable to understand.

Some important property settings are:

<property name="cache.use_minimal_puts">true</property>
<property name="cache.use_second_level_cache">true</property>
<property name="cache.use_query_cache">false</property>
<property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
<property name="jdbc.use_streams_for_binary">true</property>
<property name="hibernate.connection.release_mode">auto</property>
<property name="hibernate.jdbc.batch_size">10</property>
<property name="hibernate.jdbc.batch_versioned_data">true</property>
<property name="hibernate.order_updates">true</property>


Hibernate version:3.0.5

Full stack trace of any exception that occurs:
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at org.hibernate.util.IdentityMap.entryArray(IdentityMap.java:196)
at org.hibernate.util.IdentityMap.concurrentEntries(IdentityMap.java:59)
at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:104)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:59)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:324)
at org.hibernate.transaction.CacheSynchronization.beforeCompletion(CacheSynchronization.java:58)
at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1383)
at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1075)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:296)
... 61 more


Name and version of the database you are using: SQLServer2000


I'm not sure why this could happen, may be it is because i'm using same session across transactions, but how could that happen when auto close session is enabled??

Please give your valuable input.


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

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.