-->
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: ArrayIndexOutOfBoundsException in SessionFactory
PostPosted: Sat Nov 15, 2008 4:12 am 
Newbie

Joined: Mon Nov 03, 2008 4:07 am
Posts: 4
Hi Guys,

Since yesterday we are getting following ArrayIndexOutOfBoundsException in SessionFactoryImpl.get()

Quote:
java.lang.ArrayIndexOutOfBoundsException: -124
at org.hibernate.impl.SessionFactoryImpl.get(SessionFactoryImpl.java:339)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:411)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:834)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at org.springframework.orm.hibernate3.HibernateTemplate$33.doInHibernate(HibernateTemplate.java:901)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:356)
at org.springframework.orm.hibernate3.HibernateTemplate.findByNamedQueryAndNamedParam(HibernateTemplate.java:892)
at org.springframework.orm.hibernate3.HibernateTemplate.findByNamedQueryAndNamedParam(HibernateTemplate.java:882)


This is happening for all the master data which is marked as cacheable. All the queries on this master data have this cacheable attribute set to 'true'. There are no other related errors in the log files which can dictate the cause. I see that in sessionFactory it fails during assigning the object found from cache to the some array which maintains strong references to these objects. Not sure what it is. This is really a critical issue for us and makes the production site to go down.

It would be really great if you can provide your inputs on this.

Thanks,
Ram.


Top
 Profile  
 
 Post subject: Re: ArrayIndexOutOfBoundsException in SessionFactory
PostPosted: Thu Nov 20, 2008 6:36 pm 
Newbie

Joined: Mon Nov 03, 2008 4:07 am
Posts: 4
Update:
After the production restart, these errors are gone. But we still need to know what could be the possible reasons for this exception.

Any help is appreciated!

Thanks,
Ram.


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.