java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi, I'd like to pop up a window including zss and try with the following zul and java code, but got an IllegalStateException. Isn't it doable? {code} <window xmlns="http://www.zkoss.org/2005/zul" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd" id="spreadSheetPanel" title="スプレッドシート" closable="true" apply="com.diva_america.synapse.webui.SpreadSheetPanelControl" width="1000px" height="750px" onClose="spreadSheetPanel.detach()"> <vlayout> <spreadsheet id="spreadsheet" src="/Users/kenjin/github/diva_lab/synapse/synapse-webui/src/main/resources/NameRange1.xlsx" showSheetbar="false" showToolbar="true" showContextMenu="true" maxRenderedCellSize="15000" preloadColumnSize="32" preloadRowSize="60" width="1000px" height="700px" maxrows="50" maxcolumns="120"/> </vlayout> </window> {code} {code} def onClick$popupSpreadSheetBtn(event :Event) { val panel = Executions.createComponents("/spreadSheetPanel.zul", popupSpreadSheetBtn.getParent, null).asInstanceOf[Window] panel.doModal() // panel.doPopup() } {code} StackTrace {code} [ qtp278146555-44] DefaultListableBeanFactory DEBUG Returning cached instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor' May 18, 2012 1:29:35 PM org.zkoss.zk.ui.impl.UiEngineImpl getResponses:1337 SEVERE: java.lang.IllegalStateException: ended at org.zkoss.zk.ui.impl.UiVisualizer.getAttrRespMap(UiVisualizer.java:282) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate(UiVisualizer.java:237) at org.zkoss.zk.ui.impl.UiEngineImpl.addSmartUpdate(UiEngineImpl.java:280) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1487) at org.zkoss.zss.ui.Spreadsheet.smartUpdate(Spreadsheet.java:4676) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1462) at org.zkoss.zss.ui.Spreadsheet.smartUpdate(Spreadsheet.java:4672) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1527) at org.zkoss.zk.ui.AbstractComponent.addEventListener(AbstractComponent.java:2039) at org.zkoss.zss.ui.sys.ActionHandler.init(ActionHandler.java:612) at org.zkoss.zss.ui.sys.ActionHandler.<init>(ActionHandler.java:145) at org.zkoss.zss.ui.Spreadsheet$DefaultToolbarActionHandler.<init>(Spreadsheet.java:4815) at org.zkoss.zss.ui.Spreadsheet.getActionHandler(Spreadsheet.java:4198) at org.zkoss.zss.ui.Spreadsheet.renderProperties(Spreadsheet.java:1538) at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1740) at org.zkoss.zk.ui.AbstractComponent.redrawChildren(AbstractComponent.java:1819) at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1759) at org.zkoss.zk.ui.AbstractComponent.redrawChildren(AbstractComponent.java:1819) at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1759) at org.zkoss.zk.ui.impl.UiVisualizer.redraw(UiVisualizer.java:920) at org.zkoss.zk.ui.impl.UiVisualizer.redrawComponents(UiVisualizer.java:932) at org.zkoss.zk.ui.impl.UiVisualizer.addResponsesForCreatedPerSiblings(UiVisualizer.java:787) at org.zkoss.zk.ui.impl.UiVisualizer.getResponses(UiVisualizer.java:647) at org.zkoss.zk.ui.impl.UiEngineImpl.getResponses(UiEngineImpl.java:1332) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1150) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:562) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:457) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:465) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at javax.servlet.http.HttpServlet.service(HttpServlet.java:814) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:521) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.__doHandle(ContextHandler.java:1031) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:349) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:925) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:857) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534) at java.lang.Thread.run(Thread.java:680) {code}
    via by k2nakamura,
  • Hi, I'd like to pop up a window including zss and try with the following zul and java code, but got an IllegalStateException. Isn't it doable? {code} <window xmlns="http://www.zkoss.org/2005/zul" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd" id="spreadSheetPanel" title="スプレッドシート" closable="true" apply="com.diva_america.synapse.webui.SpreadSheetPanelControl" width="1000px" height="750px" onClose="spreadSheetPanel.detach()"> <vlayout> <spreadsheet id="spreadsheet" src="/Users/kenjin/github/diva_lab/synapse/synapse-webui/src/main/resources/NameRange1.xlsx" showSheetbar="false" showToolbar="true" showContextMenu="true" maxRenderedCellSize="15000" preloadColumnSize="32" preloadRowSize="60" width="1000px" height="700px" maxrows="50" maxcolumns="120"/> </vlayout> </window> {code} {code} def onClick$popupSpreadSheetBtn(event :Event) { val panel = Executions.createComponents("/spreadSheetPanel.zul", popupSpreadSheetBtn.getParent, null).asInstanceOf[Window] panel.doModal() // panel.doPopup() } {code} StackTrace {code} [ qtp278146555-44] DefaultListableBeanFactory DEBUG Returning cached instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor' May 18, 2012 1:29:35 PM org.zkoss.zk.ui.impl.UiEngineImpl getResponses:1337 SEVERE: java.lang.IllegalStateException: ended at org.zkoss.zk.ui.impl.UiVisualizer.getAttrRespMap(UiVisualizer.java:282) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate(UiVisualizer.java:237) at org.zkoss.zk.ui.impl.UiEngineImpl.addSmartUpdate(UiEngineImpl.java:280) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1487) at org.zkoss.zss.ui.Spreadsheet.smartUpdate(Spreadsheet.java:4676) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1462) at org.zkoss.zss.ui.Spreadsheet.smartUpdate(Spreadsheet.java:4672) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1527) at org.zkoss.zk.ui.AbstractComponent.addEventListener(AbstractComponent.java:2039) at org.zkoss.zss.ui.sys.ActionHandler.init(ActionHandler.java:612) at org.zkoss.zss.ui.sys.ActionHandler.<init>(ActionHandler.java:145) at org.zkoss.zss.ui.Spreadsheet$DefaultToolbarActionHandler.<init>(Spreadsheet.java:4815) at org.zkoss.zss.ui.Spreadsheet.getActionHandler(Spreadsheet.java:4198) at org.zkoss.zss.ui.Spreadsheet.renderProperties(Spreadsheet.java:1538) at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1740) at org.zkoss.zk.ui.AbstractComponent.redrawChildren(AbstractComponent.java:1819) at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1759) at org.zkoss.zk.ui.AbstractComponent.redrawChildren(AbstractComponent.java:1819) at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:1759) at org.zkoss.zk.ui.impl.UiVisualizer.redraw(UiVisualizer.java:920) at org.zkoss.zk.ui.impl.UiVisualizer.redrawComponents(UiVisualizer.java:932) at org.zkoss.zk.ui.impl.UiVisualizer.addResponsesForCreatedPerSiblings(UiVisualizer.java:787) at org.zkoss.zk.ui.impl.UiVisualizer.getResponses(UiVisualizer.java:647) at org.zkoss.zk.ui.impl.UiEngineImpl.getResponses(UiEngineImpl.java:1332) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1150) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:562) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:457) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:465) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at javax.servlet.http.HttpServlet.service(HttpServlet.java:814) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:521) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.__doHandle(ContextHandler.java:1031) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:349) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:925) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:857) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534) at java.lang.Thread.run(Thread.java:680) {code}
    via by k2nakamura,
  • Found the error: java.lang.IllegalStateException: UI can not be modified in the rendering phase When closed the tab containing bind to include Example file: tab_error.zul <zk xmlns:h="http://www.w3.org/1999/xhtml"> <borderlayout width="100%" height="100%" style="padding: 0px" apply="virtualcode.web.base.TabErrorController"> <west width="200px" splittable="true" collapsible="true"> <vlayout spacing="0" height="100%" style="overflow:auto"> <panel title="menu"> <panelchildren> <vbox> <toolbarbutton id="btnPerson" label="person" /> </vbox> </panelchildren> </panel> </vlayout> </west> <east width="18%" splittable="true" visible="false" /> <center> <tabbox id="tabMain" width="100%" height="100%"> <tabs> </tabs> <tabpanels> </tabpanels> </tabbox> </center> </borderlayout> </zk> file: TabErrorComposer package virtualcode.web.base; import java.util.ArrayList; import java.util.List; import org.zkoss.bind.BindComposer; import org.zkoss.bind.annotation.Command; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.Events; import org.zkoss.zk.ui.util.ConventionWires; import org.zkoss.zul.Include; import org.zkoss.zul.Tab; import org.zkoss.zul.Tabbox; import org.zkoss.zul.Tabpanel; import org.zkoss.zul.Toolbarbutton; public class TabErrorController extends BindComposer<Component> { private static final long serialVersionUID = -4450762302282471893L; private Tabbox tabMain; private Toolbarbutton btnPerson; private List<String> persons; public TabErrorController() { super(); this.persons = new ArrayList<String>(); this.persons.add("Mike"); this.persons.add("Jonny"); } @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); ConventionWires.wireVariables(comp, this); btnPerson.addEventListener(Events.ON_CLICK, new OnClickMenuIten()); } public void addTab() { Tab tab = new Tab(); tab.setClosable(true); tab.setSelected(true); tab.setLabel("person"); Include inc = new Include("/seguro/tabs/person.zul"); inc.setProgressing(true); inc.setWidth("100%"); inc.setHeight("100%"); Tabpanel tabpan = new Tabpanel(); tabpan.appendChild(inc); tabMain.getTabs().appendChild(tab); tabMain.getTabpanels().appendChild(tabpan); } public List<String> getPersons(){ return persons; } private class OnClickMenuIten implements EventListener<Event> { public void onEvent(Event event) throws Exception { addTab(); } } } file: person.zul <zk> <zscript><![CDATA[ class PersonComposer extends org.zkoss.bind.BindComposer { private String selected = null; private String[] persons = new String[]{"Mike","Jonhy"}; public String getSelected(){ return this.selected; } public void setSelected(String selected){ this.selected = selected; } public String[] getPersons(){ return persons; } } ]]> </zscript> <window id="win" apply="PersonComposer" border="none" > <listbox id="lbx" vflex="true" model="@load(win$composer.persons)" selectedItem="@save(win$composer.selected)"> <listhead> <listheader label="name" width="100%"/> </listhead> <template name="model"> <listitem > <listcell label="@bind(each)" /> </listitem> </template> </listbox> <window title="Person"> <label value="Name" /> <textbox value="@bind(win$composer.selected)" width="90%"/> </window> </window> </zk> Error: 25/05/2012 09:58:42 org.zkoss.zk.ui.util.Configuration afterPageDetached:1125 SEVERE: Failed to invoke org.zkoss.bind.tracker.impl.BindUiLifeCycle@132c800 java.lang.IllegalStateException: UI can't be modified in the rendering phase at org.zkoss.zk.ui.impl.UiVisualizer.getAttrRespMap(UiVisualizer.java:299) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate0(UiVisualizer.java:254) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate(UiVisualizer.java:238) at org.zkoss.zk.ui.impl.UiEngineImpl.addSmartUpdate(UiEngineImpl.java:280) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1579) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1554) at org.zkoss.zk.ui.AbstractComponent.removeEventListener(AbstractComponent.java:2151) at org.zkoss.bind.impl.BinderImpl.removeEventCommandListenerIfExists(BinderImpl.java:1141) at org.zkoss.bind.impl.BinderImpl.removeBindings(BinderImpl.java:1744) at org.zkoss.bind.impl.BinderImpl.removeBindings(BinderImpl.java:1714) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings0(BindUiLifeCycle.java:114) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings(BindUiLifeCycle.java:97) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings(BindUiLifeCycle.java:101) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.afterPageDetached(BindUiLifeCycle.java:93) at org.zkoss.zk.ui.util.Configuration.afterPageDetached(Configuration.java:1123) at org.zkoss.zk.ui.impl.DesktopImpl.removePage(DesktopImpl.java:812) at org.zkoss.zk.ui.impl.UiVisualizer.getResponses(UiVisualizer.java:621) at org.zkoss.zk.ui.impl.UiEngineImpl.getResponses(UiEngineImpl.java:1408) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1220) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:558) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:456) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:464) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:594) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1366) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:351) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534) at java.lang.Thread.run(Thread.java:619)
    via by leandrogehlen,
  • Failed to invoke org.zkoss.bind.tracker.impl.BindUiLifeCycle@2392d604 java.lang.IllegalStateException: UI can't be modified in the rendering phase at org.zkoss.zk.ui.impl.UiVisualizer.getAttrRespMap(UiVisualizer.java:299) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate0(UiVisualizer.java:254) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate(UiVisualizer.java:238) at org.zkoss.zk.ui.impl.UiEngineImpl.addSmartUpdate(UiEngineImpl.java:280) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1542) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1517) at org.zkoss.zk.ui.AbstractComponent.removeEventListener(AbstractComponent.java:2114) at org.zkoss.bind.impl.BinderImpl.removeEventCommandListenerIfExists(BinderImpl.java:1185) at org.zkoss.bind.impl.BinderImpl.removeBindings(BinderImpl.java:1806) at org.zkoss.bind.impl.BinderImpl.removeBindings(BinderImpl.java:1751) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings0(BindUiLifeCycle.java:117) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.afterPageDetached(BindUiLifeCycle.java:95) at org.zkoss.zk.ui.util.Configuration.afterPageDetached(Configuration.java:1123) at org.zkoss.zk.ui.impl.DesktopImpl.removePage(DesktopImpl.java:792) at org.zkoss.zk.ui.impl.UiVisualizer.getResponses(UiVisualizer.java:612) at org.zkoss.zk.ui.impl.UiEngineImpl.getResponses(UiEngineImpl.java:1405) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1217) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:558) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:456) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:464) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) {code:xml} <zk> <window> <label multiline="true"> 1.click the reload button more than 3 time, the time stamp should change after each click </label> <window apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.zkoss.zktest.bind.issue.B00993IncludeReload')" title="a title"> <include src="@load(vm.url) @converter(vm.converter)"/> <button label="reload" onClick="@command('reload')"/> </window> </window> </zk> {code} {code:xml} <zk> <window> <zscript> java.util.Date date = new java.util.Date(); </zscript> Time : <label value="${date}"/> </window> </zk> {code} {code:java} package org.zkoss.zktest.bind.issue; import org.zkoss.bind.BindContext; import org.zkoss.bind.Converter; import org.zkoss.bind.annotation.NotifyChange; import org.zkoss.zk.ui.Component; public class B00993IncludeReload { String url = "B00993IncludeReload2.zul"; public String getUrl(){ return url; } @org.zkoss.bind.annotation.Command @NotifyChange("url") public void reload(){ } public Converter getConverter(){ return new Converter() { @Override public Object coerceToUi(Object val, Component component, BindContext ctx) { if(val instanceof String){ return val +"?tms=" + System.currentTimeMillis(); } return val; } @Override public Object coerceToBean(Object val, Component component, BindContext ctx) { return null; } }; } } {code}
    via by dennis,
  • {code} java.lang.IllegalStateException: UI can't be modified in the rendering phase at org.zkoss.zk.ui.impl.UiVisualizer.getAttrRespMap(UiVisualizer.java:299) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate0(UiVisualizer.java:254) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate(UiVisualizer.java:238) at org.zkoss.zk.ui.impl.UiEngineImpl.addSmartUpdate(UiEngineImpl.java:280) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1575) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1550) at org.zkoss.zk.ui.AbstractComponent.removeEventListener(AbstractComponent.java:2148) at org.zkoss.bind.impl.BinderImpl.removeEventCommandListenerIfExists(BinderImpl.java:1111) at org.zkoss.bind.impl.BinderImpl.removeBindings(BinderImpl.java:1698) at org.zkoss.bind.impl.BinderImpl.removeBindings(BinderImpl.java:1668) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings0(BindUiLifeCycle.java:123) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings(BindUiLifeCycle.java:106) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings(BindUiLifeCycle.java:110) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings(BindUiLifeCycle.java:110) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.afterPageDetached(BindUiLifeCycle.java:102) at org.zkoss.zk.ui.util.Configuration.afterPageDetached(Configuration.java:1123) at org.zkoss.zk.ui.impl.DesktopImpl.removePage(DesktopImpl.java:811) at org.zkoss.zk.ui.impl.UiVisualizer.getResponses(UiVisualizer.java:621) at org.zkoss.zk.ui.impl.UiEngineImpl.getResponses(UiEngineImpl.java:1409) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1221) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:583) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:481) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:489) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) {code} 1.use include to include a zul which contains textbox and value @bind. 2.try to set the include.src to empty, you will get exception in console (but doesn't effect system function)
    via by dennis,
  • Found the error: java.lang.IllegalStateException: UI can not be modified in the rendering phase When closed the tab containing bind to include Example file: tab_error.zul <zk xmlns:h="http://www.w3.org/1999/xhtml"> <borderlayout width="100%" height="100%" style="padding: 0px" apply="virtualcode.web.base.TabErrorController"> <west width="200px" splittable="true" collapsible="true"> <vlayout spacing="0" height="100%" style="overflow:auto"> <panel title="menu"> <panelchildren> <vbox> <toolbarbutton id="btnPerson" label="person" /> </vbox> </panelchildren> </panel> </vlayout> </west> <east width="18%" splittable="true" visible="false" /> <center> <tabbox id="tabMain" width="100%" height="100%"> <tabs> </tabs> <tabpanels> </tabpanels> </tabbox> </center> </borderlayout> </zk> file: TabErrorComposer package virtualcode.web.base; import java.util.ArrayList; import java.util.List; import org.zkoss.bind.BindComposer; import org.zkoss.bind.annotation.Command; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.Events; import org.zkoss.zk.ui.util.ConventionWires; import org.zkoss.zul.Include; import org.zkoss.zul.Tab; import org.zkoss.zul.Tabbox; import org.zkoss.zul.Tabpanel; import org.zkoss.zul.Toolbarbutton; public class TabErrorController extends BindComposer<Component> { private static final long serialVersionUID = -4450762302282471893L; private Tabbox tabMain; private Toolbarbutton btnPerson; private List<String> persons; public TabErrorController() { super(); this.persons = new ArrayList<String>(); this.persons.add("Mike"); this.persons.add("Jonny"); } @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); ConventionWires.wireVariables(comp, this); btnPerson.addEventListener(Events.ON_CLICK, new OnClickMenuIten()); } public void addTab() { Tab tab = new Tab(); tab.setClosable(true); tab.setSelected(true); tab.setLabel("person"); Include inc = new Include("/seguro/tabs/person.zul"); inc.setProgressing(true); inc.setWidth("100%"); inc.setHeight("100%"); Tabpanel tabpan = new Tabpanel(); tabpan.appendChild(inc); tabMain.getTabs().appendChild(tab); tabMain.getTabpanels().appendChild(tabpan); } public List<String> getPersons(){ return persons; } private class OnClickMenuIten implements EventListener<Event> { public void onEvent(Event event) throws Exception { addTab(); } } } file: person.zul <zk> <zscript><![CDATA[ class PersonComposer extends org.zkoss.bind.BindComposer { private String selected = null; private String[] persons = new String[]{"Mike","Jonhy"}; public String getSelected(){ return this.selected; } public void setSelected(String selected){ this.selected = selected; } public String[] getPersons(){ return persons; } } ]]> </zscript> <window id="win" apply="PersonComposer" border="none" > <listbox id="lbx" vflex="true" model="@load(win$composer.persons)" selectedItem="@save(win$composer.selected)"> <listhead> <listheader label="name" width="100%"/> </listhead> <template name="model"> <listitem > <listcell label="@bind(each)" /> </listitem> </template> </listbox> <window title="Person"> <label value="Name" /> <textbox value="@bind(win$composer.selected)" width="90%"/> </window> </window> </zk> Error: 25/05/2012 09:58:42 org.zkoss.zk.ui.util.Configuration afterPageDetached:1125 SEVERE: Failed to invoke org.zkoss.bind.tracker.impl.BindUiLifeCycle@132c800 java.lang.IllegalStateException: UI can't be modified in the rendering phase at org.zkoss.zk.ui.impl.UiVisualizer.getAttrRespMap(UiVisualizer.java:299) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate0(UiVisualizer.java:254) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate(UiVisualizer.java:238) at org.zkoss.zk.ui.impl.UiEngineImpl.addSmartUpdate(UiEngineImpl.java:280) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1579) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1554) at org.zkoss.zk.ui.AbstractComponent.removeEventListener(AbstractComponent.java:2151) at org.zkoss.bind.impl.BinderImpl.removeEventCommandListenerIfExists(BinderImpl.java:1141) at org.zkoss.bind.impl.BinderImpl.removeBindings(BinderImpl.java:1744) at org.zkoss.bind.impl.BinderImpl.removeBindings(BinderImpl.java:1714) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings0(BindUiLifeCycle.java:114) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings(BindUiLifeCycle.java:97) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings(BindUiLifeCycle.java:101) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.afterPageDetached(BindUiLifeCycle.java:93) at org.zkoss.zk.ui.util.Configuration.afterPageDetached(Configuration.java:1123) at org.zkoss.zk.ui.impl.DesktopImpl.removePage(DesktopImpl.java:812) at org.zkoss.zk.ui.impl.UiVisualizer.getResponses(UiVisualizer.java:621) at org.zkoss.zk.ui.impl.UiEngineImpl.getResponses(UiEngineImpl.java:1408) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1220) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:558) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:456) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:464) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:594) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1366) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:351) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534) at java.lang.Thread.run(Thread.java:619)
    via by leandrogehlen,
  • Failed to invoke org.zkoss.bind.tracker.impl.BindUiLifeCycle@2392d604 java.lang.IllegalStateException: UI can't be modified in the rendering phase at org.zkoss.zk.ui.impl.UiVisualizer.getAttrRespMap(UiVisualizer.java:299) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate0(UiVisualizer.java:254) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate(UiVisualizer.java:238) at org.zkoss.zk.ui.impl.UiEngineImpl.addSmartUpdate(UiEngineImpl.java:280) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1542) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1517) at org.zkoss.zk.ui.AbstractComponent.removeEventListener(AbstractComponent.java:2114) at org.zkoss.bind.impl.BinderImpl.removeEventCommandListenerIfExists(BinderImpl.java:1185) at org.zkoss.bind.impl.BinderImpl.removeBindings(BinderImpl.java:1806) at org.zkoss.bind.impl.BinderImpl.removeBindings(BinderImpl.java:1751) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings0(BindUiLifeCycle.java:117) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.afterPageDetached(BindUiLifeCycle.java:95) at org.zkoss.zk.ui.util.Configuration.afterPageDetached(Configuration.java:1123) at org.zkoss.zk.ui.impl.DesktopImpl.removePage(DesktopImpl.java:792) at org.zkoss.zk.ui.impl.UiVisualizer.getResponses(UiVisualizer.java:612) at org.zkoss.zk.ui.impl.UiEngineImpl.getResponses(UiEngineImpl.java:1405) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1217) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:558) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:456) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:464) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) {code:xml} <zk> <window> <label multiline="true"> 1.click the reload button more than 3 time, the time stamp should change after each click </label> <window apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.zkoss.zktest.bind.issue.B00993IncludeReload')" title="a title"> <include src="@load(vm.url) @converter(vm.converter)"/> <button label="reload" onClick="@command('reload')"/> </window> </window> </zk> {code} {code:xml} <zk> <window> <zscript> java.util.Date date = new java.util.Date(); </zscript> Time : <label value="${date}"/> </window> </zk> {code} {code:java} package org.zkoss.zktest.bind.issue; import org.zkoss.bind.BindContext; import org.zkoss.bind.Converter; import org.zkoss.bind.annotation.NotifyChange; import org.zkoss.zk.ui.Component; public class B00993IncludeReload { String url = "B00993IncludeReload2.zul"; public String getUrl(){ return url; } @org.zkoss.bind.annotation.Command @NotifyChange("url") public void reload(){ } public Converter getConverter(){ return new Converter() { @Override public Object coerceToUi(Object val, Component component, BindContext ctx) { if(val instanceof String){ return val +"?tms=" + System.currentTimeMillis(); } return val; } @Override public Object coerceToBean(Object val, Component component, BindContext ctx) { return null; } }; } } {code}
    via by dennis,
  • {code} java.lang.IllegalStateException: UI can't be modified in the rendering phase at org.zkoss.zk.ui.impl.UiVisualizer.getAttrRespMap(UiVisualizer.java:299) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate0(UiVisualizer.java:254) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate(UiVisualizer.java:238) at org.zkoss.zk.ui.impl.UiEngineImpl.addSmartUpdate(UiEngineImpl.java:280) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1575) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1550) at org.zkoss.zk.ui.AbstractComponent.removeEventListener(AbstractComponent.java:2148) at org.zkoss.bind.impl.BinderImpl.removeEventCommandListenerIfExists(BinderImpl.java:1111) at org.zkoss.bind.impl.BinderImpl.removeBindings(BinderImpl.java:1698) at org.zkoss.bind.impl.BinderImpl.removeBindings(BinderImpl.java:1668) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings0(BindUiLifeCycle.java:123) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings(BindUiLifeCycle.java:106) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings(BindUiLifeCycle.java:110) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.removeBindings(BindUiLifeCycle.java:110) at org.zkoss.bind.tracker.impl.BindUiLifeCycle.afterPageDetached(BindUiLifeCycle.java:102) at org.zkoss.zk.ui.util.Configuration.afterPageDetached(Configuration.java:1123) at org.zkoss.zk.ui.impl.DesktopImpl.removePage(DesktopImpl.java:811) at org.zkoss.zk.ui.impl.UiVisualizer.getResponses(UiVisualizer.java:621) at org.zkoss.zk.ui.impl.UiEngineImpl.getResponses(UiEngineImpl.java:1409) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1221) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:583) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:481) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:489) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) {code} 1.use include to include a zul which contains textbox and value @bind. 2.try to set the include.src to empty, you will get exception in console (but doesn't effect system function)
    via by dennis,
    • java.lang.IllegalStateException: UI can't be modified in the rendering phase at org.zkoss.zk.ui.impl.UiVisualizer.getAttrRespMap(UiVisualizer.java:299) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate0(UiVisualizer.java:254) at org.zkoss.zk.ui.impl.UiVisualizer.addSmartUpdate(UiVisualizer.java:238) at org.zkoss.zk.ui.impl.UiEngineImpl.addSmartUpdate(UiEngineImpl.java:280) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1584) at org.zkoss.zk.ui.AbstractComponent.smartUpdate(AbstractComponent.java:1559) at org.zkoss.zul.impl.XulElement.setTooltip(XulElement.java:286) at org.zkoss.zul.impl.XulElement.setTooltip(XulElement.java:299) at org.zkoss.zul.impl.XulElement.renderProperties(XulElement.java:313) at org.zkoss.zul.impl.MeshElement.renderProperties(MeshElement.java:215) at org.zkoss.zul.Listbox.renderProperties(Listbox.java:3140)
    No Bugmate found.