0

WebLogic 10.3.3, ZK5 problem

asked 2010-10-24 03:06:58 +0800

sreckom gravatar image sreckom
9

I'm trying to evaluate ZK. I have version 5.0.4 and WebLogic 10.3.3 as an application server running on sun jdk 1.6.0_18. I'm trying to use MVC example that I found here: http://www.zkoss.org/smalltalks/mvc/ (I'm using episode III). This works for me when I run the example on Tomcat 6.0.29, but it always jumps on timeout.zul when I try to run it on weblogic.
I tried to use controller on a session by using listener:
<listener>
<description>Session Initialiser</description>
<listener-class>si.srecko.cr.view.CRSessionInit</listener-class>
</listener>
but in that case I get an infinite loop - CRSessionInit gets called until StackOverflowError occurs.
I also tried to put this inside system-config:
<system-config>
<ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class>
<cache-provider-class>org.zkoss.zk.ui.impl.GlobalDesktopCacheProvider</cache-provider-class>
</system-config>

but it doesn't help. All this works for me on tomcat (no infinite loop, no session timeout).
Can anyone help me with ideas how to overcome these problems on weblogic?

delete flag offensive retag edit

8 Replies

Sort by » oldest newest

answered 2010-11-01 05:37:57 +0800

PeterKuo gravatar image PeterKuo
481 2

@sreckom
Let me clarify first:

If you simply run the simple sample in Episode III, without modifying zk.xml,
it always jump to timeout.zul?

Can you give us the stacktrack of infinite loop first.

link publish delete flag offensive edit

answered 2010-11-03 11:57:27 +0800

sreckom gravatar image sreckom
9

This is the strangest thing that happens. I have a PC that I can dual boot between Windows XP 32-bit and Windows 7 64-bit. I'm using the same installation of JVM (32-bit), eclipse and weblogic on both OSes (originally I instaled everything on WinXP and just fixed the PATH on Win7 to run eclipse with the same JVM). On Win7 everything works as expected, but on WinXP it fails. This is the part of stacktrace of the infinite loop:
3.11.2010 17:43:13 org.zkoss.zk.ui.http.AbstractExtendlet invoke:150
SEVERE: Unable to invoke public static final java.lang.String org.zkoss.zk.ui.http.Wpds.outLocaleJavaScript()
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.zkoss.zk.ui.http.AbstractExtendlet.invoke(AbstractExtendlet.java:147)
at org.zkoss.zk.ui.http.WpdExtendlet.write(WpdExtendlet.java:416)
at org.zkoss.zk.ui.http.WpdExtendlet.access$900(WpdExtendlet.java:84)
at org.zkoss.zk.ui.http.WpdExtendlet$WpdContent.toByteArray(WpdExtendlet.java:627)
at org.zkoss.zk.ui.http.WpdExtendlet.retrieve(WpdExtendlet.java:133)
at org.zkoss.zk.ui.http.WpdExtendlet.service(WpdExtendlet.java:94)
at org.zkoss.web.util.resource.ClassWebResource.web0(ClassWebResource.java:559)
at org.zkoss.web.util.resource.ClassWebResource.web(ClassWebResource.java:545)
at org.zkoss.web.util.resource.ClassWebResource.service(ClassWebResource.java:262)
at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:398)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.StackOverflowError
at java.net.URL.set(URL.java:683)
at java.net.URLStreamHandler.setURL(URLStreamHandler.java:521)
at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:288)
at sun.net.www.protocol.file.Handler.parseURL(Handler.java:50)
at java.net.URL.<init>(URL.java:596)
at java.net.URL.<init>(URL.java:464)
at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:976)
at sun.misc.URLClassPath.getResource(URLClassPath.java:169)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
at weblogic.utils.classloaders.FilteringClassLoader.findClass(FilteringClassLoader.java:101)
at weblogic.utils.classloaders.FilteringClassLoader.loadClass(FilteringClassLoader.java:86)
at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:37)
at org.zkoss.zk.ui.util.Configuration.invokeSessionInits(Configuration.java:739)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:154)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:112)
at org.zkoss.zk.ui.http.SerializableSession.<init>(SerializableSession.java:43)
at org.zkoss.zk.ui.http.SerializableUiFactory.newSession(SerializableUiFactory.java:36)
at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:149)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:369)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:363)
at org.zkoss.zk.ui.http.SessionResolverImpl.getSession(SessionResolverImpl.java:37)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:56)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:44)
at org.zkoss.zk.ui.http.HttpSessionListener23.attributeReplaced(HttpSessionListener23.java:72)
at weblogic.servlet.internal.EventsManager.notifySessionAttributeChange(EventsManager.java:307)
at weblogic.servlet.internal.session.SessionContext.notifySessionAttributeChange(SessionContext.java:792)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:562)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:481)
at org.zkoss.zk.ui.http.SimpleSession.setAttr(SimpleSession.java:293)
at org.zkoss.zk.ui.http.SimpleSession.setAttribute(SimpleSession.java:246)
at si.srecko.cr.view.CRSessionInit.init(CRSessionInit.java:13)
at org.zkoss.zk.ui.util.Configuration.invokeSessionInits(Configuration.java:731)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:154)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:112)
at org.zkoss.zk.ui.http.SerializableSession.<init>(SerializableSession.java:43)
at org.zkoss.zk.ui.http.SerializableUiFactory.newSession(SerializableUiFactory.java:36)
at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:149)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:369)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:363)
at org.zkoss.zk.ui.http.SessionResolverImpl.getSession(SessionResolverImpl.java:37)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:56)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:44)
at org.zkoss.zk.ui.http.HttpSessionListener23.attributeReplaced(HttpSessionListener23.java:72)
at weblogic.servlet.internal.EventsManager.notifySessionAttributeChange(EventsManager.java:307)
at weblogic.servlet.internal.session.SessionContext.notifySessionAttributeChange(SessionContext.java:792)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:562)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:481)
at org.zkoss.zk.ui.http.SimpleSession.setAttr(SimpleSession.java:293)
at org.zkoss.zk.ui.http.SimpleSession.setAttribute(SimpleSession.java:246)
at si.srecko.cr.view.CRSessionInit.init(CRSessionInit.java:13)
at org.zkoss.zk.ui.util.Configuration.invokeSessionInits(Configuration.java:731)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:154)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:112)
at org.zkoss.zk.ui.http.SerializableSession.<init>(SerializableSession.java:43)
at org.zkoss.zk.ui.http.SerializableUiFactory.newSession(SerializableUiFactory.java:36)
at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:149)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:369)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:363)
at org.zkoss.zk.ui.http.SessionResolverImpl.getSession(SessionResolverImpl.java:37)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:56)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:44)
at org.zkoss.zk.ui.http.HttpSessionListener23.attributeReplaced(HttpSessionListener23.java:72)
at weblogic.servlet.internal.EventsManager.notifySessionAttributeChange(EventsManager.java:307)
at weblogic.servlet.internal.session.SessionContext.notifySessionAttributeChange(SessionContext.java:792)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:562)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:481)
at org.zkoss.zk.ui.http.SimpleSession.setAttr(SimpleSession.java:293)
at org.zkoss.zk.ui.http.SimpleSession.setAttribute(SimpleSession.java:246)
at si.srecko.cr.view.CRSessionInit.init(CRSessionInit.java:13)
at org.zkoss.zk.ui.util.Configuration.invokeSessionInits(Configuration.java:731)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:154)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:112)
at org.zkoss.zk.ui.http.SerializableSession.<init>(SerializableSession.java:43)
at org.zkoss.zk.ui.http.SerializableUiFactory.newSession(SerializableUiFactory.java:36)
at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:149)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:369)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:363)
at org.zkoss.zk.ui.http.SessionResolverImpl.getSession(SessionResolverImpl.java:37)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:56)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:44)
at org.zkoss.zk.ui.http.HttpSessionListener23.attributeReplaced(HttpSessionListener23.java:72)
at weblogic.servlet.internal.EventsManager.notifySessionAttributeChange(EventsManager.java:307)
at weblogic.servlet.internal.session.SessionContext.notifySessionAttributeChange(SessionContext.java:792)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:562)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:481)
at org.zkoss.zk.ui.http.SimpleSession.setAttr(SimpleSession.java:293)
at org.zkoss.zk.ui.http.SimpleSession.setAttribute(SimpleSession.java:246)
at si.srecko.cr.view.CRSessionInit.init(CRSessionInit.java:13)
at org.zkoss.zk.ui.util.Configuration.invokeSessionInits(Configuration.java:731)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:154)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:112)
at org.zkoss.zk.ui.http.SerializableSession.<init>(SerializableSession.java:43)
at org.zkoss.zk.ui.http.SerializableUiFactory.newSession(SerializableUiFactory.java:36)
at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:149)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:369)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:363)
at org.zkoss.zk.ui.http.SessionResolverImpl.getSession(SessionResolverImpl.java:37)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:56)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:44)
at org.zkoss.zk.ui.http.HttpSessionListener23.attributeReplaced(HttpSessionListener23.java:72)
at weblogic.servlet.internal.EventsManager.notifySessionAttributeChange(EventsManager.java:307)
at weblogic.servlet.internal.session.SessionContext.notifySessionAttributeChange(SessionContext.java:792)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:562)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:481)
at org.zkoss.zk.ui.http.SimpleSession.setAttr(SimpleSession.java:293)
at org.zkoss.zk.ui.http.SimpleSession.setAttribute(SimpleSession.java:246)
at si.srecko.cr.view.CRSessionInit.init(CRSessionInit.java:13)
at org.zkoss.zk.ui.util.Configuration.invokeSessionInits(Configuration.java:731)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:154)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:112)
at org.zkoss.zk.ui.http.SerializableSession.<init>(SerializableSession.java:43)
at org.zkoss.zk.ui.http.SerializableUiFactory.newSession(SerializableUiFactory.java:36)
at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:149)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:369)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:363)
at org.zkoss.zk.ui.http.SessionResolverImpl.getSession(SessionResolverImpl.java:37)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:56)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:44)
at org.zkoss.zk.ui.http.HttpSessionListener23.attributeReplaced(HttpSessionListener23.java:72)
at weblogic.servlet.internal.EventsManager.notifySessionAttributeChange(EventsManager.java:307)
at weblogic.servlet.internal.session.SessionContext.notifySessionAttributeChange(SessionContext.java:792)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:562)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:481)
at org.zkoss.zk.ui.http.SimpleSession.setAttr(SimpleSession.java:293)
at org.zkoss.zk.ui.http.SimpleSession.setAttribute(SimpleSession.java:246)
at si.srecko.cr.view.CRSessionInit.init(CRSessionInit.java:13)
at org.zkoss.zk.ui.util.Configuration.invokeSessionInits(Configuration.java:731)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:154)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:112)
at org.zkoss.zk.ui.http.SerializableSession.<init>(SerializableSession.java:43)
at org.zkoss.zk.ui.http.SerializableUiFactory.newSession(SerializableUiFactory.java:36)
at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:149)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:369)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:363)
at org.zkoss.zk.ui.http.SessionResolverImpl.getSession(SessionResolverImpl.java:37)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:56)
...

I have this init method:
public void init(Session session, Object request) throws Exception {
// TODO Auto-generated method stub
System.out.println("Invoking session inits.....");
CentralniRegisterSearch myControler=new CentralniRegisterSearch();
session.setAttribute("CentralniRegisterSearch", myControler);
return;
}

Line 13 is session.setAttribute("CentralniRegisterSearch", myControler);

As for the Episode III - I run it with no zk.xml modifications.

I've never seen souch a strange behaviour when compared between WinXP and Win7 (or 32-64 bit).

link publish delete flag offensive edit

answered 2010-11-03 12:02:18 +0800

sreckom gravatar image sreckom
9

Update: It seems that the problem is how I access the .zul page through the browser - when I use localhost in the url, it becomes problematic with the simptoms described above. If I use an IP address of my machine, it starts working on WinXP as well. I guess there are issues when using localhost inside an URL.

link publish delete flag offensive edit

answered 2010-11-10 00:58:15 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi Sreckom,

I tested the ZK 5.0.5 zkdemo.ear on weblogic 10.3, and it works well.

Can you try to run the zkdemo.war on your weblogic server?

Thanks,

link publish delete flag offensive edit

answered 2011-05-19 11:12:41 +0800

afxgroup gravatar image afxgroup
126 1

i have a similar problem on an our application. We have just switched from zk 3.6.4 to 5.0.7. Same loop,same error. here it is a snip of the loop. You can notice the first and the latest rows:

at org.zkoss.zk.ui.http.SessionResolverImpl.getSession(SessionResolverImpl.java:37)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:56)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:44)
at org.zkoss.zk.ui.http.HttpSessionListener23.attributeReplaced(HttpSessionListener23.java:72)
at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1498)
at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1402)
at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:154)
at org.zkoss.zk.ui.http.SimpleSession.setAttr(SimpleSession.java:293)
at org.zkoss.zk.ui.http.SimpleSession.setAttribute(SimpleSession.java:233)
at com.wsm.sport.filter.LocaleSession.init(LocaleSession.java:51)
at org.zkoss.zk.ui.util.Configuration.invokeSessionInits(Configuration.java:771)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:154)
at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:112)
at org.zkoss.zk.ui.http.SimpleUiFactory.newSession(SimpleUiFactory.java:35)
at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:150)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:398)
at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:392)
at org.zkoss.zk.ui.http.SessionResolverImpl.getSession(SessionResolverImpl.java:37)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:56)
at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:44)
at org.zkoss.zk.ui.http.HttpSessionListener23.attributeReplaced(HttpSessionListener23.java:72)
at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1498)

link publish delete flag offensive edit

answered 2011-05-23 05:17:27 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi afxgroup,

I tested with ZK 5.0.7 Sandboxs.ear, and it works well on weblogic 10.3 for me.

link publish delete flag offensive edit

answered 2011-05-25 04:42:34 +0800

cvarona gravatar image cvarona
554 1 6

updated 2011-05-25 05:30:08 +0800

I'm having a similar problem with zk5.0.7 under weblogic 10.3.3:

...
        at org.zkoss.zk.ui.http.HttpSessionListener23.attributeReplaced(HttpSessionListener23.java:72)
        at weblogic.servlet.internal.EventsManager.notifySessionAttributeChange(EventsManager.java:307)
        at weblogic.servlet.internal.session.SessionContext.notifySessionAttributeChange(SessionContext.java:792)
        at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:562)
        at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:481)
        at org.zkoss.zk.ui.http.SimpleSession.setAttr(SimpleSession.java:293)
        at org.zkoss.zk.ui.http.SimpleSession.setAttribute(SimpleSession.java:246)
        at com.wombat.SessionInit.init(SessionInit.java:44)
        at org.zkoss.zk.ui.util.Configuration.invokeSessionInits(Configuration.java:771)
        at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:154)
        at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:112)
        at org.zkoss.zk.ui.http.SerializableSession.<init>(SerializableSession.java:43)
        at org.zkoss.zk.ui.http.SerializableUiFactory.newSession(SerializableUiFactory.java:36)
        at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:150)
        at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:398)
        at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:392)
        at org.zkoss.zk.ui.http.SessionResolverImpl.getSession(SessionResolverImpl.java:37)
        at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:56)
        at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:44)
        at org.zkoss.zk.ui.http.HttpSessionListener23.attributeAdded(HttpSessionListener23.java:52)
        at weblogic.servlet.internal.EventsManager.notifySessionAttributeChange(EventsManager.java:302)
        at weblogic.servlet.internal.session.SessionContext.notifySessionAttributeChange(SessionContext.java:792)
        at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:562)
        at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:481)
        at org.zkoss.zk.ui.http.SimpleSession.setAttr(SimpleSession.java:293)
        at org.zkoss.zk.ui.http.SimpleSession.setAttribute(SimpleSession.java:246)
        at com.wombat.SessionInit.init(SessionInit.java:44)
        at org.zkoss.zk.ui.util.Configuration.invokeSessionInits(Configuration.java:771)
        at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:154)
        at org.zkoss.zk.ui.http.SimpleSession.<init>(SimpleSession.java:112)
        at org.zkoss.zk.ui.http.SerializableSession.<init>(SerializableSession.java:43)
        at org.zkoss.zk.ui.http.SerializableUiFactory.newSession(SerializableUiFactory.java:36)
        at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:150)
        at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:398)
        at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:392)
        at org.zkoss.zk.ui.http.SessionResolverImpl.getSession(SessionResolverImpl.java:37)
        at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:56)
        at org.zkoss.zk.ui.Sessions.getCurrent(Sessions.java:44)
        at org.zkoss.zk.ui.http.Utils.getFirstDayOfWeek(Utils.java:85)
        at org.zkoss.zk.ui.http.Wpds.outDateJavaScript(Wpds.java:95)
        at org.zkoss.zk.ui.http.Wpds.outLocaleJavaScript(Wpds.java:68)

My com.wombat.SessionInit attempts to set some attributes on the session being initialized:

sess.setAttribute( "something", sess.getWebApp().getAttribute( "something" ) );

Is it not allowed to do so? And if not, what's the right way to set up attributes in order to populate the session upon initialization?

With kind regards

César Varona

link publish delete flag offensive edit

answered 2011-05-27 05:59:57 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

@César Varona,

I try with the following example, and it works for me.

sess.setAttribute( "something", sess.getWebApp().getAttribute( "something" ) );

If you are in a hurry, you can consider to request a support service.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-10-24 03:06:58 +0800

Seen: 862 times

Last updated: May 27 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More