Session stack overflow
3 Feb 2012 12:24:03 GMT
6 Feb 2012 08:24:20 GMT
6 Feb 2012 08:24:20 GMT
It also happened to me; I couldn't find out why, but I was able to manage it with the following (obvious) scheme:
public void init( Session sess, Object request ) throws Exception {
if( sess.hasAttribute( ALREADY_INITIALIZED ) ) {
return;
}
sess.setAttribute( ALREADY_INITIALIZED, Boolean.TRUE );
...
}With kind regards
César Varona
6 Feb 2012 09:43:18 GMT
6 Feb 2012 09:43:18 GMT
I've seen this too with 5.0.9 and fixed it similarly as César.
It's probably a pretty new ZK bug because my code worked with older versions correctly.
6 Feb 2012 10:57:06 GMT
6 Feb 2012 10:57:06 GMT
the strange thing is that it doesn't happens on my local develop machine. Do you use tomcat? Which version is?
7 Feb 2012 10:32:18 GMT
7 Feb 2012 10:32:18 GMT
Hi,
Could you kindly provide a sample that can reproduce this issue and post a bug on bug tracker?
Thanks,
ben
7 Feb 2012 18:14:48 GMT
7 Feb 2012 18:14:48 GMT
done
ZK - Open Source Ajax Java Framework
Hi,
i have a strange problem with zk and this line:
arg0.setAttribute("SKIN", currentSkin);
this line is called from:
public class SessionManager implements org.zkoss.zk.ui.util.SessionInit{
public void init(Session arg0, Object arg1) throws Exception {
and it seems call a new session every time and so it cause a stack overflow..
i did'nt see this in the past. Actually i'm using zk 5.0.9 anyone?
i've cut a lot of text.. but you should see that my line
at com.wsm.framework.SessionManager.init(SessionManager.java:33)
cause the problem