You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Darrel Schneider (JIRA)" <ji...@apache.org> on 2015/07/23 23:42:07 UTC
[jira] [Commented] (GEODE-152)
MemberMBeanAttributesDUnitTest.testOSAttributes fails intermittently with
NullPointerException
[ https://issues.apache.org/jira/browse/GEODE-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14639559#comment-14639559 ]
Darrel Schneider commented on GEODE-152:
----------------------------------------
I scanned the geode call for other callers of getThreadInfo and found some but they all correctly handled null elements.
So this bug is limited to fetchJvmThreads.
> MemberMBeanAttributesDUnitTest.testOSAttributes fails intermittently with NullPointerException
> ----------------------------------------------------------------------------------------------
>
> Key: GEODE-152
> URL: https://issues.apache.org/jira/browse/GEODE-152
> Project: Geode
> Issue Type: Bug
> Reporter: Darrel Schneider
> Assignee: Darrel Schneider
> Priority: Minor
>
> See: https://builds.apache.org/job/Geode-nightly/164/testReport/com.gemstone.gemfire.management/MemberMBeanAttributesDUnitTest/testOSAttributes/
> Caused by: java.lang.NullPointerException
> at com.gemstone.gemfire.management.internal.beans.MemberMBeanBridge.fetchJvmThreads(MemberMBeanBridge.java:1331)
> at com.gemstone.gemfire.management.internal.beans.MemberMBean.fetchJvmThreads(MemberMBean.java:153)
> at com.gemstone.gemfire.management.MemberMBeanAttributesDUnitTest$6.run(MemberMBeanAttributesDUnitTest.java:236)
> When fetchJvmThreads calls getThreadInfo it needs to deal with slots in the returned array being null. The javadocs in getThreadInfo says:
> * If a thread of the given ID is not alive or does not exist,
> * <tt>null</tt> will be set in the corresponding element
> * in the returned array.
> So this is a bug in: com.gemstone.gemfire.management.internal.beans.MemberMBeanBridge.fetchJvmThreads()
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)