Results 1 to 2 of 2

Thread: RMI help

  1. #1
    Marty is offline Member
    Join Date
    May 2007
    Posts
    38
    Rep Power
    0

    Default RMI help

    I am doing a test to use RMI.
    When I want to run the server an error appears:


    D:\test\classes>java -Djava.rmi.server.codebase=file:/d:\test\classes/ -Djava.
    rmi.server.hostname=zaphod.east.sun.com -Djava.security.policy=file:/d:\test\p
    olicia\policia.policy engine.ComputeEngine
    ComputeEngine exception: access denied (java.net.SocketPermission 127.0.0.1:1099
    connect,resolve)
    java.security.AccessControlException: access denied (java.net.SocketPermission 1
    27.0.0.1:1099 connect,resolve)
    at java.security.AccessControlContext.checkPermission (Unknown Source)
    at java.security.AccessController.checkPermission(Unk nown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkConnect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.cre ateSocket(Unknown S
    ource)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.cre ateSocket(Unknown S
    ource)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknow n Source)
    at sun.rmi.transport.tcp.TCPChannel.createConnection( Unknown Source)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(Unk nown Source)
    at sun.rmi.server.UnicastRef.newCall(Unknown Source)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Unknown Source)
    at engine.ComputeEngine.main(ComputeEngine.java:32)


    ??
    what is it?


    regards

  2. #2
    Nick15 is offline Member
    Join Date
    May 2007
    Posts
    38
    Rep Power
    0

    Default

    hello
    I think that somebody is listening this port. is your partner working?
    Last edited by levent; 05-31-2007 at 11:50 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •