activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morris Hirsch (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-1605) 5.0.0: applet fails to initialize with default log4j.properties.
Date Fri, 20 Jun 2008 19:27:00 GMT

    [ https://issues.apache.org/activemq/browse/AMQ-1605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43633#action_43633
] 

Morris Hirsch commented on AMQ-1605:
------------------------------------

A post on a related problem suggested using the newer commons-logging-1.1.1.jar

I got the new one and made the change in my compile and my manifest and applet tag

That seems to get me further but still an exception, now this one top line only

javax.jms.JMSException: Could not connect to broker URL: tcp://192.168.1.50:61616. Reason:
java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.activemq.UseDedicatedTaskRunner
read)

or the full stack

javax.jms.JMSException: Could not connect to broker URL: tcp://192.168.1.50:61616. Reason:
java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.activemq.UseDedicatedTaskRunner
read)
	at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
	at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:278)
	at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:222)
	at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:170)
	at Heartbeat.init(Heartbeat.java:223)
	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.activemq.UseDedicatedTaskRunner 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.activemq.thread.TaskRunnerFactory.<init>(TaskRunnerFactory.java:62)
	at org.apache.activemq.thread.TaskRunnerFactory.<init>(TaskRunnerFactory.java:47)
	at org.apache.activemq.ActiveMQConnection.<init>(ActiveMQConnection.java:115)
	at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:283)
	at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:251)
	... 5 more


> 5.0.0: applet fails to initialize with default log4j.properties.
> ----------------------------------------------------------------
>
>                 Key: AMQ-1605
>                 URL: https://issues.apache.org/activemq/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
>
> 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.<clinit>(ActiveMQConnection.java:106)
>             at com.si.applet.JmsApplet.<init>(JmsApplet.java:36)
>             at com.si.applet.ProducerConsumerApplet.<init>(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.<clinit>(LogFactory.java:1725)
>             ... 14 more 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message