Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-578

AbstractTextComponent is using onAttach when it should be onBeforeRender

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0-beta1
    • 1.3.0-beta2
    • wicket
    • None

    Description

      See http://www.nabble.com/Wicket-Examples-1.3-%28latest%29-that-give-errors-tf3761594.html#a10632812

      This is the stacktrace that represents the problem:

      09:14:01,917 ERROR RequestCycle:1205 - Cannot modify component hierarchy during attach phase
      org.apache.wicket.WicketRuntimeException: Cannot modify component hierarchy during attach phase
      at org.apache.wicket.Component.checkHierarchyChange(Component.java:3593)
      at org.apache.wicket.Component.addStateChange(Component.java:2602)
      at org.apache.wicket.markup.html.form.FormComponent.setRequired (FormComponent.java:723)
      at org.apache.wicket.markup.html.form.FormComponent.setType(FormComponent.java:740)
      at org.apache.wicket.markup.html.form.AbstractTextComponent.onAttach(AbstractTextComponent.java :106)
      at org.apache.wicket.MarkupContainer.internalAttach2(MarkupContainer.java:1368)
      at org.apache.wicket.Component.attach(Component.java:2957)
      at org.apache.wicket.MarkupContainer.addedComponent (MarkupContainer.java:875)
      at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:151)
      at com.csc.aims.framework.wicket.DataEntryPanel.createTextField(DataEntryPanel.java:190)
      at com.csc.aims.framework.wicket.DataEntryPanel.createTextField(DataEntryPanel.java:176)
      at com.csc.aims.specchange.wicket.RomRatesPanel.createComponents(RomRatesPanel.java:111)
      at com.csc.aims.framework.wicket.InitializablePanel.onBeforeRender (InitializablePanel.java:65)
      at com.csc.aims.framework.wicket.DataEntryPanel.onBeforeRender(DataEntryPanel.java:364)
      at org.apache.wicket.Component.beforeRender(Component.java:3037)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender(Component.java:3046)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren (MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender(Component.java:3046)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender (Component.java:3046)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender(Component.java:3046)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren (MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender(Component.java:3046)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender (Component.java:3046)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender(Component.java:3046)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren (MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender(Component.java:3046)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender (Component.java:3046)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender(Component.java:3046)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren (MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender(Component.java:3046)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender (Component.java:3046)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1433)
      at org.apache.wicket.Component.beforeRender(Component.java:3046)
      at org.apache.wicket.Page.renderPage (Page.java:872)
      at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:223)
      at org.apache.wicket.request.AbstractRequestCycleProcessor.respond (AbstractRequestCycleProcessor.java:103)
      at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1011)
      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1073)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1142)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:490)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java :248)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:178)
      at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java :664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:595)

      Attachments

        Activity

          People

            jcompagner Johan Compagner
            cdeal Chuck Deal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: