[
https://hibernate.onjira.com/browse/JPA-29?page=com.atlassian.jira.plugin...
]
Steve Ebersole closed JPA-29.
-----------------------------
Resolution: Rejected
Hibernate Throw Memory Leak error when loading 206940 entity objects
into JSF page
----------------------------------------------------------------------------------
Key: JPA-29
URL:
https://hibernate.onjira.com/browse/JPA-29
Project: Java Persistence API
Issue Type: Bug
Environment: JBoss 7.1.1
Reporter: Larry
Labels: jpa2
javax.servlet.ServletException: Java heap space
javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
root cause
java.lang.OutOfMemoryError: Java heap space
org.hibernate.type.descriptor.java.JdbcTimestampTypeDescriptor$TimestampMutabilityPlan.deepCopyNotNull(JdbcTimestampTypeDescriptor.java:51)
org.hibernate.type.descriptor.java.JdbcTimestampTypeDescriptor$TimestampMutabilityPlan.deepCopyNotNull(JdbcTimestampTypeDescriptor.java:45)
org.hibernate.type.descriptor.java.MutableMutabilityPlan.deepCopy(MutableMutabilityPlan.java:57)
org.hibernate.type.AbstractStandardBasicType.deepCopy(AbstractStandardBasicType.java:340)
org.hibernate.type.AbstractStandardBasicType.deepCopy(AbstractStandardBasicType.java:336)
org.hibernate.type.TypeHelper.deepCopy(TypeHelper.java:67)
org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:241)
org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:995)
org.hibernate.loader.Loader.doQuery(Loader.java:874)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:289)
org.hibernate.loader.Loader.doList(Loader.java:2447)
org.hibernate.loader.Loader.doList(Loader.java:2433)
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2263)
org.hibernate.loader.Loader.list(Loader.java:2258)
org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:470)
org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:355)
org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:196)
org.hibernate.internal.SessionImpl.list(SessionImpl.java:1161)
org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:252)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.orm.jpa.SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:310)
$Proxy90.getResultList(Unknown Source)
com.pimco.tc.service.EtpEmployeeTradeServiceImpl.findAll(EtpEmployeeTradeServiceImpl.java:28)
com.pimco.tc.jsf.bean.EmployeeTradeBean.getJpaAllEmployeeTrades(EmployeeTradeBean.java:65)
com.pimco.tc.jsf.bean.EmployeeTradeBean.<init>(EmployeeTradeBean.java:35)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira