Running RMI on Internet

Hello,

I've written rmi-based application for use on internet. This application works inside web browser. But, when I access my web page from internet on my server I get the following exception:

java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
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.checkConnect(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory$AsyncConnector.(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at app1$player1.getX(app1.java:884)
I did ALL that could be done in java.policy editor to grant connect, resolve, accept, listen and explicity specify address 127.0.0.1:1099.

I need somebody to point me in the right direction to look for solutions please. Is it a firewall issue? I think many people would be interested in solution to this problem because it seems to be quite common.

Thank you,
Victor.

Comments


  • donot use: 127.0.0.1:1099
    Trt your real IP ;Wish you a good luck :-0
    : Hello,
    :
    : I've written rmi-based application for use on internet. This
    : application works inside web browser. But, when I access my web page
    : from internet on my server I get the following exception:
    :
    : java.security.AccessControlException: access denied
    : (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
    : 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.checkConnect(Unknown Source)
    : at
    : sun.rmi.transport.proxy.RMIMasterSocketFactory$AsyncConnector.(
    : Unknown Source)
    : at
    : sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown
    : Source)
    : at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
    : at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
    : at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
    : at sun.rmi.server.UnicastRef.newCall(Unknown Source)
    : at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    : at java.rmi.Naming.lookup(Unknown Source)
    : at app1$player1.getX(app1.java:884)
    : I did ALL that could be done in java.policy editor to grant connect,
    : resolve, accept, listen and explicity specify address
    : 127.0.0.1:1099.
    :
    : I need somebody to point me in the right direction to look for
    : solutions please. Is it a firewall issue? I think many people would
    : be interested in solution to this problem because it seems to be
    : quite common.
    :
    : Thank you,
    : Victor.
    :
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion