[
https://issues.apache.org/jira/browse/FELIX-6514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17512170#comment-17512170
]
Raymond Augé commented on FELIX-6514:
-------------------------------------
I suspect this happens when the system has many {{ConfigurationListener}}s some
of which have become unregistered but have not been removed from the
ServiceTracker for some reason.
> NPE on ConfigurationEvent
> -------------------------
>
> Key: FELIX-6514
> URL: https://issues.apache.org/jira/browse/FELIX-6514
> Project: Felix
> Issue Type: Bug
> Components: Configuration Admin
> Reporter: Raymond Augé
> Assignee: Raymond Augé
> Priority: Major
> Fix For: configadmin-1.9.24
>
> Attachments: Screenshot from 2022-03-24 21-25-04.png
>
>
> I'm seeing strange NPE in FireConfigurationEvent
> {code}
> 2022-03-24 19:21:05.693 ERROR [CM Event Dispatcher (Fire ConfigurationEvent:
> pid=foo)][LogService:93] Unexpected problem executing task
> {org.osgi.service.cm.ConfigurationAdmin}={osgi.command.scope=cm,
> service.description=Configuration Admin Service Specification 1.6
> Implementation, service.id=52, service.bundleid=58, service.scope=bundle,
> osgi.command.function=[getConfiguration,getFactoryConfiguration,listConfigurations,createFactoryConfiguration],
> service.vendor=The Apache Software Foundation, config.plugins=,
> service.pid=org.apache.felix.cm.ConfigurationAdmin}
> java.lang.NullPointerException: null
> at
> org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:1686)
> ~[bundleFile:?]
> at
> org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1662)
> ~[bundleFile:?]
> at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:122)
> ~[bundleFile:?]
> at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:84)
> [bundleFile:?]
> at java.lang.Thread.run(Thread.java:750) [?:1.8.0_322]
> {code}
> It appears as though there are empty (null) positions in the
> {{listenerProvider}} array.
> !Screenshot from 2022-03-24 21-25-04.png!
--
This message was sent by Atlassian Jira
(v8.20.1#820001)