[
https://issues.apache.org/jira/browse/FELIX-3149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler closed FELIX-3149.
-----------------------------------
> SCR Generator NullPointerExcpeiton in case of declared Service interface
> isn't implemented by the Component
> -----------------------------------------------------------------------------------------------------------
>
> Key: FELIX-3149
> URL: https://issues.apache.org/jira/browse/FELIX-3149
> Project: Felix
> Issue Type: Bug
> Components: SCR Tooling
> Affects Versions: maven-scr-plugin-1.7.2, scr ant task 1.1.2, scr
> generator 1.1.2
> Reporter: Daniel Kuffner
>
> I have created a service component which implements IService but declares
> IService2
> Example:
> @Component()
> @Service({ IService2.class })
> public class ServiceImpl implements IService {
> I get following exception:
> java.lang.NullPointerException
> at
> org.apache.felix.scrplugin.tags.cl.ClassLoaderJavaClassDescription.isA(ClassLoaderJavaClassDescription.java:245)
> at
> org.apache.felix.scrplugin.tags.qdox.QDoxJavaClassDescription.isA(QDoxJavaClassDescription.java:309)
> at org.apache.felix.scrplugin.om.Interface.validate(Interface.java:68)
> at org.apache.felix.scrplugin.om.Service.validate(Service.java:99)
> at org.apache.felix.scrplugin.om.Component.validate(Component.java:327)
> at
> org.apache.felix.scrplugin.SCRDescriptorGenerator.execute(SCRDescriptorGenerator.java:342)
> The generator should throw some exception which I can handle correctly. It
> would be nice if the exception could expose the class which causes the failur
> (full class name as string). The full class name would be really usefull for
> a IDE plugin.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)