Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB44DDA93 for ; Sun, 10 Mar 2013 06:47:18 +0000 (UTC) Received: (qmail 14552 invoked by uid 500); 10 Mar 2013 06:47:16 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 14183 invoked by uid 500); 10 Mar 2013 06:47: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 14127 invoked by uid 99); 10 Mar 2013 06:47:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Mar 2013 06:47:12 +0000 Date: Sun, 10 Mar 2013 06:47:12 +0000 (UTC) From: "Hendy Irawan (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-3907) NullPointerException in BundleWiringImpl when m_disposed is true. 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-3907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13598176#comment-13598176 ] Hendy Irawan commented on FELIX-3907: ------------------------------------- does the fix display the requested class to be loaded? This will help resolution of #FELIX-3477, #FELIX-3763 and #ARIES-951. > NullPointerException in BundleWiringImpl when m_disposed is true. > ----------------------------------------------------------------- > > Key: FELIX-3907 > URL: https://issues.apache.org/jira/browse/FELIX-3907 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: framework-4.2.0 > Environment: Windows > Reporter: Jad Naous > Assignee: Richard S. Hall > Fix For: framework-4.2.1 > > > NullPointerException caused by lines 1472-1474 of {{org.apache.felix.framework.BundleWiringImpl}} when {{this.m_disposed == true}}. I don't know why {{this.m_disposed}} is true, but I'm guessing it's some sort of race condition. Stack trace follows: > {noformat} > ( Thread-5) [DEBUG] ntegration.NeratiDeployer java.lang.NullPointerException: null > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1472) ~[felix.jar:na] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75) ~[felix.jar:na] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1923) ~[felix.jar:na] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[na:1.6.0_37] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.lang.Class.getDeclaredFields0(Native Method) ~[na:1.6.0_37] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.lang.Class.privateGetDeclaredFields(Class.java:2291) ~[na:1.6.0_37] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.lang.Class.getDeclaredField(Class.java:1880) ~[na:1.6.0_37] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at com.nerati.agent.events.RuntimeRecording.getClassId(RuntimeRecording.java:156) ~[agent-main-0.0.5-SNAPSHOT.jar:0.0.5-SNAPSHOT] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at com.nerati.agent.events.RuntimeRecording.writeAsJson(RuntimeRecording.java:118) ~[agent-main-0.0.5-SNAPSHOT.jar:0.0.5-SNAPSHOT] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at com.nerati.agent.client.ControllerClient.processRequest(ControllerClient.java:160) ~[agent-main-0.0.5-SNAPSHOT.jar:0.0.5-SNAPSHOT] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at com.nerati.agent.client.ControllerClient.putData(ControllerClient.java:131) ~[agent-main-0.0.5-SNAPSHOT.jar:0.0.5-SNAPSHOT] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at com.nerati.agent.client.ControllerManager.putData(ControllerManager.java:177) ~[agent-main-0.0.5-SNAPSHOT.jar:0.0.5-SNAPSHOT] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at com.nerati.agent.client.ControllerSendTask.run(ControllerSendTask.java:119) ~[agent-main-0.0.5-SNAPSHOT.jar:0.0.5-SNAPSHOT] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [na:1.6.0_37] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [na:1.6.0_37] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [na:1.6.0_37] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [na:1.6.0_37] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [na:1.6.0_37] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [na:1.6.0_37] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_37] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_37] > ( Thread-5) [DEBUG] ntegration.NeratiDeployer at java.lang.Thread.run(Thread.java:662) [na:1.6.0_37] > {noformat} -- 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