0

Bug after upgrade to ZK 7.0.2

asked 2014-07-24 15:14:08 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2611 3 8
http://emrpms.blogspot.in...

Hi

After upgrade to ZK 7.0.2, i am frequently getting the following bug

java.lang.IllegalStateException: Components can be accessed only in event listeners at org.zkoss.zk.ui.impl.UiEngineImpl.getCurrentVisualizer(UiEngineImpl.java:299) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.impl.UiEngineImpl.addMoved(UiEngineImpl.java:338) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.addMoved(AbstractComponent.java:438) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.setParent(AbstractComponent.java:1012) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.insertBefore(AbstractComponent.java:1109) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.appendChild(AbstractComponent.java:1288) [zk-7.0.2.jar:7.0.2] at com.product.webapp.clientbilling.ClientInvoiceVM.getMainLinkedPage(ClientInvoiceVM.java:764) ~[classes/:na] at com.product.webapp.clientbilling.ClientInvoiceVM.onLabOrderClick(ClientInvoiceVM.java:707) ~[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.045] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.045] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.045] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.045] at org.zkoss.bind.impl.ParamCall.call(ParamCall.java:113) ~[zkbind-7.0.2.jar:7.0.2] at org.zkoss.bind.impl.BinderImpl.doExecute(BinderImpl.java:1748) [zkbind-7.0.2.jar:7.0.2] at org.zkoss.bind.impl.BinderImpl.doCommand(BinderImpl.java:1509) [zkbind-7.0.2.jar:7.0.2] at org.zkoss.bind.impl.BinderImpl.access$1500(BinderImpl.java:108) [zkbind-7.0.2.jar:7.0.2] at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent0(BinderImpl.java:1378) [zkbind-7.0.2.jar:7.0.2] at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent(BinderImpl.java:1330) [zkbind-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2746) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2717) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2658) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1765) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1550) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1260) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:603) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494) [zk-7.0.2.jar:7.0.2] at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) [servlet-api.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) [servlet-api.jar:na]

19:40:41.712 [http-bio-8080-exec-3] ERROR org.zkoss.bind.impl.BinderImpl - Components can be accessed only in event listeners java.lang.IllegalStateException: Components can be accessed only in event listeners at org.zkoss.zk.ui.impl.UiEngineImpl.getCurrentVisualizer(UiEngineImpl.java:299) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.impl.UiEngineImpl.addMoved(UiEngineImpl.java:338) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.addMoved(AbstractComponent.java:438) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.setParent(AbstractComponent.java:1012) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.insertBefore(AbstractComponent.java:1109) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.appendChild(AbstractComponent.java:1288) [zk-7.0.2.jar:7.0.2] at com.product.webapp.clientbilling.ClientInvoiceVM.getMainLinkedPage(ClientInvoiceVM.java:764) ~[classes/:na] at com.product.webapp.clientbilling.ClientInvoiceVM.onLabOrderClick(ClientInvoiceVM.java:707) ~[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.045] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.045] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.045] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.045] at org.zkoss.bind.impl.ParamCall.call(ParamCall.java:113) ~[zkbind-7.0.2.jar:7.0.2] at org.zkoss.bind.impl.BinderImpl.doExecute(BinderImpl.java:1748) ~[zkbind-7.0.2.jar:7.0.2] at org.zkoss.bind.impl.BinderImpl.doCommand(BinderImpl.java:1509) ~[zkbind-7.0.2.jar:7.0.2] at org.zkoss.bind.impl.BinderImpl.access$1500(BinderImpl.java:108) ~[zkbind-7.0.2.jar:7.0.2] at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent0(BinderImpl.java:1378) ~[zkbind-7.0.2.jar:7.0.2] at org.zkoss.bind.impl.BinderImpl$CommandEventListener.onEvent(BinderImpl.java:1330) ~[zkbind-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2746) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2717) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2658) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1765) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1550) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1260) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:603) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485) [zk-7.0.2.jar:7.0.2] at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494) [zk-7.0.2.jar:7.0.2] at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) [servlet-api.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) [servlet-api.jar:na]

delete flag offensive retag edit
Be the first one to answer this question!
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: 2014-07-24 15:14:08 +0800

Seen: 9 times

Last updated: Jul 24 '14

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