NoPermissionException: rebind JNDI operation not allowed when calling from outside NamingServer's VM in JBoss EAP 5
Issue
- We are seeing exceptions like these below when starting JBoss and when JBoss is shutting down:
Caused by: javax.naming.NoPermissionException: unbind JNDI operation not allowed when calling from outside NamingServer's VM.
at org.jnp.server.NamingServerGuard.unbind(NamingServerGuard.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:194)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:148)
at sun.proxy.$Proxy440.unbind(Unknown Source)
at org.jnp.interfaces.NamingContext.unbind(NamingContext.java:918)
at javax.naming.InitialContext.unbind(InitialContext.java:437)
at org.jboss.util.naming.Util.unbind(Util.java:151)
at org.jboss.util.naming.Util.unbind(Util.java:141)
at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.unbind(JndiSessionRegistrarBase.java:983)
... 54 more
- We are getting this exception after updating to JBoss EAP 5.2:
Caused by: javax.naming.NoPermissionException: unbind JNDI operation not allowed when calling from outside NamingServer's VM.
at org.jnp.server.NamingServerGuard.unbind(NamingServerGuard.java:72)
- We are seeing this after updating to JBoss EAP 5.2 :
2013-07-26 00:42:56,011 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.jmx:alias=jmx/rmi/RMIAdaptor state=Create mode=Manual requiredState=Installed
javax.naming.NoPermissionException: createSubcontext JNDI operation not allowed when calling from outside NamingServer's VM.
at org.jnp.server.NamingServerGuard.createSubcontext(NamingServerGuard.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
...
2013-07-26 00:42:56,020 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfsfile:/home/jboss/jboss-eap-5.2/jboss-as/server/default/deploy/jmx-invoker-service.xml state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.jmx:alias=jmx/rmi/RMIAdaptor
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
...
Caused by: javax.naming.NoPermissionException: createSubcontext JNDI operation not allowed when calling from outside NamingServer's VM.
at org.jnp.server.NamingServerGuard.createSubcontext(NamingServerGuard.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.x
- Red Hat JBoss SOA Platform (SOA)
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
