ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Kuznetsov (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (IGNITE-9792) Setting system property IGNITE_MBEANS_DISABLED to true lead to NPE.
Date Fri, 05 Oct 2018 10:18:00 GMT

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

Alexey Kuznetsov closed IGNITE-9792.
------------------------------------

> 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
>            Assignee: 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)

Mime
View raw message