Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 25644 invoked from network); 16 Jul 2007 23:46:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jul 2007 23:46:06 -0000 Received: (qmail 29814 invoked by uid 500); 16 Jul 2007 23:46:08 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 29782 invoked by uid 500); 16 Jul 2007 23:46: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 29773 invoked by uid 99); 16 Jul 2007 23:46:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2007 16:46:08 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2007 16:46:05 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5BD7D71403E for ; Mon, 16 Jul 2007 16:45:45 -0700 (PDT) Message-ID: <13186393.1184629545372.JavaMail.jira@brutus> Date: Mon, 16 Jul 2007 16:45:45 -0700 (PDT) From: "Qian Su (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-1254) Kaha Store puts a non-string into System properties In-Reply-To: <29396810.1180392092843.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39690 ] Qian Su commented on AMQ-1254: ------------------------------ Is there an estimated time to fix for setting property org.apache.activeio.journal.active.lockMap to String? Thx! > Kaha Store puts a non-string into System properties > --------------------------------------------------- > > Key: AMQ-1254 > URL: https://issues.apache.org/activemq/browse/AMQ-1254 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 4.1.2 > Reporter: David Jencks > Attachments: Kaha-Store.patch > > > KahaStore puts a hashmap into SystemProperties, which causes problems with programs that expect only strings as properties. In particular some versions of Hibernate assume all system properties are strings: this is causing difficulties running roller in geronimo 2.0 > Attached is a proposed solution. I have no idea how to test it. I get the same 7 failures and one error building amq with and without the change. > The proposal stores the list of locked directories in a string and converts it back and forth to a map whenever it is accessed. I use a constant string as the vm-wide lock monitor formerly provided by the HashSet. According to the String javadoc constant strings are intern()ed and the same instance is provided in any classloader: this makes it suitable for a vm-wide lock monitor. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.