The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

rmi problem

Posted by Ling on August 24, 2001 at 1:38 PM

> Hello...I am also a greenhand to rmi...and I tried to follow the Hello example given in JBuilder...these are the error messages I got when I tried to compile.....anyone can help me with this? The source code should have no problem as I am using the example in JBuilder.

C:\JBUILDER5\JDK1.3\bin\javaw -classpath "C:\WINDOWS\jbproject\Hello\classes;C:\JBUILDER5\JDK1.3\demo\jfc\Java2D\Java2Demo.jar;C:\JBUILDER5\JDK1.3\jre\lib\i18n.jar;C:\JBUILDER5\JDK1.3\jre\lib\jaws.jar;C:\JBUILDER5\JDK1.3\jre\lib\rt.jar;C:\JBUILDER5\JDK1.3\jre\lib\sunrsasign.jar;C:\JBUILDER5\JDK1.3\lib\dt.jar;C:\JBUILDER5\JDK1.3\lib\tools.jar" -Djava.rmi.server.codebase=file:c:\WINDOWS\jbproject\Hello\classes\-Djava.security.policy=file:c:\WINDOWS\jbproject\Hello\rmi.policy hello.HelloImpl
HelloImpl err: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1044)
at java.net.Socket.(Socket.java:262)
at java.net.Socket.(Socket.java:100)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:25)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:120)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at hello.HelloImpl.main(HelloImpl.java:27)

Thank you!!





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us