0

Destroy desktop [Desktop z_prw:path_of_zul_file] Exception Message: Destroy desktop [Desktop z_prw:path_of_zul_file]

asked 2019-08-20 14:08:57 +0800

jaypal gravatar image jaypal
1

updated 2019-08-22 09:41:06 +0800

hawk gravatar image hawk
2455 1 5
http://hawkphoenix.blogsp... ZK Team

I have found this error over the production environment but I am unable to find the same error at any other environment.

What would be the issue with this?

Please find the stacktrace

Caused by: org.zkoss.zk.ui.UiException: java.lang.InterruptedException: Destroy desktop [Desktop zeh10:/WEB-INF/zul/core/MainLayout.zul] at sun.reflect.GeneratedConstructorAccessor305.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.zkoss.lang.Classes.newInstance(Classes.java:76) at org.zkoss.lang.Exceptions.wrap(Exceptions.java:163) at org.zkoss.zk.ui.UiException$Aide.wrap(UiException.java:51) at org.zkoss.zul.Window.enterModal(Window.java:675) at org.zkoss.zul.Window.doModal(Window.java:599) at org.zkoss.zul.Messagebox.show(Messagebox.java:184) at org.zkoss.zul.Messagebox.show(Messagebox.java:416) at org.zkoss.zul.Messagebox.show(Messagebox.java:368) at com.tcs.sgv.zk.common.util.MessageUtil.showMessage(MessageUtil.java:537) at com.tcs.sgv.zk.core.fms.composer.CorrespondeceAddToCaseComposer.onClick$okBtn(CorrespondeceAddToCaseComposer.java:438) ... 21 more Caused by: java.lang.InterruptedException: Destroy desktop [Desktop zeh10:/WEB-INF/zul/core/MainLayout.zul] at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.doSuspend0(EventProcessingThreadImpl.java:250) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.doSuspend(EventProcessingThreadImpl.java:196) at org.zkoss.zk.ui.impl.UiEngineImpl.wait(UiEngineImpl.java:1667) at org.zkoss.zk.ui.Executions.wait(Executions.java:719) at org.zkoss.zul.Window.enterModal(Window.java:673)

delete flag offensive retag edit

Comments

Caused by: org.zkoss.zk.ui.UiException: java.lang.InterruptedException: Destroy desktop [Desktop z_eh10:/WEB-INF/zul/core/MainLayout.zul] at sun.reflect.GeneratedConstructorAccessor305.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAcc

jaypal ( 2019-08-21 20:12:16 +0800 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2019-08-21 10:13:42 +0800

hawk gravatar image hawk
2455 1 5
http://hawkphoenix.blogsp... ZK Team

The code that sets the message are here:

When your system is under the following situation:

  1. enable event thread
  2. open a modal window or a message box or a file upload dialog
  3. trigger a desktop destroy.

Then you still do one the the following actions:

  • send an event
  • open a modal window or a message box or a file upload dialog

Can you paste the full stack trace? Do you know the steps to reproduce the exception?

link publish delete flag offensive edit
0

answered 2019-08-22 11:11:18 +0800

hawk gravatar image hawk
2455 1 5
http://hawkphoenix.blogsp... ZK Team

When you destroy a desktop, ZK sets the cease message Destroy desktop [Desktop zeh10:/WEB-INF/zul/core/MainLayout.zul]. But ZK calls doSuspend0() when opening a Messagebox. I can't figure out how to open a Messagebox in a destroyed Desktop.

Could you tell us more details?

  • what steps cause this exception in MainLayout.zul
  • the exact ZK version? 7.?

Since event thread is a deprecated feature, we suggest to disable it. You can rewrite your code upon this doc.

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2019-08-20 14:08:57 +0800

Seen: 12 times

Last updated: Aug 22

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