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:
Media Sense on Win2000
Posted by Tony Bendelow on February 10, 2002 at 3:19 PM
> 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" > I have heard that this error occurs specifically on Win2000. Has to do with a socket that is not being released from the previous run. > this error, I believe has to do with SP6 for Win2000 To give you a preview of coming attractions there is also a problem with SP2. > anyone know the answer or should you not attemp jini with win2000? I have had this problem on a stand alone Win2000 machine.
If I am not connected to a TCP/IP network Windows 2000 disables the TCP/IP stack. This causes the socket bind failure. For more information try: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q239924 How to Disable Media Sense for TCP/IP in Windows (Q239924)
Replies:
|