Bug 837362

Summary: NPE on console
Product: [JBoss] JBoss Data Grid 6 Reporter: Heiko W. Rupp <hrupp>
Component: unspecifiedAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED WORKSFORME QA Contact: Michal Linhard <mlinhard>
Severity: low Docs Contact:
Priority: low    
Version: 6.0.0CC: ahovsepy, jdg-bugs, mlinhard, myarboro, nobody
Target Milestone: CR1   
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 13:18:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
as7 management client performing the erroneous operation none

Description Heiko W. Rupp 2012-07-03 15:44:34 UTC
JBoss ON plugin tries to find resources by "probing" for them - that is it basically sends a :read-resource to /a=b/b=c/.. in the domain management model.

When doing this, the following NPE shows up:

17:27:19,733 ERROR [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 25) JBAS014612: Operation ("read-attribute") fehlgeschlagen - Adresse: ([
    {"subsystem" => "infinispan"},
    {"cache-container" => "local"},
    {"local-cache" => "default"}
]): java.lang.NullPointerException
	at org.jboss.as.clustering.infinispan.subsystem.CacheMetricsHandler.executeRuntimeStep(CacheMetricsHandler.java:156)
	at org.jboss.as.controller.AbstractRuntimeOnlyHandler$1.execute(AbstractRuntimeOnlyHandler.java:90) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:397) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
	at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:284) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
	at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:211) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
	at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:473) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:397) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
	at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:284) [jboss-as-controller-7.1.

Comment 1 Michal Linhard 2012-08-09 12:50:15 UTC
Created attachment 603252 [details]
as7 management client performing the erroneous operation

Comment 2 Michal Linhard 2012-08-09 12:52:09 UTC
I couldn't reproduce for neither JDG 6.0.0.GA nor JDG 6.0.1.ER1 using the attached code, can you please specify exact operation parameters that cause the NPE ?

Comment 3 mark yarborough 2012-08-15 13:31:40 UTC
IS this a valid bug? Moving from target milestone ER2 to unspecified. Retriage with input from mlinhard and ttarrant on/before 22-Aug.

Comment 4 mark yarborough 2012-08-16 13:02:43 UTC
Ping Heiko for more information on the testing.

Comment 5 Heiko W. Rupp 2012-08-16 14:55:47 UTC
Sorry, I can't recall what I was doing at that time. 
I think looking at the source at the specific address should show if a NPE is possible or not. If not, then this has been fixed and you can just close the issue.

Comment 6 Tristan Tarrant 2012-08-29 13:15:58 UTC
*** Bug 851251 has been marked as a duplicate of this bug. ***