You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Thorsten Schöning <ts...@am-soft.de> on 2019/10/01 17:45:45 UTC
Overridden Application.getExceptionMapperProvider not called
Hi all,
I'm migrating from Wicket 7 to 8 and have the problem that my custom
exception mapper is not called anymore. I'm simply extending
"AuthenticatedWebApplication" and overriding the following method:
> @Override
> public Supplier<IExceptionMapper> getExceptionMapperProvider()
> {
> return this.exMapProv;
> }
Eclipse says everything is OK, I can even set a valid breakpoint at
the return, but that never fires. Instead, if I set a breakpoint in
"Application" at the following place, I can see that
"getExceptionMapperProvider" uses the default implementation:
> public final RequestCycle createRequestCycle(final Request request, final Response response)
> {
> RequestCycleContext context = new RequestCycleContext(request, response,
> getRootRequestMapper(), getExceptionMapperProvider().get());
I've already cleared caches in the web server, tebuilt the app and
such Voodoo. Any additional ideas? Thanks!
Mit freundlichen Grüßen,
Thorsten Schöning
--
Thorsten Schöning E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/
Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
Re: Overridden Application.getExceptionMapperProvider not called
Posted by Sven Meier <sv...@meiers.net>.
> not enough Voodoo.
... or too much of it :P
Sven
On 01.10.19 20:34, Thorsten Schöning wrote:
> Guten Tag Thorsten Schöning,
> am Dienstag, 1. Oktober 2019 um 19:45 schrieben Sie:
>
>> I've already cleared caches in the web server, tebuilt the app and
>> such Voodoo. Any additional ideas? Thanks!
> Ignore that, not enough Voodoo. :-) After I additionally cleaned out
> things and rebuilt stuff etc.,my custom exception mapper works as
> expected.
>
> Mit freundlichen Grüßen,
>
> Thorsten Schöning
>
Re: Overridden Application.getExceptionMapperProvider not called
Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Thorsten Schöning,
am Dienstag, 1. Oktober 2019 um 19:45 schrieben Sie:
> I've already cleared caches in the web server, tebuilt the app and
> such Voodoo. Any additional ideas? Thanks!
Ignore that, not enough Voodoo. :-) After I additionally cleaned out
things and rebuilt stuff etc.,my custom exception mapper works as
expected.
Mit freundlichen Grüßen,
Thorsten Schöning
--
Thorsten Schöning E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/
Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow