Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » NullPointerException in AbstractDiscoveryContainerAdapter
NullPointerException in AbstractDiscoveryContainerAdapter [message #623516] Mon, 19 May 2008 16:02 Go to next message
Bill Joy is currently offline Bill Joy
Messages: 60
Registered: July 2009
Member
I have been trying to do a port of my plugin which uses JmDNS from ECF 1.2.0
to Ganymede M7 ECF 2.0.0.

I am getting the following exception when I stop the service:

java.lang.NullPointerException
at
org.eclipse.ecf.discovery.AbstractDiscoveryContainerAdapter. fireServiceUndiscovered(AbstractDiscoveryContainerAdapter.ja va:146)
at
org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner.fireUndiscovered(JMDNSDiscoveryContainer.java:351)
at
org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner$4.run(JMDNSDiscoveryContainer.java:340)
at
org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner$1.run(JMDNSDiscoveryContainer.java:117)
at java.lang.Thread.run(Thread.java:595)

When JmDNS invokes serviceRemoved(), the event ServiceEvent contains a null
reference to ServiceInfo.

I compared the old and new versions of JMDNSDiscoveryContainer. I found
that the old code receives a null ServiceInfo from JmDNS too, however it
would return a JMDNSServiceInfo instance it created dynamically. The new
code just returns a null IServiceInfo in the same situation.
Re: NullPointerException in AbstractDiscoveryContainerAdapter [message #623578 is a reply to message #623516] Mon, 19 May 2008 16:30 Go to previous message
Scott Lewis is currently offline Scott Lewis
Messages: 971
Registered: July 2009
Senior Member
Hi Bill,

Would you please create a bug for this and I will address it right away.

Thanks,

Scott


Bill Joy wrote:
> I have been trying to do a port of my plugin which uses JmDNS from ECF 1.2.0
> to Ganymede M7 ECF 2.0.0.
>
> I am getting the following exception when I stop the service:
>
> java.lang.NullPointerException
> at
> org.eclipse.ecf.discovery.AbstractDiscoveryContainerAdapter. fireServiceUndiscovered(AbstractDiscoveryContainerAdapter.ja va:146)
> at
> org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner.fireUndiscovered(JMDNSDiscoveryContainer.java:351)
> at
> org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner$4.run(JMDNSDiscoveryContainer.java:340)
> at
> org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryConta iner$1.run(JMDNSDiscoveryContainer.java:117)
> at java.lang.Thread.run(Thread.java:595)
>
> When JmDNS invokes serviceRemoved(), the event ServiceEvent contains a null
> reference to ServiceInfo.
>
> I compared the old and new versions of JMDNSDiscoveryContainer. I found
> that the old code receives a null ServiceInfo from JmDNS too, however it
> would return a JMDNSServiceInfo instance it created dynamically. The new
> code just returns a null IServiceInfo in the same situation.
>
>
Previous Topic:ECF 1.2.0 download
Next Topic:JmDNS discovery issue
Goto Forum:
  


Current Time: Thu Oct 23 18:44:03 GMT 2014

Powered by FUDForum. Page generated in 0.02646 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software