[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [ecf-dev] Problem with SLP discovery | 
On Jun 3, 2009, at 5:40 AM, Markus Alexander Kuppe wrote:
-----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?
I'm using OS X with Java 1.5 for my testing.  Ultimately, I need to  
run on Windows and Linux using a variety of JVM versions.
Otherwise jSLP 2.0 uses APR to handle the low-level network stuff.  
Maybe
that's going to help you.
I don't think I'm going to be able to use jSLP 2.0 as it appears to  
require native code, and appears to be vaporware as of today.
I need a working solution in a few days, so I'm thinking I'm going to  
hack my own discovery provider until one of these other solutions  
proves itself as a viable solution in my environment.
Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkomUxsACgkQH/hL0IhDj1kcxgCfV23TtlcGq/gNcIhkFpV30Unc
htUAniNVwsoja1xATQFDxGzVRZN2zzPY
=kZBa
-----END PGP SIGNATURE-----
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev