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-3114) Call to ManagementFactory.getPlatformMBeanServer() fail due to RBAC
Date Tue, 15 Jul 2014 13:05:04 GMT

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

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

I gonna take a look later today but actually it's the case currently: you do a dev:dump-create
directly on the Karaf shell (started with bin/karaf, so using the karaf user with admin role)
 and it fails.

> Call to ManagementFactory.getPlatformMBeanServer() fail due to RBAC
> -------------------------------------------------------------------
>
>                 Key: KARAF-3114
>                 URL: https://issues.apache.org/jira/browse/KARAF-3114
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core, karaf-security
>    Affects Versions: 3.0.1
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.4.0, 4.0.0, 3.0.2
>
>
> With the introduction of the RBAC support to secure the JMX layer, a simple ManagementFactory.getPlatformMBeanServer()
fails with something like:
> {code}
> java.lang.NullPointerException
>         at org.apache.karaf.management.KarafMBeanServerGuard.canBypassRBAC(KarafMBeanServerGuard.java:236)
>         at org.apache.karaf.management.KarafMBeanServerGuard.handleInvoke(KarafMBeanServerGuard.java:259)
>         at org.apache.karaf.management.KarafMBeanServerGuard.invoke(KarafMBeanServerGuard.java:78)
>         at org.apache.karaf.management.boot.KarafMBeanServerBuilder$MBeanInvocationHandler.invoke(KarafMBeanServerBuilder.java:63)[karaf-jmx-boot.jar:]
>         at com.sun.proxy.$Proxy0.invoke(Unknown Source)[:]
>         at com.sun.jmx.mbeanserver.MXBeanProxy$InvokeHandler.invoke(MXBeanProxy.java:150)[:1.7.0_60]
>         at com.sun.jmx.mbeanserver.MXBeanProxy.invoke(MXBeanProxy.java:167)[:1.7.0_60]
>         at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:252)[:1.7.0_60]
>         at com.sun.proxy.$Proxy19.dumpHeap(Unknown Source)[:]
>         at org.apache.karaf.diagnostic.core.internal.HeapDumpProvider.createDump(HeapDumpProvider.java:45)
> {code}
> A workaround is to use a JMXServiceURL and JMXConnector instead, but it could be disturbing
for the users.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message