Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JINI : reggie

Reply
Thread Tools

JINI : reggie

 
 
javier moreno
Guest
Posts: n/a
 
      08-17-2004
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/jav...pDiscovery.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(ServiceStar ter.java:46
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(Acc essController.java:
401)
at
java.lang.SecurityManager.checkPermission(Security Manager.java:524)
at java.lang.SecurityManager.<init>(SecurityManager.j ava:280)
at
net.jini.security.Security$ClassContextAccess.<ini t>(Security.java:96
1)
at
net.jini.security.Security$ClassContextAccess.<ini t>(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


 
Reply With Quote
 
 
 
 
zoopy
Guest
Posts: n/a
 
      08-17-2004
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/jav...pDiscovery.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(ServiceStar ter.java:46
> 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\s ervices\reggie\start.policy

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

--
Regards,
Z.
 
Reply With Quote
 
 
 
 
javier moreno
Guest
Posts: n/a
 
      08-17-2004
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\s e
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(ServiceStar ter.java:46
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(Acc essController.java:
401)
at
java.lang.SecurityManager.checkPermission(Security Manager.java:524)
at java.lang.SecurityManager.<init>(SecurityManager.j ava:280)
at
net.jini.security.Security$ClassContextAccess.<ini t>(Security.java:96
1)
at
net.jini.security.Security$ClassContextAccess.<ini t>(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


 
Reply With Quote
 
zoopy
Guest
Posts: n/a
 
      08-17-2004
On 17-8-2004 12:47, javier moreno wrote:

> 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\s e
> 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(ServiceStar ter.java:46
> 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(Acc essController.java:
> 401)
> at
> java.lang.SecurityManager.checkPermission(Security Manager.java:524)
> at java.lang.SecurityManager.<init>(SecurityManager.j ava:280)
> at
> net.jini.security.Security$ClassContextAccess.<ini t>(Security.java:96
> 1)
> at
> net.jini.security.Security$ClassContextAccess.<ini t>(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
>
>


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.
 
Reply With Quote
 
javier moreno
Guest
Posts: n/a
 
      08-17-2004
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" <(E-Mail Removed)> a écrit dans le message de
news:4121f60a$0$559$(E-Mail Removed)4all.nl...
> On 17-8-2004 12:47, javier moreno wrote:
>
> > 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\s e
> > 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(ServiceStar ter.java:46
> > 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(Acc essController.java:
> > 401)
> > at
> > java.lang.SecurityManager.checkPermission(Security Manager.java:524)
> > at java.lang.SecurityManager.<init>(SecurityManager.j ava:280)
> > at
> > net.jini.security.Security$ClassContextAccess.<ini t>(Security.java:96
> > 1)
> > at
> > net.jini.security.Security$ClassContextAccess.<ini t>(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
> >
> >

>
> 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.



 
Reply With Quote
 
sourabh sourabh is offline
Junior Member
Join Date: Mar 2008
Posts: 1
 
      03-26-2008
hi all,
I am registering ,my service with jini lookup service but when i create the object of
joinmanager [joinmanager = new JoinManager(remote, myattr, this, manager,new LeaseRenewalManager()); ] it throws following exception:
Exception in thread "main" java.lang.ExceptionInInitializerError
at net.jini.discovery.LookupDiscovery.<init>(LookupDi scovery.java:781)
at net.jini.discovery.LookupDiscoveryManager.beginDis covery(LookupDiscoveryManager.java:1493)
at net.jini.discovery.LookupDiscoveryManager.<init>(L ookupDiscoveryManager.java:936)
at net.jini.lookup.JoinManager.createJoinManager(Join Manager.java:2564)
at net.jini.lookup.JoinManager.<init>(JoinManager.jav a:1620)
at JoinJini.join(JoinJini.java:59
at PhysicalBladeRM.main(PhysicalBladeRM.java:93)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createSecurityManager)
at java.security.AccessControlContext.checkPermission (AccessControlContext.java:264)
at java.security.AccessController.checkPermission(Acc essController.java:427)
at java.lang.SecurityManager.checkPermission(Security Manager.java:532)
at java.lang.SecurityManager.<init>(SecurityManager.j ava:282)
at net.jini.security.Security$ClassContextAccess.<ini t>(Security.java:965)
at net.jini.security.Security$ClassContextAccess.<ini t>(Security.java:965)
at net.jini.security.Security$1.run(Security.java:167 )
at java.security.AccessController.doPrivileged(Native Method)
at net.jini.security.Security.<clinit>(Security.java: 165)
... 7 more
plz help me.
thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
about : reggie, mahalo, outrigger Mr. X. Java 2 07-18-2007 08:42 PM
JINI & reggie lookup service configuration. Mr. X. Java 0 07-05-2007 09:22 PM
JINI 1.2 : REGGIE EExtasEE Java 0 02-04-2005 05:04 PM
JINI :reggie javier moreno Java 0 08-17-2004 02:45 PM
JINI : reggie javier moreno Java 0 08-17-2004 02:44 PM



Advertisments