Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 JoyFriend
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 LewisFriend
Messages: 1038
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: Fri Apr 26 15:30:19 GMT 2024

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

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

Back to the top