From users-return-95092-archive-asf-public=cust-asf.ponee.io@wicket.apache.org Thu Nov 21 16:30:18 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id C00E1180660 for ; Thu, 21 Nov 2019 17:30:17 +0100 (CET) Received: (qmail 30926 invoked by uid 500); 21 Nov 2019 16:30:16 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 30912 invoked by uid 99); 21 Nov 2019 16:30:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Nov 2019 16:30:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 719DAC2568 for ; Thu, 21 Nov 2019 16:30:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.002 X-Spam-Level: * X-Spam-Status: No, score=1.002 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=disabled Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Cc1SjAtYnWtm for ; Thu, 21 Nov 2019 16:30:13 +0000 (UTC) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=212.227.126.135; helo=mout.kundenserver.de; envelope-from=sven@meiers.net; receiver= Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id E682B7DE1E for ; Thu, 21 Nov 2019 16:30:12 +0000 (UTC) Received: from [192.168.178.53] ([94.134.95.192]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MLi4W-1iGIUd3iZk-00Hhq1 for ; Thu, 21 Nov 2019 17:30:11 +0100 Subject: Re: Application # newSession # sessionUnbound - RuntimeException To: users@wicket.apache.org References: <7777B178-9176-4B4A-BA93-03325AAE3F19@gmail.com> From: Sven Meier Message-ID: <7731670d-c34b-5cf5-2557-73f6307d9499@meiers.net> Date: Thu, 21 Nov 2019 17:30:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Provags-ID: V03:K1:QQQ5CAkZl3K9OodoL9S7PHRfW4nNGBxsYjW3TUn4hzzQ6wjzUma vnQc61SCAOlbtmQzXCurmqenVUKzA0u76FA3ZRf27bHVyljcCUfqo3o+5OYkstjJXBTGAN5 AUX0pYZLvCQoT14DE0vMHQyMLQHuagT8FiTZzLZ2Bq2Yxh/sUNPPn9ZElk9TS/4RxpzX4UC llT6dwdmerzd8aMQyga4A== X-UI-Out-Filterresults: notjunk:1;V03:K0:/ToiUUX0H7A=:3l8xA5tq+Wdu63mz5nEuXS Q30qZAy9t8Y3DKiTj3pp1IWO5VR8L9IjC6MnopH5bTvLT7BTep6zxo+Mhx01ixoDNHFLodSuF nSC0Gry7zDj4gnZJU53ligq6UHL7oo6WQlJEjxGXwO2oGESXFiC7qzqWevvGRUYv2W9Sh9NgA GmXkTEgT6Io49RN755m/vvbfWs8IqWFhaVBv/Md913bcRWJRM5x1LN6WAlBxc68laLrOEykvw C9nePdL9TltKAVVHLTiknXnVbm7aDeb6UdPZpUQaD+WF8KX/T5Nzh1kHXhJmAqQcRmLrE+44t egYnkbPrOXSwvzkTd3R6r5/oymdsT9BQ2Osh9qOyiB68SMy0DYlvy4kC0DgmRF2ix/CTBd5oC uJwL8o5fK1EXr2QwA+MGtRIVCyqJzgxOiIZzz5xV+AACWH7zeNt6Qa7Skp8qQ/R8nSfTApRyr 0XzKIkhtM3DisYnO+EkZu3YqPLP9fAvl5vH4EoFvJhs8jQs22ldZh2bBuawI/H+7vjiIVTkCk wuj2PknAxdwZ8JYyKXjZw7yP24DArlHsihWOYbVy/l4cldz4WIGG2tynh1ld7YjxssoS3v1fo H5z4DQUJC0Rdu+tfI451RT8t8MalhQB/BObkbiAKexn3mvug9oRGWYRSNsflDUg/Tfs1bl6UI GVhndVKWyuvTcluMW1jSaWXQoVdsbxiVm0Tqj2tdqXaSLGPf2j0+Votr5/Hq4rHxV923MO7uh YCtvGrs0+TH7lolz54iq5Te8v3GVxqMXeiCIHFm+vh9K/WegBnIkp5fxiUV9d4QWu9T7ICS9g 0tosZO+sWov3SW3CKkFxPCpivrEj92Utqq0HkSw7FTfSSDwUqnSmT8R/pv6Mewn1ZBQshLi45 Y2pjY8q6KB2/LSG6+rDg== 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 Grigorov wrote: > 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 ExceptionMapper > 2) when the user session has timed out - in this case the web container > (Tomcat/Jetty) will execute this method in non-worker thread and > Application.get() would be null, so we cannot get a reference to the > ExceptionMapper > > On Thu, Nov 21, 2019 at 5:01 PM Francois Meillet > wrote: > >> 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 not handled >> >> Is that normal ? >> >> François >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >> For additional commands, e-mail: users-help@wicket.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org