The Artima Developer Community
Sponsored Link

Jini Forum
Reggie problem-URGENT

9 replies on 1 page. Most recent reply: Mar 31, 2004 1:21 AM by ug

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 9 replies on 1 page
Christophe Rocha

Posts: 2
Nickname: knews
Registered: Mar, 2002

Reggie problem-URGENT Posted: Mar 20, 2002 9:13 AM
Reply to this message Reply
Advertisement
Hi,
I launched the http server and rmid. Everything was fine. But When launching reggie using the command

java -Djava.security.policy=C:/jini1_2/policy/policy.all -jar c:\jini1_2\lib\reggie.jar http://mypc.uni.edu:8080/reggie-dl.jar c:\jini1_2\policy\policy.all c:\Jini_Temp\reggie_log public

I got the following error:

Unable to invoke by reflection, the method: com.sun.jini.reggie.CreateLookup.cre
ate.
An exception was thrown by the invoked method.
java.security.AccessControlException: access denied (com.sun.rmi.rmid.ExecOption
Permission -Djava.security.policy=c:\jini1_2\policy\policy.all)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCal l.java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at sun.rmi.server.Activation$ActivatorImpl_Stub.activate(Unknown Source)

at java.rmi.activation.ActivationID.activate(ActivationID.java:89)
at com.sun.jini.start.ClassLoaderUtil$ActivateClass.activate(ClassLoader
Util.java :616)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.jini.start.ServiceStarter.doCreate(ServiceStarter.java:1213)
at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:377)
at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:300)
at com.sun.jini.reggie.CreateLookup.main(CreateLookup.java:83)
-----------

I am using jini1.2 and jdk1.3 on windows xp

Please tell me what is wrong
Thanks.


Cristi

Posts: 9
Nickname: cristiand
Registered: Feb, 2002

Re: Reggie problem-URGENT Posted: Mar 21, 2002 6:06 AM
Reply to this message Reply
Try launching rmid with one of the commands:


rmid -J-Dsun.rmi.activation.execPolicy=none


or


rmid -J-Djava.security.policy=policy.all


and then launch reggie.

Hope it helps.

No Name

Posts: 3
Nickname: sonofseven
Registered: May, 2002

Re: Reggie problem-URGENT Posted: May 21, 2002 3:25 PM
Reply to this message Reply
In fact you should set both sun.rmi.activation.execPolicy=none and the policy file of RMID.

You could also check if the policy file contains proper permissions on the directories that you are trying to use (e.g. log directory of reggie)

ISAAC "Lateye" Saito

Posts: 2
Nickname: isaterina
Registered: Nov, 2002

Re: Reggie problem-URGENT Posted: Nov 29, 2002 5:37 AM
Reply to this message Reply
> you should set both
> sun.rmi.activation.execPolicy=none and the policy file of
> RMID.
>
> You could also check if the policy file contains proper
> permissions on the directories that you are trying to use
> (e.g. log directory of reggie)

i tried above but it did not solve mine.

commands i tried:

% rmid -log rmid.log -J-Djava.security.policy=rmid.policy -J-Dsun.rmi.activation.execPolicy=none
% java -cp ${JINI_CLASSPATH}/lib/tools.jar com.sun.jini.tool.ClassServer -port 8080 -dir ${JINI_HOME}/lib
% java -jar ${JINI_HOME}/lib/reggie.jar http://192.168.24.94:8080/reggie-dl.jar rmid.policy ./tmp/reggie_log asc


outcomes i receive:
================================
using absolute policy path: /home/saitoh/techniques/java/jiniNetwork/stockExample/server/rmid.policy
using absolute logdir path: /home/saitoh/techniques/java/jiniNetwork/stockExample/server/./tmp/reggie_log
U nable to invoke by reflection, the method: com.sun.jini.reggie.CreateLookup.create.
An exception was thrown by the invoked method.
java.rmi.activation.ActivationException: exception in object constructor; nested exception is:
com.sun.jini.reliableLog.LogException: could not create directory for log: /home/saitoh/techniques/java/jiniNetwork/stockExample/server/./tmp/reggie_log
at sun.rmi.server.ActivationGroupImpl.newInstance(ActivationGroupImpl.java:281)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:536)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall .java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at java.rmi.activation.ActivationGroup_Stub.newInstance(Unknown Source)
at sun.rmi.server.Activation$ObjectEntry.activate(Activation.java:1476)
at sun.rmi.server.Activation$GroupEntry.activate(Activation.java:1126)
at sun.rmi.server.Activation$ActivatorImpl.activate(Activation.java:262)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:536)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall .java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at sun.rmi.server.Activation$ActivatorImpl_Stub.activate(Unknown Source)
at java.rmi.activation.ActivationID.activate(ActivationID.java:90)
at com.sun.jini.start.ClassLoaderUtil$ActivateClass.activate(ClassLoaderUtil.java: 616)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.jini.start.ServiceStarter.doCreate(ServiceStarter.java:1219)
at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:377)
at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:300)
at com.sun.jini.reggie.CreateLookup.main(CreateLookup.java:83)
Caused by: com.sun.jini.reliableLog.LogException: could not create directory for log: /home/saitoh/techniques/java/jiniNetwork/stockExample/server/./tmp/reggie_log
at com.sun.jini.reliableLog.ReliableLog.<init>(ReliableLog.java:111)
at com.sun.jini.reggie.RegistrarImpl.init(RegistrarImpl.java:3905)
at com.sun.jini.reggie.RegistrarImpl.<init>(RegistrarImpl.java:304)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at sun.rmi.server.ActivationGroupImpl$1.run(ActivationGroupImpl.java:236)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.server.ActivationGroupImpl.newInstance(ActivationGroupImpl.java:217)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:536)
================================

anyone is following this topic?

ISAAC "Lateye" Saito

Posts: 2
Nickname: isaterina
Registered: Nov, 2002

Re: Reggie problem-URGENT Posted: Nov 29, 2002 3:09 PM
Reply to this message Reply
replying to myself.

> i tried above but it did not solve mine.
>
> commands i tried:
>
> % rmid -log rmid.log -J-Djava.security.policy=rmid.policy -J-Dsun.rmi.activation.execPolicy=none
> % java -cp ${JINI_CLASSPATH}/lib/tools.jar com.sun.jini.tool.ClassServer -port 8080 -dir ${JINI_HOME}/lib
> % java -jar ${JINI_HOME}/lib/reggie.jar http://192.168.24.94:8080/reggie-dl.jar rmid.policy ./tmp/reggie_log asc

i got success just to change the path of the log file mady by reggie.
with above case, the reason is "tmp" directory didn't exist.


>> you should set both
>> sun.rmi.activation.execPolicy=none and the policy file of
>> RMID.

it's not necessary for me, just rmid's.

sarang patel

Posts: 1
Nickname: saggy
Registered: Jan, 2003

Re: Reggie problem-URGENT Posted: Jan 4, 2003 12:12 AM
Reply to this message Reply
I've the same problem .....is anyone havinbg solution?
main me at "sarang_scet@hotmail.com"

Justin Goyanko

Posts: 2
Nickname: gonx
Registered: Mar, 2003

Re: Reggie problem-URGENT Posted: Mar 14, 2003 3:18 AM
Reply to this message Reply
Hi
i've been experiencing the same problem have you solved it already?

Thanks

Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: Reggie problem-URGENT Posted: Jan 11, 2004 6:28 PM
Reply to this message Reply
> Hi
> i've been experiencing the same problem have you solved it
> already?
>
> Thanks

Testing the forums after a bit of restructuring.

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Reggie problem-URGENT Posted: Jan 11, 2004 8:45 PM
Reply to this message Reply
Whew. Good thing you're not just responding to this urgent question after nearly two years.

ug

Posts: 3
Nickname: uuy
Registered: Mar, 2004

Re: Reggie problem-URGENT Posted: Mar 31, 2004 1:21 AM
Reply to this message Reply
remove the reggie_log dir ...
problem will be solved.

Flat View: This topic has 9 replies on 1 page
Topic: MAD!! Problem about ServiceDiscoveryListener Previous Topic   Next Topic Topic: JINI client connection

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use