Re: AccessControlException trying to start up mahalo (and reggie)

Gregg Wonderly <[email protected]> Thu, 17 Aug 2006 10:17:04 -0500
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
steve kirby wrote:
>   Error message:
>   ===========================================================
>   Aug 16, 2006 1:36:08 PM com.sun.jini.mahalo.TxnManagerImpl doInit
> INFO: Mahalo started: com.sun.jini.mahalo.TransientMahaloImpl@1ea0252
> Aug 16, 2006 1:36:08 PM net.jini.lookup.JoinManager$ProxyReg fail
> INFO: JoinManager - failure
> java.security.AccessControlException: access denied (java.net.SocketPermission ###.###.#.##:33188 connect,resolve)
>         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
>         at java.security.AccessController.checkPermission(AccessController.java:427)
>         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>         at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
>         at java.net.Socket.connect(Socket.java:501)
>         at java.net.Socket.connect(Socket.java:457)
>         at java.net.Socket.<init>(Socket.java:365)
>         at java.net.Socket.<init>(Socket.java:178)
>         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
>         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
>         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
>         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
>         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
>         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
>         at com.sun.jini.reggie.RegistrarImpl_Stub.register(Unknown Source)
>         at com.sun.jini.reggie.RegistrarProxy.register(RegistrarProxy.java:107)
>         at net.jini.lookup.JoinManager$ProxyReg.register(JoinManager.java:1222)
>         at net.jini.lookup.JoinManager$RegisterTask.run(JoinManager.java:784)
>         at net.jini.lookup.JoinManager$ProxyRegTask.tryOnce(JoinManager.java:608)
>         at com.sun.jini.thread.RetryTask.run(RetryTask.java:131)
>         at com.sun.jini.thread.TaskManager$TaskThread.run(TaskManager.java:331)

There are two possibilities.  One, is that your policy file is not being
processed.  The other is that you have manifested a machine specific setup into
your script and don't recognize it.

Turn on policy debugging to see what is happening with

        -Djava.security.debug=all

or some less verbose setting to see exactly what is being used as policy.  You
can search on the internet for java.security.debug for more information on the
parameters, or just look in the JDK documentation.

Gregg Wonderly

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html