0

Why did zk throw a exception when I use Executions.sendRedirect method?

asked 2016-11-24 07:22:37 +0800

hubin gravatar image hubin
24 1

a parent window has a iframe,and the iframe has a master window and a child window creating by createComponents method,when I try to Executions.sendRedirect the parent window,zk throw exceptions like this:

2016-11-24 14:09:22 org.zkoss.bind.impl.ParamCall call 严重: org.zkoss.zk.ui.UiException: java.lang.InterruptedException: Destroy desktop [Desktop z3um:/view/zul/examinfomana.zul] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.zkoss.lang.Classes.newInstance(Classes.java:75) at org.zkoss.lang.Exceptions.wrap(Exceptions.java:163) at org.zkoss.zk.ui.UiException$Aide.wrap(UiException.java:44) at org.zkoss.zul.Window.enterModal(Window.java:619) at org.zkoss.zul.Window.doModal(Window.java:548) at com.kyny.zk.tools.ZkUtils.popupWindow(ZkUtils.java:848) at com.kyny.zk.viewmodel.ExamInfoManaViewModel.lookResult(ExamInfoManaViewModel.java:365) 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.bind.impl.ParamCall.call(ParamCall.java:113) at org.zkoss.bind.impl.BinderImpl.doExecute(BinderImpl.java:1748) at org.zkoss.bind.impl.BinderImpl.doCommand(BinderImpl.java:1509) at org.zkoss.bind.impl.BinderImpl.access$1500(BinderImpl.java:108) at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent0(BinderImpl.java:1378) at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent(BinderImpl.java:1330) at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2746) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2717) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2658) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:536) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:463) Caused by: java.lang.InterruptedException: Destroy desktop [Desktop z3um:/view/zul/examinfomana.zul] at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.doSuspend0(EventProcessingThreadImpl.java:246) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.doSuspend(EventProcessingThreadImpl.java:192) at org.zkoss.zk.ui.impl.UiEngineImpl.wait(UiEngineImpl.java:1600) at org.zkoss.zk.ui.Executions.wait(Executions.java:700) at org.zkoss.zul.Window.enterModal(Window.java:617) ... 19 more 2016-11-24 14:09:22 org.zkoss.bind.impl.BinderImpl$CommandEventListener onEvent 严重: java.lang.InterruptedException: Destroy desktop [Desktop z3um:/view/zul/examinfomana.zul] org.zkoss.zk.ui.UiException: java.lang.InterruptedException: Destroy desktop [Desktop z3um:/view/zul/examinfomana.zul] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.zkoss.lang.Classes.newInstance(Classes.java:75) at org.zkoss.lang.Exceptions.wrap(Exceptions.java:163) at org.zkoss.zk.ui.UiException$Aide.wrap(UiException.java:44) at org.zkoss.zul.Window.enterModal(Window.java:619) at org.zkoss.zul.Window.doModal(Window.java:548) at com.kyny.zk.tools.ZkUtils.popupWindow(ZkUtils.java:848) at com.kyny.zk.viewmodel.ExamInfoManaViewModel.lookResult(ExamInfoManaViewModel.java:365) 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.bind.impl.ParamCall.call(ParamCall.java:113) at org.zkoss.bind.impl.BinderImpl.doExecute(BinderImpl.java:1748) at org.zkoss.bind.impl.BinderImpl.doCommand(BinderImpl.java:1509) at org.zkoss.bind.impl.BinderImpl.access$1500(BinderImpl.java:108) at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent0(BinderImpl.java:1378) at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent(BinderImpl.java:1330) at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2746) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2717) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2658) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:536) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:463) Caused by: java.lang.InterruptedException: Destroy desktop [Desktop z_3um:/view/zul/examinfomana.zul] at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.doSuspend0(EventProcessingThreadImpl.java:246) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.doSuspend(EventProcessingThreadImpl.java:192) at org.zkoss.zk.ui.impl.UiEngineImpl.wait(UiEngineImpl.java:1600) at org.zkoss.zk.ui.Executions.wait(Executions.java:700) at org.zkoss.zul.Window.enterModal(Window.java:617) ... 19 more

delete flag offensive retag edit

3 Replies

Sort by » oldest newest

answered 2016-11-26 09:11:52 +0800

Darksu gravatar image Darksu
1991 1 4

Hello hubin,

There is a high chance you will have to change your logic.

Could you please post your code so that we can check it out?

Best Regards,

Darksu

link publish delete flag offensive edit

answered 2016-11-28 01:41:37 +0800

hubin gravatar image hubin
24 1

Dear Darksu, How can I post my code to you ?

link publish delete flag offensive edit

answered 2016-11-28 06:34:31 +0800

hubin gravatar image hubin
24 1

Sorry everone,through debug again,I find this bug is cause by my code.

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
1 follower

RSS

Stats

Asked: 2016-11-24 07:22:37 +0800

Seen: 29 times

Last updated: Nov 28 '16

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