Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] JMDNS null namespace

I'm not sure if this is a bug or my own stupidity, but I am consistently getting a null namespace from IDiscoveryServiceAdapter.getServicesNamespace.

ala :

org .eclipse .core .runtime .Status[plugin=org.eclipse.ecf.identity;code=2001;message=Namespace cannot be null ;severity4;exception=org.eclipse.ecf.core.identity.IDCreateException: Namespace cannot be null;children=[]] org.eclipse.ecf.core.identity.IDCreateException: Namespace cannot be null at org.eclipse.ecf.core.identity.IDFactory.logAndThrow(IDFactory.java: 175)
	at org.eclipse.ecf.core.identity.IDFactory.createID(IDFactory.java:192)
at org .eclipse .ecf .discovery .identity.ServiceIDFactory.createServiceID(ServiceIDFactory.java:40) at org .eclipse .ecf .provider .jmdns .container .JMDNSDiscoveryContainer.createServiceID(JMDNSDiscoveryContainer.java: 454) at org .eclipse .ecf .provider .jmdns .container .JMDNSDiscoveryContainer .createServiceTypeID(JMDNSDiscoveryContainer.java:404) at org .eclipse .ecf .provider .jmdns .container .JMDNSDiscoveryContainer.serviceTypeAdded(JMDNSDiscoveryContainer.java: 283)
	at javax.jmdns.impl.JmDNSImpl.registerServiceType(JmDNSImpl.java:729)
	at javax.jmdns.impl.JmDNSImpl.handleResponse(JmDNSImpl.java:1005)
	at javax.jmdns.impl.SocketListener.run(SocketListener.java:68)
	at java.lang.Thread.run(Thread.java:613)


I've acquired the adapter via the IDiscoverService (copied the logic from DiscoveryViewer) and from my own instance of the the container (ContainerFactory.getDefault().createContainer("ecf.discovery.jmdns")).

It's really hard to register a service without the namespace. Can anyone provide me a clue or should I be submitting a bug report?

I'm using Eclipse 3.3.2, ECF 2.0.0.v20080616-1157 on Mac 10.5.3.


p.s. I also imported the discovery.test project and ran the tests against "ecf.discovery.jmdns", and get failures across the board : java.lang.IllegalArgumentException: invalid property value: 2147483647
	at javax.jmdns.impl.ServiceInfoImpl.<init>(ServiceInfoImpl.java:123)
	at javax.jmdns.ServiceInfo.create(ServiceInfo.java:57)
at org .eclipse .ecf .provider .jmdns .container .JMDNSDiscoveryContainer .createServiceInfoFromIServiceInfo(JMDNSDiscoveryContainer.java:482) at org .eclipse .ecf .provider .jmdns .container .JMDNSDiscoveryContainer .unregisterService(JMDNSDiscoveryContainer.java:249) at org .eclipse.ecf.tests.discovery.DiscoveryTest.tearDown(DiscoveryTest.java: 157)
	...

  ...
  Anthony M. Harrison, PhD
  http://anthonymharrison.com/
  http://jactr.org/




Back to the top