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

SignInPanel IllegalArgumentException exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.5, 1.4-RC1
    • 1.4-RC3
    • wicket-auth-roles
    • None

    Description

      If HomePage don't have a default constructor there seems to be a problem with SignInPanel – after the form submission an exception occured: java.lang.IllegalArgumentException: wrong number of arguments.

      The following code in DefaultPageFactory class might be bogus:
      if (argument != null)
      return (Page)constructor.newInstance(new Object[]

      { argument }

      );
      else
      return (Page)constructor.newInstance(new Object[] {});

      Quickfix for solving the problem - replace "(PageParameters)null" with "new PageParameters()":
      setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage(getApplication().getHomePage(), new PageParameters()));

      Attachments

        Issue Links

          Activity

            People

              jdonnerstag Juegen Donnerstag
              projuri Juri Prokofiev
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: