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

[jira] Created: (FELIX-2122) Possible NullPointerException reporting failure to instantiate a plugin

Possible NullPointerException reporting failure to instantiate a plugin
-----------------------------------------------------------------------

                 Key: FELIX-2122
                 URL: https://issues.apache.org/jira/browse/FELIX-2122
             Project: Felix
          Issue Type: Bug
          Components: Web Console
    Affects Versions: webconsole-2.0.6
            Reporter: Nils Hartmann
            Assignee: Felix Meschberger
             Fix For: webconsole-3.0.0


>From [1]:

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! 

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


[jira] Commented: (FELIX-2122) Possible NullPointerException reporting failure to instantiate a plugin

Posted by "Nils Hartmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837667#action_12837667 ] 

Nils Hartmann commented on FELIX-2122:
--------------------------------------

Thank you very much for your fast response!!! Works now!

> Possible NullPointerException reporting failure to instantiate a plugin
> -----------------------------------------------------------------------
>
>                 Key: FELIX-2122
>                 URL: https://issues.apache.org/jira/browse/FELIX-2122
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-2.0.6
>            Reporter: Nils Hartmann
>            Assignee: Felix Meschberger
>             Fix For: webconsole-3.0.0
>
>
> From [1]:
> 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! 

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


[jira] Resolved: (FELIX-2122) Possible NullPointerException reporting failure to instantiate a plugin

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

Felix Meschberger resolved FELIX-2122.
--------------------------------------

    Resolution: Fixed

Fixed in Rev. 915246 by catching the null case and providing a reasonable reason message

> Possible NullPointerException reporting failure to instantiate a plugin
> -----------------------------------------------------------------------
>
>                 Key: FELIX-2122
>                 URL: https://issues.apache.org/jira/browse/FELIX-2122
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-2.0.6
>            Reporter: Nils Hartmann
>            Assignee: Felix Meschberger
>             Fix For: webconsole-3.0.0
>
>
> From [1]:
> 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! 

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


[jira] Closed: (FELIX-2122) Possible NullPointerException reporting failure to instantiate a plugin

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

Carsten Ziegeler closed FELIX-2122.
-----------------------------------


> Possible NullPointerException reporting failure to instantiate a plugin
> -----------------------------------------------------------------------
>
>                 Key: FELIX-2122
>                 URL: https://issues.apache.org/jira/browse/FELIX-2122
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-2.0.6
>            Reporter: Nils Hartmann
>            Assignee: Felix Meschberger
>             Fix For: webconsole-3.0.0
>
>
> From [1]:
> 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! 

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