You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2011/07/10 03:44:01 UTC
[jira] [Created] (KARAF-722) throw more meaningful exception but
not NPE when the BUNDLE_SYMBOLICNAME is null
throw more meaningful exception but not NPE when the BUNDLE_SYMBOLICNAME is null
--------------------------------------------------------------------------------
Key: KARAF-722
URL: https://issues.apache.org/jira/browse/KARAF-722
Project: Karaf
Issue Type: Improvement
Affects Versions: 2.2.2
Reporter: Freeman Fang
Assignee: Freeman Fang
when install feature, if the feature contain some jar isn't the OSGi friendly, which means it not has Bundle-SymbolicName OSGi header, then the blow code
{code}
String sn = m.getMainAttributes().getValue(Constants.BUNDLE_SYMBOLICNAME);
int attributeIndexSep = sn.indexOf(';');
{code}
we should add a check for sn and throw more meaningful exception if it's NULL but not just the NPE
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Work started] (KARAF-722) throw more meaningful exception
but not NPE when the BUNDLE_SYMBOLICNAME is null
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on KARAF-722 started by Freeman Fang.
> throw more meaningful exception but not NPE when the BUNDLE_SYMBOLICNAME is null
> --------------------------------------------------------------------------------
>
> Key: KARAF-722
> URL: https://issues.apache.org/jira/browse/KARAF-722
> Project: Karaf
> Issue Type: Improvement
> Affects Versions: 2.2.2
> Reporter: Freeman Fang
> Assignee: Freeman Fang
>
> when install feature, if the feature contain some jar isn't the OSGi friendly, which means it not has Bundle-SymbolicName OSGi header, then the blow code
> {code}
> String sn = m.getMainAttributes().getValue(Constants.BUNDLE_SYMBOLICNAME);
> int attributeIndexSep = sn.indexOf(';');
> {code}
> we should add a check for sn and throw more meaningful exception if it's NULL but not just the NPE
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (KARAF-722) throw more meaningful exception but
not NPE when the BUNDLE_SYMBOLICNAME is null
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved KARAF-722.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.2.3
commit fix
http://svn.apache.org/viewvc?rev=1144789&view=rev
> throw more meaningful exception but not NPE when the BUNDLE_SYMBOLICNAME is null
> --------------------------------------------------------------------------------
>
> Key: KARAF-722
> URL: https://issues.apache.org/jira/browse/KARAF-722
> Project: Karaf
> Issue Type: Improvement
> Affects Versions: 2.2.2
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 2.2.3
>
>
> when install feature, if the feature contain some jar isn't the OSGi friendly, which means it not has Bundle-SymbolicName OSGi header, then the blow code
> {code}
> String sn = m.getMainAttributes().getValue(Constants.BUNDLE_SYMBOLICNAME);
> int attributeIndexSep = sn.indexOf(';');
> {code}
> we should add a check for sn and throw more meaningful exception if it's NULL but not just the NPE
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (KARAF-722) throw more meaningful exception but not
NPE when the BUNDLE_SYMBOLICNAME is null
Posted by "Jamie goodyear (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jamie goodyear closed KARAF-722.
--------------------------------
> throw more meaningful exception but not NPE when the BUNDLE_SYMBOLICNAME is null
> --------------------------------------------------------------------------------
>
> Key: KARAF-722
> URL: https://issues.apache.org/jira/browse/KARAF-722
> Project: Karaf
> Issue Type: Improvement
> Affects Versions: 2.2.2
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 2.2.3
>
>
> when install feature, if the feature contain some jar isn't the OSGi friendly, which means it not has Bundle-SymbolicName OSGi header, then the blow code
> {code}
> String sn = m.getMainAttributes().getValue(Constants.BUNDLE_SYMBOLICNAME);
> int attributeIndexSep = sn.indexOf(';');
> {code}
> we should add a check for sn and throw more meaningful exception if it's NULL but not just the NPE
--
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