You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexey Kuznetsov (JIRA)" <ji...@apache.org> on 2018/10/04 10:42:00 UTC

[jira] [Updated] (IGNITE-9792) Setting system property IGNITE_MBEANS_DISABLED to true lead to NPE.

     [ https://issues.apache.org/jira/browse/IGNITE-9792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kuznetsov updated IGNITE-9792:
-------------------------------------
    Fix Version/s: 2.7

> Setting system property IGNITE_MBEANS_DISABLED to true lead to NPE.
> -------------------------------------------------------------------
>
>                 Key: IGNITE-9792
>                 URL: https://issues.apache.org/jira/browse/IGNITE-9792
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Alexey Kuznetsov
>            Priority: Critical
>             Fix For: 2.7
>
>
> Javadocs for IGNITE_MBEANS_DISABLED: "This may be helpful if MBeans are not allowed e.g. for security reasons."
> So I set in code:
> {code}
> System.setProperty(IgniteSystemProperties.IGNITE_MBEANS_DISABLED, "true")
> {code}
>  
> And on node start node failed with NPE:
> {code}
> Caused by: class org.apache.ignite.IgniteCheckedException: Unexpected exception when starting grid.
>  at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2079)
>  at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1728)
>  at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1156)
>  at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:676)
>  at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:601)
>  at org.apache.ignite.Ignition.start(Ignition.java:323)
>  ... 3 more
> Caused by: java.lang.NullPointerException: Ouch! Argument cannot be null: cfg.getMBeanServer()
>  at org.apache.ignite.internal.util.GridArgumentCheck.notNull(GridArgumentCheck.java:48)
>  at org.apache.ignite.internal.IgniteKernal.validateCommon(IgniteKernal.java:1355)
>  at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:833)
>  at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2033)
>  ... 8 more
> {code}
>  
> The fix is trivial: in org.apache.ignite.internal.IgniteKernal#validateCommon
> {code}
> if (!U.IGNITE_MBEANS_DISABLED) // <<< The fix
>     A.notNull(cfg.getMBeanServer(), "cfg.getMBeanServer()");
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)