-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am using ZK 5.0.1 on Google Application Engine. I am getting the error in GAE that
java.lang.IllegalArgumentException: string property _values is too long. It cannot exceed 1000000 characters
My page is not that huge I have around 20 controls on the page that's about it. I am not even doing anything fancy with session it's just simple CRUD screen.
Why isn't the session clearing after page is unloaded? Is there any setting that controls this?
Please help me as my app is in pilot testing and I am getting this error more frequently now.
Thanks in advance
GAE serializes the session into data store. So I am getting the above exception when the session is huge. Why is the session getting huge? As per my application needs I don't keep anything in session. The session getting bigger and bigger means the page unload is not working properly. Any hints on how to trap this?
Every Browser request which request a zul page will create a ZK component tree which are a java instances stored in session.
While browser closing, zk client engine will try to notify server that the desktop should be cleaned, but there's no guarantee for this step because Browser implementation and possible OS level termination.
So, the best way to limit the size of session that a single user can used, is to limit the amount of desktop that user can create.
please refer to this article: zk.xml session config
you can specify these settings to limit user quota per session:
<session-config> <session-timeout>1800</session-timeout> <timer-keep-alive>false</timer-keep-alive> <max-desktops-per-session>15</max-desktops-per-session> <max-requests-per-session>5</max-requests-per-session> <max-pushes-per-session>3</max-pushes-per-session> </session-config>
Asked: 2010-04-02 20:06:54 +0800
Seen: 357 times
Last updated: Apr 07 '10