[jboss-user] [JBoss Messaging] - Re: AccessControlException

tpaterson do-not-reply at jboss.com
Fri Nov 23 10:51:40 EST 2007


Hi Guys,

did anyone ever find a solution for this issue ?

we are having the same -- our client App runs via webstart and connects to a Queue on the server at startup.

up until now we have been using JBoss MQ - but we are now in the process of trying to migrate to JBoss Messaging - and this issue is causing us a bit of a problem.

We have tried JBoss 4.2.0.GA, 4.2.1.GA, 4.2.2.GA, JBM 1.4.0.GA, JBM 1.4.0.SP1, JBoss Remoting 2.2.2.SP1 and JBoss Remoting 2.2.2.SP2 - all of which give us the same problem.

as a reminder -- here's the exception :

org.jboss.jms.exception.MessagingJMSException: Failed to invoke
  | 	at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:269)
  | 	at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:187)
  | 	at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
  | 	at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:83)
  | 	at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
  | 	at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
  | 	at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
  | 	at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
  | 	at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:101)
  | 	at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:95)
  | 	at com.actual_systems.p2.client.support.activedata.DefClientADM.setupJMS(DefClientADM.java:1354)
  | 	at com.actual_systems.p2.client.support.activedata.DefClientADM.<init>(DefClientADM.java:324)
  | 	at com.actual_systems.p2.client.support.activedata.DefClientADM.getInstance(DefClientADM.java:309)
  | 	at com.actual_systems.p2.client.support.preference.ClientPreferenceSource.<init>(ClientPreferenceSource.java:88)
  | 	at com.actual_systems.p2.client.support.ClientPreferenceManager.<init>(ClientPreferenceManager.java:234)
  | 	at com.actual_systems.p2.client.support.ClientPreferenceManager.getInstance(ClientPreferenceManager.java:245)
  | 	at com.actual_systems.p2.client.startup.StartPPClient.initCPM(StartPPClient.java:560)
  | 	at com.actual_systems.p2.client.startup.StartPPClient.initApplication(StartPPClient.java:377)
  | 	at com.actual_systems.p2.client.startup.StartPPClient.main(StartPPClient.java:772)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 	at java.lang.reflect.Method.invoke(Unknown Source)
  | 	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
  | 	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
  | 	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
  | 	at com.sun.javaws.Launcher.run(Unknown Source)
  | 	at java.lang.Thread.run(Unknown Source)
  | Caused by: java.lang.reflect.InvocationTargetException
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 	at java.lang.reflect.Method.invoke(Unknown Source)
  | 	at org.jboss.remoting.InvokerRegistry.loadServerInvoker(InvokerRegistry.java:438)
  | 	at org.jboss.remoting.InvokerRegistry.createServerInvoker(InvokerRegistry.java:525)
  | 	at org.jboss.remoting.transport.Connector.init(Connector.java:396)
  | 	at org.jboss.remoting.transport.Connector.create(Connector.java:782)
  | 	at org.jboss.remoting.transport.Connector.start(Connector.java:301)
  | 	at org.jboss.remoting.Client.addListener(Client.java:918)
  | 	at org.jboss.jms.client.remoting.JMSRemotingConnection.addInvokerCallbackHandler(JMSRemotingConnection.java:237)
  | 	at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:312)
  | 	at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:154)
  | 	... 26 more
  | Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
  | 	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.checkCreateClassLoader(Unknown Source)
  | 	at java.lang.ClassLoader.<init>(Unknown Source)
  | 	at org.jboss.remoting.loading.ClassByteClassLoader.<init>(ClassByteClassLoader.java:62)
  | 	at org.jboss.remoting.AbstractInvoker.<init>(AbstractInvoker.java:76)
  | 	at org.jboss.remoting.ServerInvoker.<init>(ServerInvoker.java:267)
  | 	at org.jboss.remoting.transport.socket.SocketServerInvoker.<init>(SocketServerInvoker.java:106)
  | 	at org.jboss.remoting.transport.bisocket.BisocketServerInvoker.<init>(BisocketServerInvoker.java:105)
  | 	at org.jboss.remoting.transport.bisocket.TransportServerFactory.createServerInvoker(TransportServerFactory.java:21)
  | 	... 39 more
  | 

can anyone help ?



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107384#4107384

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107384



More information about the jboss-user mailing list