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

IllegalArgumentException on ReloadingWicketFilter and inheritance markup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.9, 6.3.0
    • 6.4.0, 1.5.10
    • wicket
    • None

    Description

      simple inheritance markup and ReloadingWicketFilter set like below, throw from org.apache.wicket.markup.MarkupFactory#getContainerClass(MarkupContainer, Class<?>)

      ReloadingClassLoader.includePattern("wicket.inheritance.sample.*");

      Is this way wrong ?

      caused stacktrace is
      Caused by: java.lang.IllegalArgumentException: Parameter clazz must be an instance of wicket.inheritance.sample.ChildPage1, but is a wicket.inheritance.sample.HomePage
      at org.apache.wicket.markup.MarkupFactory.getContainerClass(MarkupFactory.java:378)
      at org.apache.wicket.markup.MarkupFactory.getMarkup(MarkupFactory.java:228)
      at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.getBaseMarkup(InheritedMarkupMarkupLoader.java:96)
      at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:66)
      at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:51)
      at org.apache.wicket.markup.MarkupFactory.loadMarkup(MarkupFactory.java:430)

      Attachments

        1. eclipse-project.zip
          28 kB
          jun ozeki

        Activity

          People

            svenmeier Sven Meier
            komusubi jun ozeki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: