karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-3659) shutdown of karaf throws NullPointerException if jmx ssl keystore is not configured properly
Date Wed, 15 Apr 2015 13:25:59 GMT

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

Jean-Baptiste Onofré commented on KARAF-3659:
---------------------------------------------

Fixed on karaf-3.0.x: https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=32bd4ad84af47a5f625067a950741f734ff3615e

> 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
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.4.2, 3.0.4, 4.0.0.M3
>
>
> 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)

Mime
View raw message