0

Zkoss in WLS 10 Session Problem (Plz help!)

asked 2008-08-12 04:38:04 +0800

mahdiiran gravatar image mahdiiran
40 3

Hello every body
I am using zkoss3.0.3 in WLS 10
It's good and very nice and work perfectly.
Som times i get the following Exception and all zkoss futures dos not work, and there is noway until i restart the WLS server. it seems there is a deserializing problem in weblogic session,
Is anyone know why this problem occur, and how can i fix it?


<Aug 12, 2008 9:26:25 AM IRDT> <Error> <HTTP> <BEA-101362> <[weblogic.serv let.internal.WebAppServletContext@1c57a92 - appName: 'amad', name: 'amad', context-path: '/amad'] could not deserialize the servlet-context scoped attribute with name: "javax.zkoss.web.servlets.ExtendletContexts"
java.io.NotSerializableException: org.zkoss.web.util.resource.ClassWebReso urce$ClassWebContext
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java :1075)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 291)
at java.util.HashMap.writeObject(HashMap.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso rImpl.java:39)
Truncated. see log file for complete stacktrace
>
<Aug 12, 2008 9:26:25 AM IRDT> <Error> <HTTP> <BEA-101002> <[weblogic.serv let.internal.WebAppServletContext@1c57a92 - appName: 'amad', name: 'amad', context-path: '/amad'] Could not deserialize the context attribute.
java.io.NotSerializableException: org.zkoss.web.util.resource.ClassWebReso urce$ClassWebContext
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java :1075)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 291)
at java.util.HashMap.writeObject(HashMap.java:985)
at sun.reflect.GeneratedMethodAccessor530.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho dAccessorImpl.java:25)
Truncated. see log file for complete stacktrace
>
org.zkoss.zk.ui.UiException: Page not found: ~./zul/html/messagebox.zul
at org.zkoss.zk.ui.http.ExecutionImpl.getPageDefinition(ExecutionI mpl.java:327)
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents(Abstrac tExecution.java:169)
at org.zkoss.zk.ui.Executions.createComponents(Executions.java:140 )
at org.zkoss.zul.Messagebox.show(Messagebox.java:135)
at org.zkoss.zul.Messagebox.show(Messagebox.java:89)
at com.nict.amad.zk.UnitEventListener.onClick_delete(UnitEventList ener.java:326)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso rImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho dAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.nict.amad.zk.ZkEventListener.onEvent(ZkEventListener.java:5 6)
at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.jav a:197)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java :143)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventPr ocessingThreadImpl.java:483)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcess ingThreadImpl.java:419)

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-08-13 02:02:03 +0800

zanyking gravatar image zanyking
99

updated 2008-08-13 02:02:44 +0800

As what I saw, your environment was trying to serialize the whole Servlet and this attempt will break ZK's assumptions.

ZK's assumption is, in a clustering environment, only the Session objects need to be synchronized in each backup node but not the whole Servlet.

So, can you describe why you want to serialize the whole Servlet? or, you just did some false configuration which cause this problem?

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: 2008-08-12 04:38:04 +0800

Seen: 208 times

Last updated: Aug 13 '08

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