Hi Francois,
yes, that's a non-request thread.
IExceptionMapper isn't a general exception handler, it is a mapper from
exceptions to request handlers.
Using it here does not make sense.
Have fun
Sven
On 21.11.19 18:12, Francois Meillet wrote:
WARNING [Catalina-utility-1]
WARNING [Catalina-utility-1]
org.apache.catalina.core.StandardContext.backgroundProcess Exception lors du
traitement d'arrière plan du gestionnaire de sessions
[StandardManager[StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]]
java.lang.RuntimeException
Yes, I mean a non-web-request thread, i.e. when the session expires as
you've written.
Sven
On 21.11.19 17:52, Martin Grigorov wrote:
On Thu, Nov 21, 2019 at 6:30 PM Sven Meier wrote:
Hi,
actually #sessionUnbound() is called *on* the application instance, so
the ExceptionMapper is
On Thu, Nov 21, 2019 at 6:30 PM Sven Meier wrote:
> Hi,
>
> actually #sessionUnbound() is called *on* the application instance, so
> the ExceptionMapper is available.
>
oh, right. silly me!
> But ExceptionMapper maps an exception to a requestHandler, this doesn't
> make sense for an
Hi,
actually #sessionUnbound() is called *on* the application instance, so
the ExceptionMapper is available.
But ExceptionMapper maps an exception to a requestHandler, this doesn't
make sense for an exception happening on a worker thread.
Hope this helps
Sven
On 21.11.19 16:37, Martin
thanks Martin
François
> Le 21 nov. 2019 à 16:37, Martin Grigorov a écrit :
>
> Hi Francois,
>
> #sessionUnbound() is called in two contexts:
> 1) the user clicked the Logout button - in this case the call is executed
> in http worker thread where there is a ThreadContext, i.e.
>
Hi Francois,
#sessionUnbound() is called in two contexts:
1) the user clicked the Logout button - in this case the call is executed
in http worker thread where there is a ThreadContext, i.e.
Application.get(), Session.get() and RequestCycle.get() would work
here, I think, Wicket should use the
Hi,
Any RuntimeException thrown in Application # newSession(Request request,
Response response) is handled by the DefaultExceptionMapper #
mapUnexpectedExceptions(Exception e, final Application application)
but
Any RuntimeException thrown in Application # sessionUnbound(String sessionid)
is