my dog learned polymorphism
The moose likes Distributed Java and the fly likes exception when starting lookup service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "exception when starting lookup service" Watch "exception when starting lookup service" New topic

exception when starting lookup service

kirit modi

Joined: Aug 23, 2006
Posts: 1
i am working with Jini starter kit1_2_1 and java virtual machine is JDK 1.3
i am starting services as follows:

Starting Services from Command Line

@echo off
java -jar C:\jini1_2_1\lib\tools.jar -port 8080 -dir C:\MathService\WWW -verbose

@echo off
rmid\jini1_2_1\policy\policy.all -J-Dsun.rmi.activation.execPolicy=none -log rmid_logs

@echo off
java\jini1_2_1\policy\policy.all -jar C:\jini1_2_1\lib\reggie.jar http://localhost:8080/reggie-dl.jar C:\jini1_2_1\example\lookup\policy.all C:\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.rmi.activation.ActivationException: exception in object constructor; nested

exception is: Cannot assign requested address: set socket option failed Cannot assign requested address: set socket option failed
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown 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 com.sun.jini.start.ClassLoaderUtil$ActivateClass.activate(
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.jini.start.ServiceStarter.doCreate(
at com.sun.jini.start.ServiceStarter.create(
at com.sun.jini.start.ServiceStarter.create(
at com.sun.jini.reggie.CreateLookup.main(

what is solution of this exception

Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Revelant post on the Jini-Users mailing list found through a google search for the error message.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: exception when starting lookup service
It's not a secret anymore!