In a WebLogic container...we are running out of Hibernate Sessions and experiencing the exception below:
com.level3.sldb.common.SLDBException: Error calling getCustomerProfileValues from SomaManager.java.util.NoSuchElementException at java.util.HashMap$HashIterator.nextEntry(HashMap.j ava:765) at java.util.HashMap$ValueIterator.next(HashMap.java: 792) at org.springframework.orm.hibernate.SessionHolder.ge tAnySession(SessionHolder.java:70) at org.springframework.orm.hibernate.SessionFactoryUt ils.getSession(SessionFactoryUtils.java:293) at org.springframework.orm.hibernate.SessionFactoryUt ils.getSession(SessionFactoryUtils.java:248) at org.springframework.orm.hibernate.SessionFactoryUt ils.getSession(SessionFactoryUtils.java:205) at org.springframework.orm.hibernate.HibernateTemplat e.execute(HibernateTemplate.java:191) at org.springframework.orm.hibernate.HibernateTemplat e.saveOrUpdate(HibernateTemplate.java:341) at com.level3.sldb.framework.dao.DAOAudit.storeAuditC orrelation(DAOAudit.java:30) at com.level3.sldb.spring.interceptor.AuditIntercepto r.invoke(AuditInterceptor.java:82) a
--------------------------------------------------------------------
I am using EJB - Spring/Hibernate. Configuration Below:
<!-- Hibernate Session Factory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSess ionFactoryBean">
<property name="dataSource"><ref bean="dataSource"/></property>
<property name="mappingResources">
<list> <value>com/level3/sldb/framework/dao/dto/AuditCorrelationDTO.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">net.sf.hibernate.dialect.O racle9Dialect</prop>
<prop key="hibernate.transaction.manager_lookup_class">n et.sf.hibernate.transaction.WeblogicTransactionMan agerLookup</prop>
</props>
</property>
</bean>
The DataSource is a WebLogic TxJdbcDataSource.
Class File:
public class DAOAudit extends HibernateDaoSupport implements DAOAuditIF {
public void storeAuditCorrelation(AuditCorrelationDTO correlation) throws DataAccessException {
getHibernateTemplate().saveOrUpdate(correlation);
}
Thanks in advance.


Reply With Quote