Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7B4E52009C6 for ; Sun, 1 May 2016 10:44:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7A00B1609AB; Sun, 1 May 2016 10:44:14 +0200 (CEST) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F01061609A9 for ; Sun, 1 May 2016 10:44:13 +0200 (CEST) Received: (qmail 87322 invoked by uid 500); 1 May 2016 08:44:13 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 87311 invoked by uid 500); 1 May 2016 08:44:13 -0000 Delivered-To: apmail-openejb-commits@openejb.apache.org Received: (qmail 87308 invoked by uid 99); 1 May 2016 08:44:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 May 2016 08:44:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 03BA82C14F9 for ; Sun, 1 May 2016 08:44:13 +0000 (UTC) Date: Sun, 1 May 2016 08:44:13 +0000 (UTC) From: "Romain Manni-Bucau (JIRA)" To: commits@openejb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TOMEE-1793) PostConstruct and PreRenderView called twice on load MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 01 May 2016 08:44:14 -0000 [ https://issues.apache.org/jira/browse/TOMEE-1793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15265679#comment-15265679 ] Romain Manni-Bucau commented on TOMEE-1793: ------------------------------------------- PostConstruct can be called one time too much by tomee integration but would need a project to check since it shouldnt happen with cdi > PostConstruct and PreRenderView called twice on load > ---------------------------------------------------- > > Key: TOMEE-1793 > URL: https://issues.apache.org/jira/browse/TOMEE-1793 > Project: TomEE > Issue Type: Bug > Components: TomEE Core Server > Affects Versions: 1.7.3, 1.7.4 > Reporter: Matthew Broadhead > Attachments: threadstack20160501.txt > > > May have started after recent Oracle java update (1.8.0-92-b14) but suddenly all ManagedBeans seem to be calling PostConstruct and PreRenderView twice on View load. Second time it is called the request parameters are empty. Result is that any redirect in PreRenderView gets executed. Determined second request was a Partial Request so surrounded PreRenderView listener with > {code} > if (!FacesContext.getCurrentInstance().getPartialViewContext().isPartialRequest()) { > ... > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)