Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9659398B8 for ; Mon, 3 Sep 2012 08:38:09 +0000 (UTC) Received: (qmail 44700 invoked by uid 500); 3 Sep 2012 08:38:09 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 44497 invoked by uid 500); 3 Sep 2012 08:38:08 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 44468 invoked by uid 99); 3 Sep 2012 08:38:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 08:38:07 +0000 Date: Mon, 3 Sep 2012 19:38:07 +1100 (NCT) From: "Claus Ibsen (JIRA)" To: dev@activemq.apache.org Message-ID: <2105233028.29682.1346661487869.JavaMail.jiratomcat@arcas> In-Reply-To: <1895905406.5080.1333437626453.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (AMQ-3797) org.apache.activemq.util.StringArrayEditor causes classloader leaks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-3797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved AMQ-3797. ------------------------------ Resolution: Fixed Fix Version/s: 5.7.0 Assignee: Claus Ibsen Okay I have refactored the code to not use StringArrayEditor as a JDK property editor, and thus we dont enlist it to the property editor manager. Which then should fix the leak. > org.apache.activemq.util.StringArrayEditor causes classloader leaks > ------------------------------------------------------------------- > > Key: AMQ-3797 > URL: https://issues.apache.org/jira/browse/AMQ-3797 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.4.3 > Reporter: Mattias Jiderhamn > Assignee: Claus Ibsen > Fix For: 5.7.0 > > > A static block in org.apache.activemq.util.IntrospectionSupport registers org.apache.activemq.util.StringArrayEditor with java.beans.PropertyEditorManager. In a web application environment, this will cause classloader leaks, since java.beans.PropertyEditorManager keeps a strong reference to the editor class. > ActiveMQ should at least provide a graceful means of deregistering org.apache.activemq.util.StringArrayEditor (by calling java.beans.PropertyEditorManager.registerEditor() again with editor class null). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira