Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 24349 invoked from network); 25 Jun 2010 12:48:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Jun 2010 12:48:16 -0000 Received: (qmail 35492 invoked by uid 500); 25 Jun 2010 12:48:16 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 35045 invoked by uid 500); 25 Jun 2010 12:48:14 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 34996 invoked by uid 99); 25 Jun 2010 12:48:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 12:48:13 +0000 X-ASF-Spam-Status: No, hits=-1544.7 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 12:48:13 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5PClqTD027260 for ; Fri, 25 Jun 2010 12:47:52 GMT Message-ID: <30441475.57851277470072930.JavaMail.jira@thor> Date: Fri, 25 Jun 2010 08:47:52 -0400 (EDT) From: "Richard S. Hall (JIRA)" To: dev@felix.apache.org Subject: [jira] Reopened: (FELIX-2417) NPE in Filter In-Reply-To: <32172137.51991276765522771.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-2417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard S. Hall reopened FELIX-2417: ------------------------------------ > NPE in Filter > -------------- > > Key: FELIX-2417 > URL: https://issues.apache.org/jira/browse/FELIX-2417 > Project: Felix > Issue Type: Bug > Affects Versions: framework-3.0.0 > Environment: java version "1.6.0_20" > Java(TM) SE Runtime Environment (build 1.6.0_20-b02) > Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing) > Reporter: Martin Zdila > > After upgrading framework from 2.0.5 to 3.0.0 I am getting many NPE exceptions "Cannot register Component". > I can't identify the core of the problem, but from what I see: in the org.apache.felix.framework.FilterImpl on line 145 the name = "service.factoryPid" but m_map doesn't contain such entry and so the key is set to null. The next call on the line 147 fails because key cannot be null in Hashtable.get(key). > ERROR: my-cool-bundle (110): [my.cool.ServiceImpl] Cannot register Component > java.lang.NullPointerException > at java.util.Hashtable.get(Hashtable.java:334) > at org.apache.felix.framework.FilterImpl$DictionaryCapability.getAttribute(FilterImpl.java:147) > at org.apache.felix.framework.capabilityset.CapabilitySet.matchesInternal(CapabilitySet.java:269) > at org.apache.felix.framework.capabilityset.CapabilitySet.matches(CapabilitySet.java:226) > at org.apache.felix.framework.FilterImpl.match(FilterImpl.java:59) > at org.apache.felix.cm.impl.ConfigurationManager.listConfigurations(ConfigurationManager.java:538) > at org.apache.felix.cm.impl.ConfigurationAdminImpl.listConfigurations(ConfigurationAdminImpl.java:124) > at org.apache.felix.scr.impl.config.ConfigurationComponentRegistry.findConfigurations(ConfigurationComponentRegistry.java:267) > at org.apache.felix.scr.impl.config.ConfigurationComponentRegistry.findFactoryConfigurations(ConfigurationComponentRegistry.java:259) > at org.apache.felix.scr.impl.config.ConfigurationComponentRegistry.createComponentHolder(ConfigurationComponentRegistry.java:107) > at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:244) > at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:147) > at org.apache.felix.scr.impl.BundleComponentActivator.(BundleComponentActivator.java:111) > at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:255) > at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:173) > at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800) > at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728) > at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610) > at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3734) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1807) > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1188) > at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) > at java.lang.Thread.run(Thread.java:619) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.