You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Nils Hartmann (JIRA)" <ji...@apache.org> on 2010/02/23 09:07:27 UTC

[jira] Commented: (FELIX-1977) Improve message if a plugin cannot be installed

    [ https://issues.apache.org/jira/browse/FELIX-1977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837133#action_12837133 ] 

Nils Hartmann commented on FELIX-1977:
--------------------------------------

In the catch-block you've added to OsgiManager in revision #898253, the line

if ( message.indexOf( ' ' ) < 0 )

can cause a NullPointerException as NoClassDefFoundError.getMessage() is allowed to return null according to the method's javadoc. (I'm running into this while installing the webconsole in Eclipse Equinox 3.3.2 with jdk1.5 on windows). 

Can you fix this? Thank you very much!

> Improve message if a plugin cannot be installed
> -----------------------------------------------
>
>                 Key: FELIX-1977
>                 URL: https://issues.apache.org/jira/browse/FELIX-1977
>             Project: Felix
>          Issue Type: Improvement
>          Components: Web Console
>    Affects Versions: webconsole-2.0.4
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: webconsole-2.0.6
>
>
> Currently the web console logs a message of the form
>    Failed to instantiate plugin org.apache.felix.webconsole.internal.misc.ShellServlet. Reason: java.lang.NoClassDefFoundError: org.apache.felix.shell.ShellService
> If an embedded plugin cannot be created and installed.
> This generic message should be enhanced for the expected use case of not being able to load a plugin due to missing dependency resolution (such as the Apache Felix Shell Service, the Apache Felix SCR API, or any Compendium API).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.