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 9FFC810F32 for ; Sun, 11 Aug 2013 08:19:05 +0000 (UTC) Received: (qmail 74526 invoked by uid 500); 11 Aug 2013 08:19:05 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 73692 invoked by uid 500); 11 Aug 2013 08:18:55 -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 73507 invoked by uid 99); 11 Aug 2013 08:18:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Aug 2013 08:18:51 +0000 Date: Sun, 11 Aug 2013 08:18:51 +0000 (UTC) From: "Daniel Kuffner (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FELIX-4192) SCR Generator fails with a NPE in case a class level Reference doesn't define a referenceInterface MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Daniel Kuffner created FELIX-4192: ------------------------------------- Summary: SCR Generator fails with a NPE in case a class level Reference doesn't define a referenceInterface Key: FELIX-4192 URL: https://issues.apache.org/jira/browse/FELIX-4192 Project: Felix Issue Type: Bug Components: Maven SCR Plugin Affects Versions: scr generator 1.8.0 Environment: JDK7 Reporter: Daniel Kuffner Priority: Minor Consider following simple component: {code} @Component @Reference(name="a", bind="setA", unbind="unsetA") public class MyJavaClass { } {code} the generator will fail with a NPE (see stacktrace). It would be preferable if the generator will fail with a usfull error message. Stacktrace: {code} java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:332) at java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:1144) at java.lang.ClassLoader.getClassLoadingLock(ClassLoader.java:462) at java.lang.ClassLoader.loadClass(ClassLoader.java:403) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at org.apache.felix.scrplugin.helper.Validator.findMethod(Validator.java:568) at org.apache.felix.scrplugin.SCRDescriptorGenerator.processReferences(SCRDescriptorGenerator.java:647) at org.apache.felix.scrplugin.SCRDescriptorGenerator.createComponent(SCRDescriptorGenerator.java:384) at org.apache.felix.scrplugin.SCRDescriptorGenerator.execute(SCRDescriptorGenerator.java:161) at net.chilicat.felixscr.intellij.build.scr.AbstractScrProcessor.executeImpl(AbstractScrProcessor.java:86) at net.chilicat.felixscr.intellij.build.scr.AbstractScrProcessor.execute(AbstractScrProcessor.java:42) at net.chilicat.felixscr.intellij.build.ScrProcessingItem.execute(ScrProcessingItem.java:39) at net.chilicat.felixscr.intellij.build.ScrCompiler.process(ScrCompiler.java:108) {code} -- 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