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 B7047200B4B for ; Thu, 21 Jul 2016 11:08:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B594F160A6D; Thu, 21 Jul 2016 09:08:27 +0000 (UTC) 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 0C256160A68 for ; Thu, 21 Jul 2016 11:08:26 +0200 (CEST) Received: (qmail 69952 invoked by uid 500); 21 Jul 2016 09:08:21 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 68967 invoked by uid 99); 21 Jul 2016 09:08:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2016 09:08:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9FE7F2C0D59 for ; Thu, 21 Jul 2016 09:08:20 +0000 (UTC) Date: Thu, 21 Jul 2016 09:08:20 +0000 (UTC) From: "Josef Puff (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MYFACES-4057) Serializable ViewScopeContextualStorage references non-serializable BeanManager MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 21 Jul 2016 09:08:27 -0000 [ https://issues.apache.org/jira/browse/MYFACES-4057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15387405#comment-15387405 ] Josef Puff commented on MYFACES-4057: ------------------------------------- I've the same issue. Can we do something to speed up the fix of this issue? > Serializable ViewScopeContextualStorage references non-serializable BeanManager > -------------------------------------------------------------------------------- > > Key: MYFACES-4057 > URL: https://issues.apache.org/jira/browse/MYFACES-4057 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 2.2.10 > Environment: TomEE 7.0.0 and 7.0.1 > Reporter: Bauke Scholtz > > 1. Have this CDI bean with JSF CDI view scope. > {code}@Named @ViewScoped > public class Bean implements Serializable {}{code} > 2. Have this minimal page mapped to JSF servlet. > {code}#{bean}{code} > 3. Open this page in a server using OpenWebBeans as CDI implementation (TomEE for example) and have session persistence enabled (already default in TomEE). > 4. Restart the server. > 5. On shutdown below warning is logged. > {code} > WARNING: Cannot serialize session attribute openWebBeansSessionContext for session 34F40C623600849F43AD2153F2EB75D8 > java.io.NotSerializableException: org.apache.webbeans.container.BeanManagerImpl > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) > ...{code} > 6. After restart below exception is thrown during deserializing session (stack trace comes from TomEE 7.0.0). > {code}java.lang.NullPointerException > at org.apache.webbeans.proxy.NormalScopeProxyFactory.createNormalScopeProxy(NormalScopeProxyFactory.java:121) > at org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.readResolve(NormalScopedBeanInterceptorHandler.java:125) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ... > {code} > Root cause appears to be that the serializable {{org.apache.myfaces.cdi.view.ViewScopeContextualStorage}} class has a {{BeanManager}} property while the interface is not declared serializable. > Related: https://issues.apache.org/jira/browse/OWB-1123 -- This message was sent by Atlassian JIRA (v6.3.4#6332)