You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/04/12 09:20:12 UTC

[jira] [Commented] (KARAF-3659) shutdown of karaf throws NullPointerException if jmx ssl keystore is not configured properly

    [ https://issues.apache.org/jira/browse/KARAF-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14491357#comment-14491357 ] 

ASF GitHub Bot commented on KARAF-3659:
---------------------------------------

GitHub user jaysensharma opened a pull request:

    https://github.com/apache/karaf/pull/59

    [KARAF-3659] NullPointerException fixed during shutdown due to incorrect...

    ...ly configured JMX SSL
    
    https://issues.apache.org/jira/browse/KARAF-3659

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jaysensharma/karaf-1 KARAF-3659

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/karaf/pull/59.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #59
    
----
commit ebd04896f2b941550a66b0f79c9e0625748f7932
Author: Jay SenSharma <jo...@gmail.com>
Date:   2015-04-12T06:21:57Z

    [KARAF-3659] NullPointerException fixed during shutdown due to incorrectly configured JMX SSL

----


> shutdown of karaf throws NullPointerException if jmx ssl keystore is not configured properly
> --------------------------------------------------------------------------------------------
>
>                 Key: KARAF-3659
>                 URL: https://issues.apache.org/jira/browse/KARAF-3659
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-management
>    Affects Versions: 4.0.0.M2
>         Environment: All
>            Reporter: JaySenSharma
>
> If the "keystore" is not configured propertly inside the "etc/org.apache.karaf.management.cfg" file  then while doing a "shutdown" (either usign "shutdown" command or using ctrl+d) the karaf throws the following error.
> {code}
> 2015-04-12 11:25:42,242 | WARN  | FelixStartLevel  | core                             | 15 - org.apache.aries.jmx.core - 1.1.3 | Task rejected for JMX Notification dispatch of event [org.osgi.framework.ServiceEvent[source=[javax.management.MBeanServer]]] - Dispatcher may have been shutdown
> 2015-04-12 11:25:42,243 | WARN  | FelixStartLevel  | Activator                        | 36 - org.apache.karaf.management.server - 4.0.0.SNAPSHOT | Error destroying ConnectorServerFactory
> java.lang.NullPointerException
> 	at org.apache.karaf.management.ConnectorServerFactory.destroy(ConnectorServerFactory.java:276)[36:org.apache.karaf.management.server:4.0.0.SNAPSHOT]
> 	at org.apache.karaf.management.internal.Activator.doStop(Activator.java:178)[36:org.apache.karaf.management.server:4.0.0.SNAPSHOT]
> 	at org.apache.karaf.util.tracker.BaseActivator.stop(BaseActivator.java:90)[36:org.apache.karaf.management.server:4.0.0.SNAPSHOT]
> 	at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:719)[org.apache.felix.framework-4.9.0-SNAPSHOT.jar:]
> 	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2608)[org.apache.felix.framework-4.9.0-SNAPSHOT.jar:]
> 	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1387)[org.apache.felix.framework-4.9.0-SNAPSHOT.jar:]
> 	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)[org.apache.felix.framework-4.9.0-SNAPSHOT.jar:]
> 	at java.lang.Thread.run(Thread.java:745)[:1.7.0_71]
> {code}
> *===================*
> *Steps to Reproduce*
> *===================*
> *Step-1)* Edit the "etc/org.apache.karaf.management.cfg" file and add the following entry in it. Notice that the "" does not exist as we hav not created any such keystore. And then start the karaf. 
> {code}
> #####################   ADDING THE FOLLOWING NON_EXISTING SSL KEYSTORE INTENTIONALLY #############
> secured = true
> secureProtocol = SSL
> keyAlias = jbossalias
> keyStore = sample_keystore
> trustStore = sample_keystore
> {code}
> *Step-2)* Try stopping the karaf either usign "shutdown" command or using ctrl+d :
> *Step-3)* Check the karaf.log to find the "java.lang.NullPointerException"



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