Skip to main content



      Home
Home » Eclipse Projects » Equinox » Bug in org.eclipse.equinox.cm
Bug in org.eclipse.equinox.cm [message #95229] Mon, 20 August 2007 01:12 Go to next message
Eclipse UserFriend
Hello;

I think I have found a bug in the EventDispatcher class in the
implementation of the configuration admin service.

from line 50:
if (configAdminReference != null)
configAdminReference = reference;

The variable configAdminReference is not assigned anywhere else in the
class, and so will always be null.

I noticed this after I registered a ConfigurationListener and it was not
being called. The reason for this was because ConfigurationEvents are
not created if configAdminReference is null. The setter for the
configAdminReference is called by the ServiceFactory for
ConfigurationAdmin.

bye
Re: Bug in org.eclipse.equinox.cm [message #95245 is a reply to message #95229] Mon, 20 August 2007 09:42 Go to previous messageGo to next message
Eclipse UserFriend
Thanks. I'll look into it.
Please open a bug report.

-Simon
"M Fisher" <logicfish@hotmail.com> wrote in message
news:fab7s3$cm$1@build.eclipse.org...
> Hello;
>
> I think I have found a bug in the EventDispatcher class in the
> implementation of the configuration admin service.
>
> from line 50:
> if (configAdminReference != null)
> configAdminReference = reference;
>
> The variable configAdminReference is not assigned anywhere else in the
> class, and so will always be null.
>
> I noticed this after I registered a ConfigurationListener and it was not
> being called. The reason for this was because ConfigurationEvents are
> not created if configAdminReference is null. The setter for the
> configAdminReference is called by the ServiceFactory for
> ConfigurationAdmin.
>
> bye
Re: Bug in org.eclipse.equinox.cm [message #95260 is a reply to message #95229] Mon, 20 August 2007 10:18 Go to previous messageGo to next message
Eclipse UserFriend
In order to generate events you would need to call configuration.update(...)
or configuration.delete().
You should only be able to get at a Configuration object via the ConfigAdmin
service which in turn should initialize EventDispatcher. e.g.
ManagedServices and ManagedServiceFactories only provide access to a
dictionary of properties.
Are we leaking a Configuration object somewhere?? Perhaps a subtle threading
problem??

Can you provide some details on what you're doing or better yet a test case.

Thanks.
-Simon

"M Fisher" <logicfish@hotmail.com> wrote in message
news:fab7s3$cm$1@build.eclipse.org...
> Hello;
>
> I think I have found a bug in the EventDispatcher class in the
> implementation of the configuration admin service.
>
> from line 50:
> if (configAdminReference != null)
> configAdminReference = reference;
>
> The variable configAdminReference is not assigned anywhere else in the
> class, and so will always be null.
>
> I noticed this after I registered a ConfigurationListener and it was not
> being called. The reason for this was because ConfigurationEvents are
> not created if configAdminReference is null. The setter for the
> configAdminReference is called by the ServiceFactory for
> ConfigurationAdmin.
>
> bye
Re: Bug in org.eclipse.equinox.cm [message #95874 is a reply to message #95245] Sat, 25 August 2007 13:44 Go to previous message
Eclipse UserFriend
On Mon, 20 Aug 2007 09:42:17 -0400, Simon Kaegi wrote:


> Thanks. I'll look into it.
> Please open a bug report.

Filed as bug 201168
Previous Topic:JavaWebStart and Eclipse 3.3
Next Topic:Problem exporting a package
Goto Forum:
  


Current Time: Tue Jul 22 16:06:28 EDT 2025

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

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

Back to the top