M
Maciej Gawinecki
Hello
(platform: java 1.4.2.01, Mandrake 7.0)
I'm writing RMI application and I stucked in one moment:
after lanching server-side part:
$ java program
I get AccessControlException
(in line responsible for binding name of method:
Naming.bind("//127.0.0.1/method");
) with message:
java.net.SocketPermission 127.0.0.1:1099 connect,resolve
So, I've written policy file in my project's dir:
grant {
permission java.net.SocketPermission "127.0.0.1:1099",
"connect, accept";
};
and then, in shell:
$ cd $HOME/project
$ java -Djava.security.manager=$HOME/project/policy program
but I get:
Error occurred during initialization of VM
java.lang.InternalError: Could not create SecurityManager:
what's wrong? thnx in advance for your help
Maciek
(platform: java 1.4.2.01, Mandrake 7.0)
I'm writing RMI application and I stucked in one moment:
after lanching server-side part:
$ java program
I get AccessControlException
(in line responsible for binding name of method:
Naming.bind("//127.0.0.1/method");
) with message:
java.net.SocketPermission 127.0.0.1:1099 connect,resolve
So, I've written policy file in my project's dir:
grant {
permission java.net.SocketPermission "127.0.0.1:1099",
"connect, accept";
};
and then, in shell:
$ cd $HOME/project
$ java -Djava.security.manager=$HOME/project/policy program
but I get:
Error occurred during initialization of VM
java.lang.InternalError: Could not create SecurityManager:
what's wrong? thnx in advance for your help
Maciek