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 739854A78 for ; Fri, 1 Jul 2011 20:01:57 +0000 (UTC) Received: (qmail 81839 invoked by uid 500); 1 Jul 2011 20:01:57 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 81787 invoked by uid 500); 1 Jul 2011 20:01:56 -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 81779 invoked by uid 99); 1 Jul 2011 20:01:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 20:01:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 20:01:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D59A043FD28 for ; Fri, 1 Jul 2011 20:01:28 +0000 (UTC) Date: Fri, 1 Jul 2011 20:01:28 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <1225095137.9554.1309550488871.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (AMQ-1605) 5.0.0: applet fails to initialize with default log4j.properties. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-1605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish closed AMQ-1605. ----------------------------- Resolution: Not A Problem Issue relates to not using sign java applets. > 5.0.0: applet fails to initialize with default log4j.properties. > ---------------------------------------------------------------- > > Key: AMQ-1605 > URL: https://issues.apache.org/jira/browse/AMQ-1605 > Project: ActiveMQ > Issue Type: Bug > Components: JMS client > Affects Versions: 5.0.0 > Environment: jre 1.6.0_03 applet on both firefox and msie. > Reporter: Bear Giles > Fix For: NEEDS_REVIEWED > > > We are unable to create a JMS-aware applet because of an initialization error in ActiveMQConnectionFactory/ActiveMQConnection. My research suggests that the problem is due to a static logger instance and a default log4j.properties file that contains an appender that is inappropriate (as in, throws security exceptions) in applets. > java.lang.ExceptionInInitializerError > at org.apache.activemq.ActiveMQConnection.(ActiveMQConnection.java:106) > at com.si.applet.JmsApplet.(JmsApplet.java:36) > at com.si.applet.ProducerConsumerApplet.(ProducerConsumerApplet.java:36) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) > at java.lang.reflect.Constructor.newInstance(Unknown Source) > at java.lang.Class.newInstance0(Unknown Source) > at java.lang.Class.newInstance(Unknown Source) > at sun.applet.AppletPanel.createApplet(Unknown Source) > at sun.plugin.AppletViewer.createApplet(Unknown Source) > at sun.applet.AppletPanel.runLoader(Unknown Source) > at sun.applet.AppletPanel.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) > Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.commons.logging.LogFactory.HashtableImpl read) > at java.security.AccessControlContext.checkPermission(Unknown Source) > at java.security.AccessController.checkPermission(Unknown Source) > at java.lang.SecurityManager.checkPermission(Unknown Source) > at java.lang.SecurityManager.checkPropertyAccess(Unknown Source) > at java.lang.System.getProperty(Unknown Source) > at org.apache.commons.logging.LogFactory.createFactoryStore(LogFactory.java:320) > at org.apache.commons.logging.LogFactory.(LogFactory.java:1725) > ... 14 more -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira