Re: Problem with Blitz on MacBook (MacOS_X)
Dan Creswell <[email protected]> Wed, 22 Nov 2006 08:48:14 +0000
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <[email protected]> |
Jérôme BERNARD wrote: > Hi Christian, > > Blitz works fine on Mac OS X. Indeed it does - cos OS X is actually my main development platform! :) > Can you make sure that this is effectively Blitz which uses port 4160? > (run netstat). > It isn't Blitz per se that's a problem - not the bottom of the stacktrace mentions GenericWorker which is nothing to do with the Blitz codebase. Gregg is heading in the right direction - I'd recommend using "lsof" to figure out who's got hold of the port in question. Cheers, Dan. P.S. Note also that for Blitz specific questions (which this actually isn't, yet) you should post to the blitzjavaspaces-users list over at sourceforge: http://sourceforge.net/mail/?group_id=126322 You must be subscribed to post. > Regards, > Jérôme. > > On 11/21/06, Christian Hager <[email protected]> wrote: >> I'm trying to run the Blitz Javaspace on a MacBook running Mac OS X and I >> keep getting the following exception. I currently have no idea why >> because. >> I ran the same Code on a Windows XP machine and there it works. >> Blitz seems to start normally but when I try to instantiate >> LookupDiscovery >> in my application I get the below error. >> >> lookupDiscovery = new LookupDiscovery (LookupDiscovery.ALL_GROUPS); >> >> Failed to init lookup >> java.net.BindException: Address already in use >> at java.net.PlainDatagramSocketImpl.bind0(Native Method) >> at >> java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82) >> at java.net.DatagramSocket.bind(DatagramSocket.java:368) >> at java.net.MulticastSocket.<init>(MulticastSocket.java:147) >> at java.net.MulticastSocket.<init>(MulticastSocket.java:112) >> at >> net.jini.discovery.LookupDiscovery$AnnouncementListener.<init>(LookupDiscovery.java:1025) >> >> at net.jini.discovery.LookupDiscovery$10.run(LookupDiscovery.java:3073) >> at java.security.AccessController.doPrivileged(Native Method) >> at net.jini.security.Security$5.run(Security.java:543) >> at java.security.AccessController.doPrivileged(Native Method) >> at net.jini.security.Security.doPrivileged(Security.java:540) >> at >> net.jini.discovery.LookupDiscovery.beginDiscovery(LookupDiscovery.java:3071) >> >> at net.jini.discovery.LookupDiscovery.<init>(LookupDiscovery.java:1884) >> at >> org.ac.computegrid.utils.ServiceFinder.getService(ServiceFinder.java:86) >> at org.ac.computegrid.worker.GenericWorker.<init>(GenericWorker.java:75) >> at org.ac.computegrid.worker.GenericWorker.main(GenericWorker.java:59) >> >> I was hoping anybody here could point me out to what the problem might >> be. >> >> Thanks in advance for any help. >> >> =========================================================================== >> >> To unsubscribe, send email to [email protected] and include in the >> body >> of the message "signoff JAVASPACES-USERS". For general help, send >> email to >> [email protected] and include in the body of the message "help". >> >> To view past JAVASPACES-USERS postings, please see: >> http://archives.java.sun.com/archives/javaspaces-users.html >> > > =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff JAVASPACES-USERS". For general help, send email to [email protected] and include in the body of the message "help". To view past JAVASPACES-USERS postings, please see: http://archives.java.sun.com/archives/javaspaces-users.html