Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 901266 - (JBPAPP6-1722) @PreDestroy not called on view scoped managed bean
@PreDestroy not called on view scoped managed bean
Status: CLOSED CURRENTRELEASE
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: JSF (Show other bugs)
6.1.0
Unspecified Unspecified
high Severity high
: ER3
: EAP 6.1.0
Assigned To: Stan Silvert
Marek Schmidt
http://jira.jboss.org/jira/browse/JBP...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-13 18:03 EST by ivassile
Modified: 2014-05-26 21:28 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The memory used by JSF `ViewScoped` beans was not being reclaimed in some circumstances, resulting in the memory used by the application server increasing over time (a "memory leak"). This was because the `@PreDetroy` method of these beans was not being called when their sessions expired. The JavaServer Faces implementation in JBoss Enterprise Application Platform 6 has been updated to Mojarra 2.1.16 which resolves this issue. When session expiration occurs, the `@PreDestroy` method each of `ViewScoped` managed bean is now invoked correctly and the resources allocated to each bean is reclaimed.
Story Points: ---
Clone Of:
Environment:
JBoss Enterprise Application Platform (EAP) 6
Last Closed: 2013-07-18 09:46:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker JBPAPP-10496 Major Resolved @PreDestroy not called on view scoped managed bean 2016-09-19 22:45 EDT
JBoss Issue Tracker JBPAPP6-1722 Major Closed @PreDestroy not called on view scoped managed bean 2016-09-19 22:45 EDT

  None (edit)
Description ivassile 2012-12-13 18:03:21 EST
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A000000Bd4MNIAZ&sfdc.override=1
Steps to Reproduce: See http://java.net/jira/browse/JAVASERVERFACES-2561
project_key: JBPAPP6

@PreDestroy not called upon session expiration on @ViewScoped managed beans (JAVASERVERFACES-2561).
Comment 1 ivassile 2012-12-13 18:08:22 EST
The issue has been resolved in Mojarra 2.1.16. Upgrade jsf-impl to 2.1.16-jbossorg-1 and jboss-jsf-api_2.1_spec to 2.0.8.Final.

JSF Impl source is here:
https://github.com/jboss/mojarra/tree/2.1.16-jbossorg-1

JSF API source is here:
https://github.com/jboss/jboss-jsf-api_spec

The jars are in Nexus.
https://repository.jboss.org/nexus/index.html#nexus-search;gav~~~2.1.16-jbossorg-1~~
https://repository.jboss.org/nexus/index.html#nexus-search;gav~~jboss-jsf-api_2.1_spec~2.0.8.Final~~
Comment 2 ivassile 2012-12-13 18:09:34 EST
Link: Added: This issue incorporates AS7-5586
Comment 3 ivassile 2012-12-13 20:40:48 EST
Link: Added: This issue relates to JBPAPP-10496
Comment 4 ivassile 2012-12-14 15:04:34 EST
Stan's commit to upstream master: https://github.com/jbossas/jboss-as/commit/5ca2dc23dfd960a9faac525ea2b4b8b4b542c26c
Comment 6 Stan Silvert 2013-03-12 12:24:40 EDT
https://github.com/jbossas/jboss-eap/pull/47

There is no matching pull request in community. AS7-6709 will be closed as "Won't Fix". We are in the process of upgrading JSF to spec version 2.2 in community.

However, the jbossorg version of 2.1.19 is needed to fix a memory leak that occurs on some portlet-based JSF applications. So this is needed in EAP at present.
Comment 8 Marek Schmidt 2013-03-29 10:32:45 EDT
Verified on EAP 6.1.0.ER3

Note You need to log in before you can comment on or make changes to this bug.