No.
In the java class, I created an list object such as
listO = ClassPeer.doSelect(crit)
context.put("listObjects", listO)
in the .vm file, it is referenced as
#foreach ($listObject in $listObjects)
...
#end
Thanks.
-----Original Message-----
From: Eric Lalande [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 19, 2006 8:27 AM
To: 'Turbine Users List'
Subject: RE: java.lang.OutOfMemoryError
Do you have a runaway loop that is creating objects? This is a simple
bug -
for example:
Vector list = new Vector();
while(true) {
BigObject obj = new BigObject();
list.addElement(obj);
//Obvious bug for sake of discussion/demo
if ( list.size() == 0 )
break;
}
This will run a jvm out of memory fairly quick.
-----Original Message-----
From: jill han [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 19, 2006 9:15 AM
To: Turbine Users List
Subject: RE: java.lang.OutOfMemoryError
Yes, I am querying a database, but not with large amounts of data.
Such exception will go away after I restart the tomcat server.
-----Original Message-----
From: AFrieze [mailto:[EMAIL PROTECTED]
Sent: Monday, December 18, 2006 5:11 PM
To: Turbine Users List
Subject: Re: java.lang.OutOfMemoryError
jill han wrote:
> What could cause java.lang.OutOfMemoryError ?
> The application is built on turbine/torque/velocity.
>
> Thanks in advance
>
> Jill
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
Jill
I have encountered this problem in several different situations. Are you
querying a database and/or dealing with large amounts of XML data?
If the problem is space related, you should probably increase the amount
of memory java can use.
Example) If you are using linux as your O/S and tomcat as your server,
you could add this line to your Catalina.sh file.
export JAVA_OPTS=${JAVA_OPTS}'-Xmx512m -Xms128m'
Hope this helps
AFrieze
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]