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:

Did you ever find an answer to this?

Posted by Rick Vincent on October 05, 2001 at 4:59 PM

I was wondering if you ever found an answer to this:

Thanks,
Rick

at com.sun.jini.start.HTTPDStatus.drainSocket(HTTPDStatus.java:508)
at com.sun.jini.start.HTTPDStatus.httpdStatus(HTTPDStatus.java:257)
at com.sun.jini.start.HTTPDStatus.httpdStatus(HTTPDStatus.java:207)

> I am having problems starting up reggie, I get the following errors.

> java.net.SocketException: Connection reset by peer:JVM_recv in socket input stream read
> Unable to invoke by reflection, the method: com.sun.jini.reggie.CreateLookup.create.

> I am using windows 2000 professional on a P400 64mb Ram
> Does anyone know how to fix this, it seems to be a common problem?
> Thanks in advance,
> Stephen.

> (1)I sart the GUI...........................

> C:\>java -cp C:\files\jini1_1\lib\jini-ext.jar;
> C:\files\jini1_1\lib\jini-examples.jar
> com.sun.jini.example.launcher.StartService

> (2)I start the RMID.........................

> the command line is: rmid -J-Dsun.rmi.activation.execPolicy=none

>
> (3)I start the HTTP SErver.................

> the command line is: java -jar C:\files\jini1_1\lib\tools.jar -port 8081 -dir C:\files\jini1_1\lib -verbose

> (4)I then try and start reggie..............

> the command line is: java -jar C:\files\jini1_1\lib\reggie.jar
> http://bob:8081/reggie-dl.jar
> C:\files\jini1_1\policy\policy.all
> C:\tmp\reggie_log public

> (5)Then I get the error messages............

> /reggie-dl.jar requested from bob:1192

> While draining the socket -- 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 java.net.SocketInputStream.socketRead(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:86)
> at java.net.SocketInputStream.read(SocketInputStream.java:102)
> at com.sun.jini.start.HTTPDStatus.drainSocket(HTTPDStatus.java:508)
> at com.sun.jini.start.HTTPDStatus.httpdStatus(HTTPDStatus.java:257)
> at com.sun.jini.start.HTTPDStatus.httpdStatus(HTTPDStatus.java:207)
> at com.sun.jini.start.ServiceStarter.doCreate(ServiceStarter.java:842)
> 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)

> (6)Sometimes I don't get this first part of the error...............

>
> 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.BindException: Cannot assign requested address: set socket option failed
> java.rmi.activation.ActivationException: exception in object constructor; nested exception is:
> java.net.BindException: Cannot assign requested address: set socket option failed
> java.net.BindException: Cannot assign requested address: set socket option failed
> 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)
> java.lang.ClassCastException: java.lang.reflect.InvocationTargetException
> at com.sun.jini.start.ServiceStarter.doCreate(ServiceStarter.java:1049)
> 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)
> Exception in thread "main"






Replies:

Sponsored Links



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