The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 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:

Exceptions in rmid and lookup service

Posted by Annapurna on June 06, 2001 at 12:17 AM

I am working on windows 98 with jdk1.3, jini1_0_1 and jstk1_0_1
I get the following exceptions when i start the lookup service.

C:\jini1_0_1>java -Djava.security.policy=c:\jini1_0_1\example\lookup\policy.all
-jar C:\jini1_0_1\lib\reggie.jar http://130.184.172.9:8081/reggie-dl.jar C:\jini
1_0_1\example\lookup\policy.all c:\tmp\reggie_log
java.rmi.activation.ActivateFailedException: failed to activate object; nested e
xception is:
java.rmi.activation.ActivationException: exception in object constructor
; nested exception is:
com.sun.jini.reliableLog.LogException: could not create directory for lo
g: c:\tmp\reggie_log
java.rmi.activation.ActivationException: exception in object constructor; nested
exception is:
com.sun.jini.reliableLog.LogException: could not create directory for lo
g: c:\tmp\reggie_log
com.sun.jini.reliableLog.LogException: could not create directory for log: c:\tm
p\reggie_log
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
n Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.server.Activation$ActivatorImpl_Stub.activate(Unknown Source)

at java.rmi.activation.ActivationID.activate(Unknown Source)
at sun.rmi.server.ActivatableRef.activate(Unknown Source)
at sun.rmi.server.ActivatableRef.invoke(Unknown Source)
at com.sun.jini.reggie.RegistrarImpl_Stub.getServiceID(Unknown Source)
at com.sun.jini.reggie.CreateLookup.create(CreateLookup.java:106)
at com.sun.jini.reggie.CreateLookup.create(CreateLookup.java:199)
at com.sun.jini.reggie.CreateLookup.main(CreateLookup.java:414)

C:\jini1_0_1>
C:\jini1_0_1>
C:\jini1_0_1>
C:\jini1_0_1>
C:\jini1_0_1>
C:\jini1_0_1>

I start the rmid using a batch file from the location c:\jini1_0_1\
and the batch file for rmid is

rmid -J-Djava.security.policy=c:\jini1_0_1\example\lookup\policy.all
when i add the log file
rmid -J-Djava.security.policy=c:\jini1_0_1\example\lookup\policy.all -log c:\tmp\rmid.log
it gives a IOException stating "unable to create log file".
Could anyone help me in finding the problem.
Thanks




Replies:

Sponsored Links



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