You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2013/09/11 23:12:51 UTC
[jira] [Created] (FELIX-4224) [DS] Dependency manager can be active
but not have m_bindMethods set
David Jencks created FELIX-4224:
-----------------------------------
Summary: [DS] Dependency manager can be active but not have m_bindMethods set
Key: FELIX-4224
URL: https://issues.apache.org/jira/browse/FELIX-4224
Project: Felix
Issue Type: Bug
Components: Declarative Services (SCR)
Affects Versions: scr-1.8.0
Reporter: David Jencks
Assignee: David Jencks
Fix For: scr-1.8.0
We've seen an NPE from m_bindMethods being null in this code:
public void addedService( ServiceReference<T> serviceReference, RefPair<T> refPair, int trackingCount )
{
m_componentManager.log( LogService.LOG_DEBUG, "dm {0} tracking {1} MultipleDynamic added {2} (enter)", new Object[] {getName(), trackingCount, serviceReference}, null );
boolean tracked = false;
if ( getPreviousRefMap().remove( serviceReference ) == null )
{
if (isActive())
{
getServiceObject( m_bindMethods.getBind(), refPair );
(DependencyManager.MultipleDynamicCustomizer, around line 314)
After some investigation I can't see any way this can occur except from m_bindMethods not being volatile. I'll see if this reoccurs after making it volatile.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira