Menu

#1 Unable to run sample code

open
nobody
None
5
2011-11-16
2011-11-16
Anonymous
No

Hi,
I tried implementing jSLP 1.0.0 RC5 on my mac, and while trying to run the sample registration/lokup test file, ran into this error:

Nov 16, 2011 6:20:09 AM ch.ethz.iks.slp.impl.StandalonePlatformAbstraction logWarning
WARNING: Error connecting to: 192.168.56.1
java.io.IOException: No route to host
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:625)
at ch.ethz.iks.slp.impl.SLPCore.daLookup(SLPCore.java:629)
at ch.ethz.iks.slp.impl.SLPCore.init(SLPCore.java:326)
at ch.ethz.iks.slp.ServiceLocationManager.init(ServiceLocationManager.java:53)
at ch.ethz.iks.slp.ServiceLocationManager.getLocator(ServiceLocationManager.java:80)
at Lookup.main(Lookup.java:13)
Nov 16, 2011 6:20:09 AM ch.ethz.iks.slp.impl.StandalonePlatformAbstraction logError
SEVERE: Exception in initial DA lookup
ch.ethz.iks.slp.ServiceLocationException: No route to host
at ch.ethz.iks.slp.impl.SLPCore.daLookup(SLPCore.java:649)
at ch.ethz.iks.slp.impl.SLPCore.init(SLPCore.java:326)
at ch.ethz.iks.slp.ServiceLocationManager.init(ServiceLocationManager.java:53)
at ch.ethz.iks.slp.ServiceLocationManager.getLocator(ServiceLocationManager.java:80)
at Lookup.main(Lookup.java:13)
Nov 16, 2011 6:20:09 AM ch.ethz.iks.slp.impl.StandalonePlatformAbstraction logWarning
WARNING: Error connecting to: 192.168.56.1
java.io.IOException: No route to host
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:625)
at ch.ethz.iks.slp.impl.SLPCore.daLookup(SLPCore.java:629)
at ch.ethz.iks.slp.impl.LocatorImpl.sendRequest(LocatorImpl.java:236)
at ch.ethz.iks.slp.impl.LocatorImpl.findServices(LocatorImpl.java:138)
at Lookup.main(Lookup.java:16)
Exception in thread "main" ch.ethz.iks.slp.ServiceLocationException: No route to host
at ch.ethz.iks.slp.impl.SLPCore.daLookup(SLPCore.java:649)
at ch.ethz.iks.slp.impl.LocatorImpl.sendRequest(LocatorImpl.java:236)
at ch.ethz.iks.slp.impl.LocatorImpl.findServices(LocatorImpl.java:138)
at Lookup.main(Lookup.java:16)

Could someone help mw with why it isn't able to look itself up??

regards,
Puneet

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.