[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ecf-dev] Problem with SLP discovery
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bryan Hunt wrote:
> I'm playing around with SLP and I've run into a problem. When SLPCore
> (line 807) executes socket.setInterface(addr); I'm getting:
>
> ch.ethz.iks.slp.ServiceLocationException: Can't assign requested address
> at ch.ethz.iks.slp.impl.SLPCore.multicastConvergence(SLPCore.java:915)
> at ch.ethz.iks.slp.impl.LocatorImpl.sendRequest(LocatorImpl.java:267)
> at ch.ethz.iks.slp.impl.LocatorImpl.findServiceTypes(LocatorImpl.java:114)
> at
> org.eclipse.ecf.internal.provider.jslp.LocatorDecoratorImpl.findServiceTypes(LocatorDecoratorImpl.java:54)
> at
> org.eclipse.ecf.internal.provider.jslp.LocatorDecoratorImpl.getServiceURLs(LocatorDecoratorImpl.java:106)
> at
> org.eclipse.ecf.internal.provider.jslp.JSLPDiscoveryJob.run(JSLPDiscoveryJob.java:43)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> When it executes socket.setInterface(addr), it's using my first IP
> address which happens to be my work VPN assigned IP address. If I set
>
> -Dnet.slp.interfaces=192.168.1.10
>
> and use my local network, everything works just fine. Ultimately, I
> need to use SLP with a static DA which will reside on my work network
> and will be accessed by customers using VPN from home. Any idea why I
> see the problem when using my work VPN IP address, and any ideas on a
> solution such that I can eventually use a static DA?
This sounds like a problem with the network interface that's created by
the VPN software. Apparently Java is unable to assign an address. I#ve
been seeing the same Exception with the iPhone jamvm/gnu classpath. I'm
pretty sure this issue can be isolated from jSLP. Try using a newer VM.
What OS/Version/... are you using anyway?
Otherwise jSLP 2.0 uses APR to handle the low-level network stuff. Maybe
that's going to help you.
Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkomUxsACgkQH/hL0IhDj1kcxgCfV23TtlcGq/gNcIhkFpV30Unc
htUAniNVwsoja1xATQFDxGzVRZN2zzPY
=kZBa
-----END PGP SIGNATURE-----