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

Error about misplaced <wicket:head> very uninformative and incorrect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4-RC1
    • Fix Version/s: 1.3.6, 1.4-RC2
    • Component/s: wicket
    • Labels:
      None

      Description

      I got the exception below when I misplaced a <wicket:head> tag. There are two things wrong with it:

      1) It does not tell me in which file I made the mistake.
      2) I had put the <wicket:head> in a <wicket:extend> and not in a <wicket:panel> or <wicket:border>.

      WicketMessage: Mis-placed <wicket:head>. <wicket:head> must be outside of <wicket:panel> and <wicket:border>

      Root cause:

      org.apache.wicket.markup.MarkupException: Mis-placed <wicket:head>. <wicket:head> must be outside of <wicket:panel> and <wicket:border>
      at org.apache.wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:150)
      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
      at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1569)
      at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1493)
      at org.apache.wicket.Component.renderComponent(Component.java:2564)
      at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1504)
      at org.apache.wicket.Component.render(Component.java:2400)
      at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:232)
      at org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
      at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1569)
      at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1493)
      at org.apache.wicket.Component.renderComponent(Component.java:2564)
      at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1504)
      at org.apache.wicket.Component.render(Component.java:2400)
      at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:232)
      at org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
      at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1569)
      at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1493)
      at org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:135)
      at org.apache.wicket.Component.renderComponent(Component.java:2564)
      at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1504)
      at org.apache.wicket.Component.render(Component.java:2400)
      at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:232)
      at org.apache.wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:78)
      at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
      at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1520)
      at org.apache.wicket.Page.onRender(Page.java:1501)
      at org.apache.wicket.Component.render(Component.java:2400)
      at org.apache.wicket.Page.renderPage(Page.java:905)
      at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:249)
      at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
      at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1179)
      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1250)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1351)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:497)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:595)

        Attachments

          Activity

            People

            • Assignee:
              ivaynberg Igor Vaynberg
              Reporter:
              sebster Sebastiaan van Erk
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: