Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JINI : reggie

4 views
Skip to first unread message

javier moreno

unread,
Aug 17, 2004, 5:32:19 AM8/17/04
to
hi,
i got a little problem trying to lunch reggie that's the command line i
typed after configuring my files as shown here :
http://jan.netcomp.monash.edu.au/java/jini/tutorial/LookupDiscovery.xml


that's what i did :

C:\jini2_0_002\lib>java -Djava.security.policy=C:\jini2_0_002/lib/startup/se
rvices/reggie/start.policy -jar C:\jini2_0_002\lib\start.jar \
C:\jini2_0_002\lib\
startup\services\reggie\start-transient-reggie.config

result:
Exception in thread "main" java.lang.ExceptionInInitializerError
at
net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvid
er.java:193)
at
net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvid
er.java:150)
at com.sun.jini.start.ServiceStarter.main(ServiceStarter.java:468)
Caused by: java.security.AccessControlException: access denied
(java.lang.Runtim
ePermission createSecurityManager)
at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:269)
at
java.security.AccessController.checkPermission(AccessController.java:
401)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.<init>(SecurityManager.java:280)
at
net.jini.security.Security$ClassContextAccess.<init>(Security.java:96
1)
at
net.jini.security.Security$ClassContextAccess.<init>(Security.java:96
1)
at net.jini.security.Security$1.run(Security.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at net.jini.security.Security.<clinit>(Security.java:173)
... 3 more


thanks for your answers


zoopy

unread,
Aug 17, 2004, 6:18:35 AM8/17/04
to
On 17-8-2004 11:32, javier moreno wrote:

> hi,
> i got a little problem trying to lunch reggie that's the command line i
> typed after configuring my files as shown here :
> http://jan.netcomp.monash.edu.au/java/jini/tutorial/LookupDiscovery.xml
>
>
> that's what i did :
>
> C:\jini2_0_002\lib>java -Djava.security.policy=C:\jini2_0_002/lib/startup/se
> rvices/reggie/start.policy -jar C:\jini2_0_002\lib\start.jar \

--^ --^


> C:\jini2_0_002\lib\
> startup\services\reggie\start-transient-reggie.config
>
> result:
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvider.java:193)
> at

> net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvider.java:150)


> at com.sun.jini.start.ServiceStarter.main(ServiceStarter.java:468)
> Caused by: java.security.AccessControlException: access denied
> (java.lang.RuntimePermission createSecurityManager)

[snipped rest of stacktrace]

Try to replace forward slash / by backslash \ in your policy file path:

-Djava.security.policy=C:\jini2_0_002\lib\startup\services\reggie\start.policy

The policy file probably couldn't found, which caused the 'access denied" security exception.

--
Regards,
Z.

javier moreno

unread,
Aug 17, 2004, 6:47:47 AM8/17/04
to
i have changes the / to \ but still having the same problem

Command line :
C:\jini2_0_002\lib>java -Djava.security.policy=C:\jini2_0_002\lib\startup\se
rvices\reggie\start.policy -jar C:\jini2_0_002\lib\start.jar \


C:\jini2_0_002\lib\
startup\services\reggie\start-transient-reggie.config

Result :


Exception in thread "main" java.lang.ExceptionInInitializerError
at

net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvid
er.java:193)
at
net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvid

er.java:150)
at com.sun.jini.start.ServiceStarter.main(ServiceStarter.java:468)
Caused by: java.security.AccessControlException: access denied

zoopy

unread,
Aug 17, 2004, 8:12:05 AM8/17/04
to

Hmm... apparently it doesn't allow you to create (or change) the SecurityManager (access denied:
java.lang.RuntimePermission createSecurityManager). There seems to be a problem with the Java
security settings of the application.

Check inside the policy file (does it actually exist?, is it readable by the app?) and see if you
need to change some paths and values to match your environment. Can't help you on that any further,
you'll have to refer to the link you provided earlier.

[Another thought, but I don't think this is a problem: do you run the app on your own PC, or in a
controlled environment, e.g. a University or school computer lab? In the latter case it might be
possible that there are some 'global' Java security restrictions enforced, e.g. that the java
command is always executed with a SecrityManager (enforced by a 'global' policy file, e.g. in the
install dir of the JRE), causing it to refuse the replacement of the existing SecrityManager. As
said, I don't think this is the case, it's more likely a problem with the security settings in the
application]

--
Regards,
Z.

javier moreno

unread,
Aug 17, 2004, 8:33:13 AM8/17/04
to
i found what's wrong .
I changed the syntax of my policy file and that's work but the problem was
on my config files.
thanks for all and have a nice day
"zoopy" <zo...@hates.spam> a écrit dans le message de
news:4121f60a$0$559$e4fe...@news.xs4all.nl...

javier moreno

unread,
Aug 17, 2004, 10:44:43 AM8/17/04
to
0 new messages