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.
|