0

DesktopUnavailableException

asked 2009-05-12 12:09:31 +0800

dastultz gravatar image dastultz
797 8

Hello, can anyone suggest why the following might have occurred?

May 11, 2009 8:37:07 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet auEngine threw exception
org.zkoss.zk.ui.DesktopUnavailableException: Unable to activate destroyed desktop, [Desktop gkqq]
        at org.zkoss.zk.ui.impl.UiEngineImpl.doActivate(UiEngineImpl.java:1534)
        at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:968)
        at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:480)
        at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:370)
        at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:379)

ZK 3.6.1FL

Thanks.

/Daryl

delete flag offensive retag edit

11 Replies

Sort by ยป oldest newest

answered 2009-05-19 03:13:02 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Are you using server push? The most possible reason is that the desktop is already destroyed while the working thread still trying to activate it.

link publish delete flag offensive edit

answered 2009-05-27 19:00:03 +0800

dastultz gravatar image dastultz
797 8

No, no server push. Does the above stack trace support server push as a possible culprit?

/Daryl

link publish delete flag offensive edit

answered 2009-06-01 01:48:10 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

No. That would jump too fast. Can you provide more information?

link publish delete flag offensive edit

answered 2009-06-01 12:00:13 +0800

dastultz gravatar image dastultz
797 8

Unfortunately, no, it happened just once on a production system and I can't duplicate it.

/Daryl

link publish delete flag offensive edit

answered 2009-06-02 05:31:28 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Then, can you provide your zk.xml and web.xml? Will your application "invalidate" session without ZK's attention (asychronously)? Do you have timer in your zul?

link publish delete flag offensive edit

answered 2009-06-02 12:15:38 +0800

dastultz gravatar image dastultz
797 8

I don't use Timer, nor ZUL - it's all Java/Richlet. Probably doesn't matter...

> Will your application "invalidate" session without ZK's attention (asychronously)?

My app is a "hybrid" of Zk and my own framework. The "log out" function is performed by my own framework that invalidates the session, and of course the session will timeout. I don't know if my log out qualifies as an asynchronous invalidation. Can you give me more details about what you mean?

Is there anything in particular I should look for in web.xml/zk.xml? I don't really want to post the whole.

/Daryl

link publish delete flag offensive edit

answered 2009-06-03 01:22:32 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

updated 2009-06-03 01:29:46 +0800

Per the stack trace:

1. A ZK event fired from browser, DhtmlUpdateServlet take over.
2. Get the desktop from the session
3. Then tried to lock the desktop and found it was already destroyed.

We suspect that between 2 and 3, the session is invalidate or the desktop is destroyed and
removed from the session asynchronously.

A possible scenario might be
a. A ZK event is handled and runs to step 2
b. Your framework logout function invalidate the session.

Since the possibility is low, "exactly wrong timing between 2 and 3" so it is rarely seen?

Regarding web.xml/zk.xml, I simply hope that might give some hints if I read them.

/henri

link publish delete flag offensive edit

answered 2009-06-03 17:06:22 +0800

dastultz gravatar image dastultz
797 8

Thanks for looking into this Henri. It is rare, maybe only the one time. If it comes up again, I'll get back to you.

/Daryl

link publish delete flag offensive edit

answered 2011-06-20 03:49:14 +0800

satya gravatar image satya
9

updated 2011-06-20 03:49:38 +0800

Hi,

I am also facing the same issue in our production environment and it is happening frequently, can some one help me out in fixing the below issue:


[6/6/11 19:37:36:818 EST] 0000003b WebApp E [Servlet Error]-:
org.zkoss.zk.ui.DesktopUnavailableException: Unable to activate destroyed desktop, [Desktop
gpp9]
at org.zkoss.zk.ui.impl.UiEngineImpl.doActivate(UiEngineImpl.java:1534)
at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:968)
at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:480)
at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:370)
at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:593)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:534)


please let me know the reason why the issue comes?


Thanks,
Satya.

link publish delete flag offensive edit

answered 2012-02-16 20:04:31 +0800

mone855 gravatar image mone855
3

Hi Henri,

org.zkoss.zk.ui.DesktopUnavailableException: Unable to activate destroyed desktop, [Desktop gqe91]

I am getting this error once in a while in the production. Our Web application developed on ZK and is deployed in WAS 6.1.0.33.

I read ur previous answere

1. A ZK event fired from browser, DhtmlUpdateServlet take over.
2. Get the desktop from the session
3. Then tried to lock the desktop and found it was already destroyed.

We suspect that between 2 and 3, the session is invalidate or the desktop is destroyed and
removed from the session asynchronously.

Can u please explain bit regarding this
wht does it mean locking the desktop and is destroyed and is removed from the session asynchronously.
And wht might be causing this desktop destroy :-
communication issue/delay in server response/multiple browsers opened by the same user/browser settings (IE7)/DNS-firewall settings etc..

we are getting this now in production, expecting answer ASAP.


Thanks
Mone

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: 2009-05-12 12:09:31 +0800

Seen: 726 times

Last updated: Feb 17 '12

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