This page contains an archived post to the Jini Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
rmid
Posted by Harold Pilote on December 08, 2000 at 2:56 PM
Hi everyone, I Tryed everything, and it did not want to work for me :( Finally I found the solution for jdk1.3; jini1.1 on win2k :) execute those batch files in order: batch1.bat: @echo starting the http server path c:\sun\jdk1.3\bin java -jar C:\sun\jini1_1\lib\tools.jar -port 8081 -dir c:\sun\jini1_1\lib -trees -verbose batch2.bat: @echo off echo this script starts the rmid process and force echo it to send the log to the c:\tmp directory echo. echo First, we have to remove the current log directory echo. echo on rem rmdir /s c:\tmp\rmid.log @echo off echo and now I start the rmid process. I have put a pause echo at the end of the script to avoid window closing echo on path c:\sun\jdk1.3\bin rmid -J-Djava.security.policy=c:\sun\jini1_1\example\lookup\policy.all -log c:\tmp\rmid.log echo the rmid process has returned batch3.bat: path c:\sun\jdk1.3\bin java -Djava.security.policy=c:\sun\jini1_1\example\lookup\policy.all -jar c:\sun\jini1_1\lib\reggie.jar http://172.16.20.110:8081/reggie-dl.jar c:\sun\jini1_1\example\lookup\policy.all c:\tmp\reggie.log public echo Reggie has returned pause Hope it will be valuable for everyone. Do not forget to adjust the ip and the files dependances. good luck
Harold > Hi, > Unfortunately, even I am getting the same error and am doing exactly the same thing. Please let > me know if you have got the solution to this problem. > Thanks a lot. > Varsha > > > Hi Bill etc. > > I'm desparately trying to run the Reggie service in Jini 1.1, using JDK 1.3. > > Now, I'm running the rmiregistry and the rmid and then Reggie. Here's what I do: > > 1) > > e:\rmiregistry > > 2) > > e:\rmid -J-Djava.security.policy=e:\java\jini\jini1_1\example\lookup\policy.all > > 3) > > e:\java\jini\jini1_1\java -jar reggie.jar http://172.30.105.52/reggie-dl.jar e:\java\jini\jini1_1\example\lookup\policy.all e:\java\jini\jini1_1\tmp\reggie_log public > > > > I get the following error: > > E:\java\jini\jini1_1\lib>java -jar reggie.jar http://172.30.105.52/reggie-dl.jar e:\java\jini\jini1_1\example\lookup\policy.a > > ll e:\java\jini\jini1_1\tmp\reggie_log public > > Unable to invoke by reflection, the method: com.sun.jini.reggie.CreateLookup.create. > > An exception was thrown by the invoked method. > > java.lang.reflect.InvocationTargetException: java.rmi.activation.ActivateFailedException: failed to activate object; nested e > > xception is: > > java.rmi.activation.ActivationException: group creation failed after 2 tries; nested exception is: > > java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: > > java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read > > java.rmi.activation.ActivationException: group creation failed after 2 tries; nested exception is: > > java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: > > java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read > > java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: > > java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read > > java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read > > at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.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 sun.rmi.server.ActivatableRef.activate(ActivatableRef.java:250) > > at sun.rmi.server.ActivatableRef.invoke(ActivatableRef.java:110) > > at com.sun.jini.reggie.RegistrarImpl_Stub.getServiceID(Unknown Source) > > at com.sun.jini.reggie.CreateLookup.create(CreateLookup.java:106) > > at java.lang.reflect.Method.invoke(Native Method) > > at com.sun.jini.start.ServiceStarter.doCreate(ServiceStarter.java:955) > > at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:251) > > at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:193) > > at com.sun.jini.reggie.CreateLookup.main(CreateLookup.java:69) > > Exception in thread "main" java.lang.ClassCastException: java.lang.reflect.InvocationTargetException > > at com.sun.jini.start.ServiceStarter.doCreate(ServiceStarter.java:1053) > > at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:251) > > at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:193) > > at com.sun.jini.reggie.CreateLookup.main(CreateLookup.java:69) > > E:\java\jini\jini1_1\lib> > > > > Do you have any Idea of what may be going wrong ?? > > Do you have a step by step "setting up Reggie on NT" ??? > > Any help will be appreciated !!! > > Regards, > > Jakob Jenkov
Replies:
|