The Artima Developer Community
Sponsored Link

Legacy Jini Forum
The Jini Lookup Service

Advertisement

Advertisement

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:

java.net.SocketException while starting lookup

Posted by Jean-Michel DRICOT on November 08, 2000 at 9:38 AM

This is what I get when I try to run RMI, WWW server and lookup on my home computer

rmid -J-Dsun.rmi.activation.execPolicy=none
Web server startup...
java -jar /home/jim/files/jini1_1/lib/reggie.jar http://maxwell.localnet.home:8080/reggie-dl.jar /home/jim/files/jini1_1/example/lookup/policy.all /var/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 exception is:
java.rmi.activation.ActivationException: exception in object constructor; nested exception is:
java.net.SocketException: error setting options
java.rmi.activation.ActivationException: exception in object constructor; nested exception is:
java.net.SocketException: error setting options
java.net.SocketException: error setting options
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:125)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.jini.start.ServiceStarter.doCreate(ServiceStarter.java:951)
at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:269)
at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:211)
at com.sun.jini.reggie.CreateLookup.main(CreateLookup.java:88)

The strangest is that on my work place (with full T1 internet connection) it really works fine !
I have the same configuration (JDK 1.3, JINI 1.1 and Linux/Windows) for work and home but it fails.. Any help ?



Replies:

Sponsored Links



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