Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HELP! Problem starting Reggie/Services for Jini on Laptop!

 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running Windows 2000 Professional on my laptop. Whenever I try to either start up Reggie, or any other service, I get the following error:
(When starting Reggie)
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 com.sun.jini.start.ClassLoaderUtil$ActivateClass.activate(ClassLoaderUtil.java:616)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.jini.start.ServiceStarter.doCreate(ServiceStarter.java:1219)
at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:377)
at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:300)
at com.sun.jini.reggie.CreateLookup.main(CreateLookup.java:83)
(When starting my own service)
java.net.BindException: Cannot assign requested address: set socket option failed
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:229)
at net.jini.discovery.LookupDiscovery$AnnouncementListener.<init>(LookupDiscovery.java:283)
at net.jini.discovery.LookupDiscovery$2.run(LookupDiscovery.java:788)
at java.security.AccessController.doPrivileged(Native Method)
at net.jini.discovery.LookupDiscovery.<init>(LookupDiscovery.java:785)
at net.jini.discovery.LookupDiscoveryManager.<init>(LookupDiscoveryManager.java:843)
at com.spiralgeneration.jini.ch15.BasicUnicastService.initialize(Unknown Source)
at com.spiralgeneration.jini.ch15.PrintService.initialize(Unknown Source)
at com.spiralgeneration.jini.ch15.PrintService.main(Unknown Source)
Please! If anyone knows what's going on and how I can solve this problem, it would be a HUGE help!
Thank you,
Robert
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is laptop connected to a live network; is the network services module loaded and enabled?
I've seen several versions of Windows that don't load the network stack unless the network is actually there at boot time.
 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. I figured out what the problem is:
Apparently, Windows does not allow multicasting discovery when using the loopback address (i.e. not connected to a network). This is pretty stupid and limiting, and I've found no one with a software answer to this. One guy told me that I can just "jimmy" an RJ-45 cable and connect wire 1 to 3, 2 to 6 and that fools the computer. I'm going to try it and I'll let you know if it works.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!