473,395 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

"out of memory" error

Hello,

I have a Java web application using Hibernate to connect to a PostgreSQL
backend. I am seeing the below stack trace during processing of a set
of data consisting of around 1000 objects; for a 200 object set I don't
see the exception.

I believe the salient point is the Out Of Memory bit - marked below by
*****'s
The fact that this exception occurs during a call to
org.postgresql.util.PSQLException.parseServerError () seems disturbing too.

* the JVM or servlet container might be out of memory, however the db is
on a different machine than the server so this doesn't seem likely

* Postgres might be out of memory. How would I check for this?
Subsequent requests go through just fine, as do any requests I make
directly using psql.

* something Else is happening

Any advice on how to attack this issue would be much appreciated!

Rachel McConnell
WARN [ SystemErrorInterceptor ] - java.util.NoSuchElementException
java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java: 426)
at java.util.Collections$6.nextElement(Collections.ja va:2479)
at
com.enginegreen.denali.interceptor.SystemErrorInte rceptor.intercept(SystemErrorInterceptor.java:89)
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)
at
com.opensymphony.xwork.interceptor.TimerIntercepto r.intercept(TimerInterceptor.java:62)
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)
at
com.opensymphony.xwork.DefaultActionProxy.execute( DefaultActionProxy.java:116)
at
com.opensymphony.webwork.dispatcher.ServletDispatc her.serviceAction(ServletDispatcher.java:182)
at
com.opensymphony.webwork.dispatcher.ServletDispatc her.service(ServletDispatcher.java:162)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter (FilterChainServlet.java:96)
at
com.enginegreen.denali.chrome.filter.ChromeFilter. doFilter(ChromeFilter.java:57)
at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)
at
com.enginegreen.denali.interceptor.HibernateFilter .doFilter(HibernateFilter.java:42)
at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)
at
com.enginegreen.denali.action.DenaliFilter.doFilte r(DenaliFilter.java:28)
at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)
at com.caucho.server.http.Invocation.service(Invocati on.java:315)
at
com.caucho.server.http.CacheInvocation.service(Cac heInvocation.java:135)
at
com.caucho.server.http.RunnerRequest.handleRequest (RunnerRequest.java:346)
at
com.caucho.server.http.RunnerRequest.handleConnect ion(RunnerRequest.java:274)
at com.caucho.server.TcpConnection.run(TcpConnection. java:139)
at java.lang.Thread.run(Thread.java:534)
WARN [ SystemErrorInterceptor ] -
com.enginegreen.denali.persistence.PersistenceExce ption:
net.sf.hibernate.JDBCException: could not initialize collection:
[com.enginegreen.ledger.model.InvoiceSummary.orderS ummarySet#78828]
at
com.enginegreen.ledger.invoice.impl.BillingClerkIm pl.renderInvoicesAsPDF(BillingClerkImpl.java:429)
at
com.enginegreen.denali.domain.billing.BillingManag erImpl.finalizeNextBillingPeriod(BillingManagerImp l.java:248)
at
com.enginegreen.denali.domain.billing.SecureBillin gManager.finalizeNextBillingPeriod(SecureBillingMa nager.java:96)
at
com.enginegreen.denali.action.billing.GenerateInvo icesAction.doExecute(GenerateInvoicesAction.java:1 21)
at
com.enginegreen.denali.action.WorkflowActionSuppor t.execute(WorkflowActionSupport.java:65)
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:172)
at
com.enginegreen.denali.interceptor.ActionSourceInt erceptor.intercept(ActionSourceInterceptor.java:50 )
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)
at
com.enginegreen.denali.interceptor.NullInterceptor .intercept(NullInterceptor.java:25)
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)
at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)
at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)
at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)
at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)
at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)
at
com.enginegreen.denali.interceptor.security.AdminS ecurityInterceptor.intercept(AdminSecurityIntercep tor.java:31)
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)
at
com.enginegreen.denali.interceptor.SystemErrorInte rceptor.intercept(SystemErrorInterceptor.java:47)
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)
at
com.opensymphony.xwork.interceptor.TimerIntercepto r.intercept(TimerInterceptor.java:62)
at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)
at
com.opensymphony.xwork.DefaultActionProxy.execute( DefaultActionProxy.java:116)
at
com.opensymphony.webwork.dispatcher.ServletDispatc her.serviceAction(ServletDispatcher.java:182)
at
com.opensymphony.webwork.dispatcher.ServletDispatc her.service(ServletDispatcher.java:162)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter (FilterChainServlet.java:96)
at
com.enginegreen.denali.chrome.filter.ChromeFilter. doFilter(ChromeFilter.java:57)
at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)
at
com.enginegreen.denali.interceptor.HibernateFilter .doFilter(HibernateFilter.java:42)
at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)
at
com.enginegreen.denali.action.DenaliFilter.doFilte r(DenaliFilter.java:28)
at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)
at com.caucho.server.http.Invocation.service(Invocati on.java:315)
at
com.caucho.server.http.CacheInvocation.service(Cac heInvocation.java:135)
at
com.caucho.server.http.RunnerRequest.handleRequest (RunnerRequest.java:346)
at
com.caucho.server.http.RunnerRequest.handleConnect ion(RunnerRequest.java:274)
at com.caucho.server.TcpConnection.run(TcpConnection. java:139)
at java.lang.Thread.run(Thread.java:534)
Caused by: net.sf.hibernate.JDBCException: could not initialize
collection:
[com.enginegreen.ledger.model.InvoiceSummary.orderS ummarySet#78828]
at
net.sf.hibernate.collection.AbstractCollectionPers ister.initialize(AbstractCollectionPersister.java: 287)
at
net.sf.hibernate.impl.SessionImpl.initializeCollec tion(SessionImpl.java:3226)
at
net.sf.hibernate.collection.PersistentCollection.f orceInitialization(PersistentCollection.java:340)
at
net.sf.hibernate.impl.SessionImpl.initializeNonLaz yCollections(SessionImpl.java:3089)
at
net.sf.hibernate.loader.Loader.doQueryAndInitializ eNonLazyCollections(Loader.java:138)
at net.sf.hibernate.loader.Loader.doList(Loader.java: 950)
at net.sf.hibernate.loader.Loader.list(Loader.java:94 1)
at
net.sf.hibernate.hql.QueryTranslator.list(QueryTra nslator.java:834)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl .java:1512)
at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.jav a:39)
at
com.enginegreen.ledger.invoice.impl.BillingClerkIm pl.renderInvoicesAsPDF(BillingClerkImpl.java:414)
... 42 more

******

Caused by: org.postgresql.util.PSQLException: ERROR: out of memory

at
org.postgresql.util.PSQLException.parseServerError (PSQLException.java:139)
at
org.postgresql.core.QueryExecutor.executeV3(QueryE xecutor.java:154)
at
org.postgresql.core.QueryExecutor.execute(QueryExe cutor.java:101)
at org.postgresql.core.QueryExecutor.execute(QueryExe cutor.java:43)
at
org.postgresql.jdbc1.AbstractJdbc1Statement.execut e(AbstractJdbc1Statement.java:515)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execut e(AbstractJdbc2Statement.java:50)
at
org.postgresql.jdbc1.AbstractJdbc1Statement.execut eQuery(AbstractJdbc1Statement.java:231)
at
net.sf.hibernate.impl.BatcherImpl.getResultSet(Bat cherImpl.java:87)
at net.sf.hibernate.loader.Loader.getResultSet(Loader .java:795)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java :189)
at
net.sf.hibernate.loader.Loader.doQueryAndInitializ eNonLazyCollections(Loader.java:133)
at net.sf.hibernate.loader.Loader.loadCollection(Load er.java:910)
at net.sf.hibernate.loader.Loader.loadCollection(Load er.java:885)
at
net.sf.hibernate.loader.OneToManyLoader.initialize (OneToManyLoader.java:80)
at
net.sf.hibernate.collection.AbstractCollectionPers ister.initialize(AbstractCollectionPersister.java: 284)
... 52 more


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 23 '05 #1
4 6801
Rachel,

Most likely your data set coming back is too large to process all at
once. You need to set the fetch size on the statement to control the
number of records coming back per request for them.

ps.setFetchSize( 100 ); where ps is a prepared statement. The result
set will use a cursor to only bring back 100 records at a time and will
automatically fetch the next hundred until the entire result set has
been brought back.

Make sure that your JDBC statements don't have a semi colon at the end
of them otherwise the setFetchSize will be ignored and the entire result
set will be returned at once.

--sean
Rachel McConnell wrote:
Hello,

I have a Java web application using Hibernate to connect to a
PostgreSQL backend. I am seeing the below stack trace during
processing of a set of data consisting of around 1000 objects; for a
200 object set I don't see the exception.

I believe the salient point is the Out Of Memory bit - marked below by
*****'s
The fact that this exception occurs during a call to
org.postgresql.util.PSQLException.parseServerError () seems disturbing
too.

* the JVM or servlet container might be out of memory, however the db
is on a different machine than the server so this doesn't seem likely

* Postgres might be out of memory. How would I check for this?
Subsequent requests go through just fine, as do any requests I make
directly using psql.

* something Else is happening

Any advice on how to attack this issue would be much appreciated!

Rachel McConnell
WARN [ SystemErrorInterceptor ] - java.util.NoSuchElementException
java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java: 426)
at java.util.Collections$6.nextElement(Collections.ja va:2479)
at
com.enginegreen.denali.interceptor.SystemErrorInte rceptor.intercept(SystemErrorInterceptor.java:89)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.TimerIntercepto r.intercept(TimerInterceptor.java:62)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.DefaultActionProxy.execute( DefaultActionProxy.java:116)

at
com.opensymphony.webwork.dispatcher.ServletDispatc her.serviceAction(ServletDispatcher.java:182)

at
com.opensymphony.webwork.dispatcher.ServletDispatc her.service(ServletDispatcher.java:162)

at javax.servlet.http.HttpServlet.service(HttpServlet .java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter (FilterChainServlet.java:96)

at
com.enginegreen.denali.chrome.filter.ChromeFilter. doFilter(ChromeFilter.java:57)

at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)

at
com.enginegreen.denali.interceptor.HibernateFilter .doFilter(HibernateFilter.java:42)

at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)

at
com.enginegreen.denali.action.DenaliFilter.doFilte r(DenaliFilter.java:28)
at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)

at com.caucho.server.http.Invocation.service(Invocati on.java:315)
at
com.caucho.server.http.CacheInvocation.service(Cac heInvocation.java:135)
at
com.caucho.server.http.RunnerRequest.handleRequest (RunnerRequest.java:346)

at
com.caucho.server.http.RunnerRequest.handleConnect ion(RunnerRequest.java:274)

at com.caucho.server.TcpConnection.run(TcpConnection. java:139)
at java.lang.Thread.run(Thread.java:534)
WARN [ SystemErrorInterceptor ] -
com.enginegreen.denali.persistence.PersistenceExce ption:
net.sf.hibernate.JDBCException: could not initialize collection:
[com.enginegreen.ledger.model.InvoiceSummary.orderS ummarySet#78828]
at
com.enginegreen.ledger.invoice.impl.BillingClerkIm pl.renderInvoicesAsPDF(BillingClerkImpl.java:429)

at
com.enginegreen.denali.domain.billing.BillingManag erImpl.finalizeNextBillingPeriod(BillingManagerImp l.java:248)

at
com.enginegreen.denali.domain.billing.SecureBillin gManager.finalizeNextBillingPeriod(SecureBillingMa nager.java:96)

at
com.enginegreen.denali.action.billing.GenerateInvo icesAction.doExecute(GenerateInvoicesAction.java:1 21)

at
com.enginegreen.denali.action.WorkflowActionSuppor t.execute(WorkflowActionSupport.java:65)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:172)

at
com.enginegreen.denali.interceptor.ActionSourceInt erceptor.intercept(ActionSourceInterceptor.java:50 )

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.enginegreen.denali.interceptor.NullInterceptor .intercept(NullInterceptor.java:25)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.enginegreen.denali.interceptor.security.AdminS ecurityInterceptor.intercept(AdminSecurityIntercep tor.java:31)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.enginegreen.denali.interceptor.SystemErrorInte rceptor.intercept(SystemErrorInterceptor.java:47)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.TimerIntercepto r.intercept(TimerInterceptor.java:62)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.DefaultActionProxy.execute( DefaultActionProxy.java:116)

at
com.opensymphony.webwork.dispatcher.ServletDispatc her.serviceAction(ServletDispatcher.java:182)

at
com.opensymphony.webwork.dispatcher.ServletDispatc her.service(ServletDispatcher.java:162)

at javax.servlet.http.HttpServlet.service(HttpServlet .java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter (FilterChainServlet.java:96)

at
com.enginegreen.denali.chrome.filter.ChromeFilter. doFilter(ChromeFilter.java:57)

at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)

at
com.enginegreen.denali.interceptor.HibernateFilter .doFilter(HibernateFilter.java:42)

at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)

at
com.enginegreen.denali.action.DenaliFilter.doFilte r(DenaliFilter.java:28)
at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)

at com.caucho.server.http.Invocation.service(Invocati on.java:315)
at
com.caucho.server.http.CacheInvocation.service(Cac heInvocation.java:135)
at
com.caucho.server.http.RunnerRequest.handleRequest (RunnerRequest.java:346)

at
com.caucho.server.http.RunnerRequest.handleConnect ion(RunnerRequest.java:274)

at com.caucho.server.TcpConnection.run(TcpConnection. java:139)
at java.lang.Thread.run(Thread.java:534)
Caused by: net.sf.hibernate.JDBCException: could not initialize
collection:
[com.enginegreen.ledger.model.InvoiceSummary.orderS ummarySet#78828]
at
net.sf.hibernate.collection.AbstractCollectionPers ister.initialize(AbstractCollectionPersister.java: 287)

at
net.sf.hibernate.impl.SessionImpl.initializeCollec tion(SessionImpl.java:3226)

at
net.sf.hibernate.collection.PersistentCollection.f orceInitialization(PersistentCollection.java:340)

at
net.sf.hibernate.impl.SessionImpl.initializeNonLaz yCollections(SessionImpl.java:3089)

at
net.sf.hibernate.loader.Loader.doQueryAndInitializ eNonLazyCollections(Loader.java:138)

at net.sf.hibernate.loader.Loader.doList(Loader.java: 950)
at net.sf.hibernate.loader.Loader.list(Loader.java:94 1)
at
net.sf.hibernate.hql.QueryTranslator.list(QueryTra nslator.java:834)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl .java:1512)
at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.jav a:39)
at
com.enginegreen.ledger.invoice.impl.BillingClerkIm pl.renderInvoicesAsPDF(BillingClerkImpl.java:414)

... 42 more

******

Caused by: org.postgresql.util.PSQLException: ERROR: out of memory

at
org.postgresql.util.PSQLException.parseServerError (PSQLException.java:139)

at
org.postgresql.core.QueryExecutor.executeV3(QueryE xecutor.java:154)
at
org.postgresql.core.QueryExecutor.execute(QueryExe cutor.java:101)
at
org.postgresql.core.QueryExecutor.execute(QueryExe cutor.java:43)
at
org.postgresql.jdbc1.AbstractJdbc1Statement.execut e(AbstractJdbc1Statement.java:515)

at
org.postgresql.jdbc2.AbstractJdbc2Statement.execut e(AbstractJdbc2Statement.java:50)

at
org.postgresql.jdbc1.AbstractJdbc1Statement.execut eQuery(AbstractJdbc1Statement.java:231)

at
net.sf.hibernate.impl.BatcherImpl.getResultSet(Bat cherImpl.java:87)
at net.sf.hibernate.loader.Loader.getResultSet(Loader .java:795)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java :189)
at
net.sf.hibernate.loader.Loader.doQueryAndInitializ eNonLazyCollections(Loader.java:133)

at net.sf.hibernate.loader.Loader.loadCollection(Load er.java:910)
at net.sf.hibernate.loader.Loader.loadCollection(Load er.java:885)
at
net.sf.hibernate.loader.OneToManyLoader.initialize (OneToManyLoader.java:80)

at
net.sf.hibernate.collection.AbstractCollectionPers ister.initialize(AbstractCollectionPersister.java: 284)

... 52 more


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #2
Rachel,

Most likely your data set coming back is too large to process all at
once. You need to set the fetch size on the statement to control the
number of records coming back per request for them.

ps.setFetchSize( 100 ); where ps is a prepared statement. The result
set will use a cursor to only bring back 100 records at a time and will
automatically fetch the next hundred until the entire result set has
been brought back.

Make sure that your JDBC statements don't have a semi colon at the end
of them otherwise the setFetchSize will be ignored and the entire result
set will be returned at once.

--sean
Rachel McConnell wrote:
Hello,

I have a Java web application using Hibernate to connect to a
PostgreSQL backend. I am seeing the below stack trace during
processing of a set of data consisting of around 1000 objects; for a
200 object set I don't see the exception.

I believe the salient point is the Out Of Memory bit - marked below by
*****'s
The fact that this exception occurs during a call to
org.postgresql.util.PSQLException.parseServerError () seems disturbing
too.

* the JVM or servlet container might be out of memory, however the db
is on a different machine than the server so this doesn't seem likely

* Postgres might be out of memory. How would I check for this?
Subsequent requests go through just fine, as do any requests I make
directly using psql.

* something Else is happening

Any advice on how to attack this issue would be much appreciated!

Rachel McConnell
WARN [ SystemErrorInterceptor ] - java.util.NoSuchElementException
java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java: 426)
at java.util.Collections$6.nextElement(Collections.ja va:2479)
at
com.enginegreen.denali.interceptor.SystemErrorInte rceptor.intercept(SystemErrorInterceptor.java:89)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.TimerIntercepto r.intercept(TimerInterceptor.java:62)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.DefaultActionProxy.execute( DefaultActionProxy.java:116)

at
com.opensymphony.webwork.dispatcher.ServletDispatc her.serviceAction(ServletDispatcher.java:182)

at
com.opensymphony.webwork.dispatcher.ServletDispatc her.service(ServletDispatcher.java:162)

at javax.servlet.http.HttpServlet.service(HttpServlet .java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter (FilterChainServlet.java:96)

at
com.enginegreen.denali.chrome.filter.ChromeFilter. doFilter(ChromeFilter.java:57)

at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)

at
com.enginegreen.denali.interceptor.HibernateFilter .doFilter(HibernateFilter.java:42)

at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)

at
com.enginegreen.denali.action.DenaliFilter.doFilte r(DenaliFilter.java:28)
at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)

at com.caucho.server.http.Invocation.service(Invocati on.java:315)
at
com.caucho.server.http.CacheInvocation.service(Cac heInvocation.java:135)
at
com.caucho.server.http.RunnerRequest.handleRequest (RunnerRequest.java:346)

at
com.caucho.server.http.RunnerRequest.handleConnect ion(RunnerRequest.java:274)

at com.caucho.server.TcpConnection.run(TcpConnection. java:139)
at java.lang.Thread.run(Thread.java:534)
WARN [ SystemErrorInterceptor ] -
com.enginegreen.denali.persistence.PersistenceExce ption:
net.sf.hibernate.JDBCException: could not initialize collection:
[com.enginegreen.ledger.model.InvoiceSummary.orderS ummarySet#78828]
at
com.enginegreen.ledger.invoice.impl.BillingClerkIm pl.renderInvoicesAsPDF(BillingClerkImpl.java:429)

at
com.enginegreen.denali.domain.billing.BillingManag erImpl.finalizeNextBillingPeriod(BillingManagerImp l.java:248)

at
com.enginegreen.denali.domain.billing.SecureBillin gManager.finalizeNextBillingPeriod(SecureBillingMa nager.java:96)

at
com.enginegreen.denali.action.billing.GenerateInvo icesAction.doExecute(GenerateInvoicesAction.java:1 21)

at
com.enginegreen.denali.action.WorkflowActionSuppor t.execute(WorkflowActionSupport.java:65)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:172)

at
com.enginegreen.denali.interceptor.ActionSourceInt erceptor.intercept(ActionSourceInterceptor.java:50 )

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.enginegreen.denali.interceptor.NullInterceptor .intercept(NullInterceptor.java:25)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.AroundIntercept or.intercept(AroundInterceptor.java:37)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.enginegreen.denali.interceptor.security.AdminS ecurityInterceptor.intercept(AdminSecurityIntercep tor.java:31)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.enginegreen.denali.interceptor.SystemErrorInte rceptor.intercept(SystemErrorInterceptor.java:47)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.interceptor.TimerIntercepto r.intercept(TimerInterceptor.java:62)

at
com.opensymphony.xwork.DefaultActionInvocation.inv oke(DefaultActionInvocation.java:169)

at
com.opensymphony.xwork.DefaultActionProxy.execute( DefaultActionProxy.java:116)

at
com.opensymphony.webwork.dispatcher.ServletDispatc her.serviceAction(ServletDispatcher.java:182)

at
com.opensymphony.webwork.dispatcher.ServletDispatc her.service(ServletDispatcher.java:162)

at javax.servlet.http.HttpServlet.service(HttpServlet .java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter (FilterChainServlet.java:96)

at
com.enginegreen.denali.chrome.filter.ChromeFilter. doFilter(ChromeFilter.java:57)

at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)

at
com.enginegreen.denali.interceptor.HibernateFilter .doFilter(HibernateFilter.java:42)

at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)

at
com.enginegreen.denali.action.DenaliFilter.doFilte r(DenaliFilter.java:28)
at
com.caucho.server.http.FilterChainFilter.doFilter( FilterChainFilter.java:88)

at com.caucho.server.http.Invocation.service(Invocati on.java:315)
at
com.caucho.server.http.CacheInvocation.service(Cac heInvocation.java:135)
at
com.caucho.server.http.RunnerRequest.handleRequest (RunnerRequest.java:346)

at
com.caucho.server.http.RunnerRequest.handleConnect ion(RunnerRequest.java:274)

at com.caucho.server.TcpConnection.run(TcpConnection. java:139)
at java.lang.Thread.run(Thread.java:534)
Caused by: net.sf.hibernate.JDBCException: could not initialize
collection:
[com.enginegreen.ledger.model.InvoiceSummary.orderS ummarySet#78828]
at
net.sf.hibernate.collection.AbstractCollectionPers ister.initialize(AbstractCollectionPersister.java: 287)

at
net.sf.hibernate.impl.SessionImpl.initializeCollec tion(SessionImpl.java:3226)

at
net.sf.hibernate.collection.PersistentCollection.f orceInitialization(PersistentCollection.java:340)

at
net.sf.hibernate.impl.SessionImpl.initializeNonLaz yCollections(SessionImpl.java:3089)

at
net.sf.hibernate.loader.Loader.doQueryAndInitializ eNonLazyCollections(Loader.java:138)

at net.sf.hibernate.loader.Loader.doList(Loader.java: 950)
at net.sf.hibernate.loader.Loader.list(Loader.java:94 1)
at
net.sf.hibernate.hql.QueryTranslator.list(QueryTra nslator.java:834)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl .java:1512)
at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.jav a:39)
at
com.enginegreen.ledger.invoice.impl.BillingClerkIm pl.renderInvoicesAsPDF(BillingClerkImpl.java:414)

... 42 more

******

Caused by: org.postgresql.util.PSQLException: ERROR: out of memory

at
org.postgresql.util.PSQLException.parseServerError (PSQLException.java:139)

at
org.postgresql.core.QueryExecutor.executeV3(QueryE xecutor.java:154)
at
org.postgresql.core.QueryExecutor.execute(QueryExe cutor.java:101)
at
org.postgresql.core.QueryExecutor.execute(QueryExe cutor.java:43)
at
org.postgresql.jdbc1.AbstractJdbc1Statement.execut e(AbstractJdbc1Statement.java:515)

at
org.postgresql.jdbc2.AbstractJdbc2Statement.execut e(AbstractJdbc2Statement.java:50)

at
org.postgresql.jdbc1.AbstractJdbc1Statement.execut eQuery(AbstractJdbc1Statement.java:231)

at
net.sf.hibernate.impl.BatcherImpl.getResultSet(Bat cherImpl.java:87)
at net.sf.hibernate.loader.Loader.getResultSet(Loader .java:795)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java :189)
at
net.sf.hibernate.loader.Loader.doQueryAndInitializ eNonLazyCollections(Loader.java:133)

at net.sf.hibernate.loader.Loader.loadCollection(Load er.java:910)
at net.sf.hibernate.loader.Loader.loadCollection(Load er.java:885)
at
net.sf.hibernate.loader.OneToManyLoader.initialize (OneToManyLoader.java:80)

at
net.sf.hibernate.collection.AbstractCollectionPers ister.initialize(AbstractCollectionPersister.java: 284)

... 52 more


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #3


On Fri, 30 Apr 2004, Rachel McConnell wrote:
Hello,

I have a Java web application using Hibernate to connect to a PostgreSQL
backend. I am seeing the below stack trace during processing of a set
of data consisting of around 1000 objects; for a 200 object set I don't
see the exception.

I believe the salient point is the Out Of Memory bit - marked below by
*****'s
The fact that this exception occurs during a call to
org.postgresql.util.PSQLException.parseServerError () seems disturbing too.


This is a server error message (which is why the stracktrace starts at
parseServerError, although perhaps it shouldn't). This means the
postgresql server ran out of memory, but you haven't provided any
information as to why that is. You should check the server error log for
more information. The key thing to check would be the actual query being
run. Is it using a bad plan query plan? What other activity is going on
at this time? How much memory do you have?

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #4


On Fri, 30 Apr 2004, Rachel McConnell wrote:
Hello,

I have a Java web application using Hibernate to connect to a PostgreSQL
backend. I am seeing the below stack trace during processing of a set
of data consisting of around 1000 objects; for a 200 object set I don't
see the exception.

I believe the salient point is the Out Of Memory bit - marked below by
*****'s
The fact that this exception occurs during a call to
org.postgresql.util.PSQLException.parseServerError () seems disturbing too.


This is a server error message (which is why the stracktrace starts at
parseServerError, although perhaps it shouldn't). This means the
postgresql server ran out of memory, but you haven't provided any
information as to why that is. You should check the server error log for
more information. The key thing to check would be the actual query being
run. Is it using a bad plan query plan? What other activity is going on
at this time? How much memory do you have?

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Snake Djip | last post by:
Hi, I have a problem with a home-made DLL used in an ASP environment. It is coded in VB6, apartment-threaded. The DLL returns a binary PNG stream (an image). I use it with ASP's...
0
by: John Bonds | last post by:
I have designed a multi-threaded application that manipulates images (CCITT Group 4 TIFF Images). I'm getting some strange behavior and I'm wondering if anyone else is seeing the same thing. I run...
3
by: gambler | last post by:
let's say you have: var games = new Array(); games = new GAME(gameNum, rotNum1, rotNum2, ... ); ( so a sparsley populate array which enables me to locate a game usin the game number...
10
by: schears | last post by:
Why? Running on windows 2000 with all updates, 2G Memory, 117G Hard Drive space available. This was not an issue until I added some code to two of my c files. Any suggestions? Thanks
0
by: SC | last post by:
I'm a newie in .net, and here is my problem. I have a windows application that pass trough a proxy to access a webservice. I use the following code to set the proxy: ...
2
by: WJScott69 | last post by:
C# - CSharp - WIN32 - WMI Progamming Issues with NT4 (Out of Memory) Hello, I am trying to inquire on servers ranging from Windows NT4 SP6a+ to Windows 2000-2003 I have the program working...
0
by: Rachel McConnell | last post by:
Hello, I have a Java web application using Hibernate to connect to a PostgreSQL backend. I am seeing the below stack trace during processing of a set of data consisting of around 1000 objects;...
4
by: lawrence k | last post by:
I've a jpeg image that is 514k, which doesn't strike me as very large. Yet I'm running out of error when I try to resize it: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.