org.zkoss.zk.ui.UiException: Listitem's parent must be Listbox, not <Chosenbox cRyP7>

ZK-Tracker | mujawarv | 4 years ago
  1. 0

    When i used databind with mvvm i got this exception >org.zkoss.zk.ui.UiException: Listitem's parent must be Listbox, not <Chosenbox cRyP7> >> at org.zkoss.zul.Listitem.beforeParentChanged(Listitem.java:339) >> at org.zkoss.zk.ui.AbstractComponent.setParent(AbstractComponent.java:970) >> at org.zkoss.zk.ui.AbstractComponent.insertBefore(AbstractComponent.java:1110) >> at org.zkoss.zk.ui.impl.AbstractUiFactory.newComponent(AbstractUiFactory.java:100) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:801) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:770) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:679) >> at org.zkoss.zk.ui.impl.UiEngineImpl.access$800(UiEngineImpl.java:86) >> at org.zkoss.zk.ui.impl.UiEngineImpl$TemplateImpl.create(UiEngineImpl.java:2163) >> at org.zkoss.zkmax.bind.impl.BindChosenboxRenderer.render(BindChosenboxRenderer.java:70) >> at org.zkoss.zkmax.zul.Chosenbox.prepareItems(Chosenbox.java:571) >> at org.zkoss.zkmax.zul.Chosenbox.prepareData(Chosenbox.java:530) >> at org.zkoss.zkmax.zul.Chosenbox.onInitRender(Chosenbox.java:700) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2718) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2648) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) >> at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1709) >> at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1494) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:463) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:316) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:135) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) >> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) >> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) >> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) >> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:550) >> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380) >> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243) >> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188) >> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166) >> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288) >> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) >> at java.lang.Thread.run(Unknown Source)

    ZK-Tracker | 4 years ago | mujawarv
    org.zkoss.zk.ui.UiException: Listitem's parent must be Listbox, not <Chosenbox cRyP7>
  2. 0

    When i used databind with mvvm i got this exception >org.zkoss.zk.ui.UiException: Listitem's parent must be Listbox, not <Chosenbox cRyP7> >> at org.zkoss.zul.Listitem.beforeParentChanged(Listitem.java:339) >> at org.zkoss.zk.ui.AbstractComponent.setParent(AbstractComponent.java:970) >> at org.zkoss.zk.ui.AbstractComponent.insertBefore(AbstractComponent.java:1110) >> at org.zkoss.zk.ui.impl.AbstractUiFactory.newComponent(AbstractUiFactory.java:100) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:801) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:770) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:679) >> at org.zkoss.zk.ui.impl.UiEngineImpl.access$800(UiEngineImpl.java:86) >> at org.zkoss.zk.ui.impl.UiEngineImpl$TemplateImpl.create(UiEngineImpl.java:2163) >> at org.zkoss.zkmax.bind.impl.BindChosenboxRenderer.render(BindChosenboxRenderer.java:70) >> at org.zkoss.zkmax.zul.Chosenbox.prepareItems(Chosenbox.java:571) >> at org.zkoss.zkmax.zul.Chosenbox.prepareData(Chosenbox.java:530) >> at org.zkoss.zkmax.zul.Chosenbox.onInitRender(Chosenbox.java:700) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2718) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2648) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) >> at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1709) >> at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1494) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:463) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:316) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:135) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) >> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) >> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) >> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) >> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:550) >> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380) >> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243) >> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188) >> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166) >> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288) >> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) >> at java.lang.Thread.run(Unknown Source)

    ZK-Tracker | 4 years ago | mujawarv
    org.zkoss.zk.ui.UiException: Listitem's parent must be Listbox, not <Chosenbox cRyP7>
  3. 0

    The issue: - An index page uses Composition (org.zkoss.zk.ui.util.Composition) and defines content to fill a common template for page layout (<?init class="org.zkoss.zk.ui.util.Composition" arg0="~./template/public-page-template.zul"?>) - A Div element with ID "headerDiv" is defined in page template (<div id="header" style="background-color:grey; width: 100%; height: 100px" />) - A custom error page (error.zul, defined in web.xml <error-page> elements) uses the same common page template to show an error message when exception occurs while loading ZUML document. - When Exception is thrown while composing an index page, composing the error page fails with the following exception: SEVERE: Exception Processing ErrorPage[exceptionType=java.lang.Throwable, location=/error.zul] org.zkoss.zk.ui.UiException: Replicated UUID is not allowed for class org.zkoss.zhtml.Div: header at org.zkoss.zk.ui.AbstractComponent.setId(AbstractComponent.java:513) 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.zk.ui.metainfo.Property.assign0(Property.java:284) at org.zkoss.zk.ui.metainfo.Property.assign(Property.java:169) at org.zkoss.zk.ui.metainfo.ComponentInfo.applyProperties(ComponentInfo.java:729) at org.zkoss.zk.ui.impl.AbstractUiFactory.newComponent(AbstractUiFactory.java:106) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:809) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:778) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:687) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:651) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:824) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:778) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:687) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:651) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:824) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:778) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:687) at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:651) at org.zkoss.zk.ui.impl.UiEngineImpl.createComponents(UiEngineImpl.java:1032) at org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:246) at org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:238) at org.zkoss.zk.ui.util.Composition.doInit(Composition.java:92) at org.zkoss.zk.ui.metainfo.InitiatorInfo.doInit(InitiatorInfo.java:148) at org.zkoss.zk.ui.metainfo.InitiatorInfo.newInitiator(InitiatorInfo.java:143) at org.zkoss.zk.ui.metainfo.PageDefinition.doInit(PageDefinition.java:396) at org.zkoss.zk.ui.impl.Initiators.doInit(Initiators.java:58) at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:382) at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:316) at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215) at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136) ... See attached sample project to reproduce the issue: GET http://localhost:9090/webapp/404 Will result in 404 error and compose the error page correctly GET http://localhost:9090/webapp/index.zul Will result in the reported exception (Replicated UUID is not allowed)

    ZK-Tracker | 4 years ago | gediminas
    org.zkoss.zk.ui.UiException: Replicated UUID is not allowed for class org.zkoss.zhtml.Div: header
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Servlet.service() servlet zkLoader threw excp

    adempiere | 7 years ago | waliahimanshu
    org.zkoss.zk.ui.UiException: The new page must be in the same desktop:
  6. 0

    h4. Problem description: When using ZK bind template to render group model. The exception show up: {code:java} 嚴重的: >>org.zkoss.zk.ui.UiException: Groupfoot must be placed after the last Row of the Group >> at org.zkoss.zul.Rows.insertBefore(Rows.java:276) >> at org.zkoss.zk.ui.impl.AbstractUiFactory.newComponent(AbstractUiFactory.java:95) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:795) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:765) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:674) >> at org.zkoss.zk.ui.impl.UiEngineImpl.access$0(UiEngineImpl.java:658) >> at org.zkoss.zk.ui.impl.UiEngineImpl$TemplateImpl.create(UiEngineImpl.java:2150) >> at org.zkoss.bind.impl.BindRowRenderer.render(BindRowRenderer.java:51) >> at org.zkoss.zul.Grid$Renderer.render(Grid.java:980) >> at org.zkoss.zul.Grid.doInitRenderer(Grid.java:899) >> at org.zkoss.zul.Grid.onInitRender(Grid.java:858) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2721) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2651) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) >> at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1696) >> at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1481) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:457) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:310) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:214) >> at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:134) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) >> 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.headerComplete(HttpConnection.java:928) >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) >> 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} Please refer attachment for source file (*.java & customModel.zul). h4. Reproducing Steps # prepare a ZK project and copy *.java and *.zul the project # visit customModel.zul and the above exception will occur.

    ZK-Tracker | 5 years ago | hawk
    org.zkoss.zk.ui.UiException: Groupfoot must be placed after the last Row of the Group

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.zkoss.zk.ui.UiException

      Listitem's parent must be Listbox, not <Chosenbox cRyP7>

      at org.zkoss.zul.Listitem.beforeParentChanged()
    2. ZK XUL Components
      Listitem.beforeParentChanged
      1. org.zkoss.zul.Listitem.beforeParentChanged(Listitem.java:339)
      1 frame
    3. ZK Kernel
      UiEngineImpl$TemplateImpl.create
      1. org.zkoss.zk.ui.AbstractComponent.setParent(AbstractComponent.java:970)
      2. org.zkoss.zk.ui.AbstractComponent.insertBefore(AbstractComponent.java:1110)
      3. org.zkoss.zk.ui.impl.AbstractUiFactory.newComponent(AbstractUiFactory.java:100)
      4. org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:801)
      5. org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:770)
      6. org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:679)
      7. org.zkoss.zk.ui.impl.UiEngineImpl.access$800(UiEngineImpl.java:86)
      8. org.zkoss.zk.ui.impl.UiEngineImpl$TemplateImpl.create(UiEngineImpl.java:2163)
      8 frames
    4. org.zkoss.zkmax
      Chosenbox.onInitRender
      1. org.zkoss.zkmax.bind.impl.BindChosenboxRenderer.render(BindChosenboxRenderer.java:70)
      2. org.zkoss.zkmax.zul.Chosenbox.prepareItems(Chosenbox.java:571)
      3. org.zkoss.zkmax.zul.Chosenbox.prepareData(Chosenbox.java:530)
      4. org.zkoss.zkmax.zul.Chosenbox.onInitRender(Chosenbox.java:700)
      4 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    6. ZK Kernel
      DHtmlLayoutServlet.doGet
      1. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2718)
      2. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2648)
      3. org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
      4. org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1709)
      5. org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1494)
      6. org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:463)
      7. org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:316)
      8. org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215)
      9. org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:135)
      9 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      2 frames
    8. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      7. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:550)
      8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)
      9 frames
    9. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
      3. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
      4. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
      4 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3. java.lang.Thread.run(Unknown Source)
      3 frames