In migrating to wicket 1.5 from 1.4 I used this to redirect to my error page when an exception is thrown. But when I do this it is trying to instantiate a new copy of the page rather than using the one I pass in.
IPageProvider provider = new PageProvider(new ClientErrorPage(ex)); return new RenderPageRequestHandler(provider, RedirectPolicy.ALWAYS_REDIRECT);