You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Daniel Kuffner (Created) (JIRA)" <ji...@apache.org> on 2011/10/05 22:18:30 UTC

[jira] [Created] (FELIX-3149) SCR Generator NullPointerExcpeiton in case Service interface doesn~

SCR Generator NullPointerExcpeiton in case Service interface doesn~
-------------------------------------------------------------------

                 Key: FELIX-3149
                 URL: https://issues.apache.org/jira/browse/FELIX-3149
             Project: Felix
          Issue Type: Bug
            Reporter: Daniel Kuffner




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FELIX-3149) SCR Generator NullPointerExcpeiton in case of declared Service interface isn't implemented by the Component

Posted by "Daniel Kuffner (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kuffner updated FELIX-3149:
----------------------------------

          Component/s: SCR Annotations
                       Maven SCR Plugin
          Description: 
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.

    Affects Version/s: maven-scr-plugin-1.7.2
                       scr ant task 1.1.2
                       scr generator 1.1.2
              Summary: SCR Generator NullPointerExcpeiton in case of declared Service interface isn't implemented by the Component  (was: SCR Generator NullPointerExcpeiton in case Service interface doesn~)
    
> 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: Maven SCR Plugin, SCR Annotations
>    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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (FELIX-3149) SCR Generator NullPointerExcpeiton in case of declared Service interface isn't implemented by the Component

Posted by "Carsten Ziegeler (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved FELIX-3149.
-------------------------------------

    Resolution: Duplicate

Duplicate of FELIX-3117
                
> 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: Maven SCR Plugin, SCR Annotations
>    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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira