You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Markus Rathgeb (JIRA)" <ji...@apache.org> on 2015/03/03 15:34:04 UTC

[jira] [Created] (KARAF-3582) command extension: if one class failed inspection is stopped

Markus Rathgeb created KARAF-3582:
-------------------------------------

             Summary: command extension: if one class failed inspection is stopped
                 Key: KARAF-3582
                 URL: https://issues.apache.org/jira/browse/KARAF-3582
             Project: Karaf
          Issue Type: Bug
          Components: karaf-shell
    Affects Versions: 4.0.0.M2
            Reporter: Markus Rathgeb


Using a bundle with classes that could not be processed (e.g. a class could not be inspected cuased by a NoClassDefFound exception), will result in not loading other classes with command extensions.
We should skip classes that thrown an error, but proceed the other ones.
For example is a DS is optional (using optional requirements) and that one could not be loaded, we should be able to use command extensions that could be loaded.
Two possible fixes:
- handle ClassNotFoundException and NoClassDefFoundError only: https://github.com/maggu2810/karaf/commit/c95b90f2d1a8b09b2f3e048943bd93ea0e7b2077
- catch all exception for the current class: https://github.com/maggu2810/karaf/commit/4de92e86316e577af48b8ebcfd1ac8fb8195a04a



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)