geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darrel Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GEODE-152) MemberMBeanAttributesDUnitTest.testOSAttributes fails intermittently with NullPointerException
Date Thu, 23 Jul 2015 21:28:04 GMT
Darrel Schneider created GEODE-152:
--------------------------------------

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

Mime
View raw message