JSLEE Discussions
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Root exception is java.security.AccessControlException: access denied (java.net.SocketPermission)
Forum Index » Rhino SLEE Discussions
Author Message
rajeswari.routhu


Joined: 18/01/2010 18:47:25
Messages: 5
Offline

Hi,

Iam trying to connect to a jnp service running on jboss- host and port (127.0.0.1 and 1099) from custom slee ra deployed in OpenCloud.
In this context aim getting the below exception :
2010-03-03 17:02:50.056 ERROR [com.nsn.see.jms.ra.impl.JmsActivityHandler] <JmsActivity thread
for JmsActivityID[101:1]> cannot bind jms connection factory
javax.naming.CommunicationException: Could not obtain connection to any of these urls: 127.0.0.1:10
99 and discovery failed with error: java.security.AccessControlException: access denied (java.net.S
ocketPermission localhost:1024- listen,resolve) [Root exception is javax.naming.CommunicationExcept
ion: Failed to connect to server /127.0.0.1:1099 [Root exception is java.security.AccessControlExce
ption: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1725)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:689)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)
at com.nsn.see.jms.rrp.jboss.JBossMessagingClient.getConnectionFactory(JBossMessagingClient
.java:42)
at com.nsn.see.jms.ra.impl.JmsActivityHandler.initJmsClient(JmsActivityHandler.java:143)
at com.nsn.see.jms.ra.impl.JmsActivityHandler.run(JmsActivityHandler.java:100)
Caused by: javax.naming.CommunicationException: Failed to connect to server /127.0.0.1:1099 [Root e
xception is java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.
1:1099 connect,resolve)]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:331)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1696)
... 5 more
Caused by: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1
:1099 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
at java.net.Socket.connect(Socket.java:513)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:97)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:82)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:297)
... 6 more



I have provided the grant permissions in the RA as well in the jvm but still getting the above exception while getting the connection factory .

Any suggestion will be really helpful

Thanks & Regards
Rajeswari.R
perrin


Joined: 25/01/2008 16:11:18
Messages: 225
Location: Wellington, New Zealand
Offline

Hi,

Are there any other components in the call stack, e.g. a library jar?

Can you post your resource-adaptor-jar.xml showing the permissions being granted?

To see which protection domain failed the permission check you can enable security debugging by uncommenting the system property -Djava.security.debug=access,failure in either config/jvm_args (Rhino SDK) or read-config-variables (production Rhino).

Regards,
Perrin

Perrin Morrow
Senior Software Engineer
Metaswitch Networks
 
Forum Index » Rhino SLEE Discussions
Go to:   
Powered by JForum 2.1.8 © JForum Team