Bug 1024109 - [CCC] (6.3) NPE in DelegatingServerInventory
Summary: [CCC] (6.3) NPE in DelegatingServerInventory
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Domain Management
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: DR0
: EAP 6.3.0
Assignee: Brian Stansberry
QA Contact: Petr Kremensky
Lucas Costi
URL:
Whiteboard:
Depends On:
Blocks: 1041330
TreeView+ depends on / blocked
 
Reported: 2013-10-28 20:55 UTC by Brian Stansberry
Modified: 2014-06-28 15:25 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
: 1041330 (view as bug list)
Environment:
Last Closed: 2014-06-28 15:25:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-2370 0 Major Resolved NPE in DelegatingServerInventory 2015-07-10 18:04:25 UTC

Description Brian Stansberry 2013-10-28 20:55:43 UTC
There's a gap in the HostController boot sequence between when the external management interface services allow connections and when the ServerInventory service used internally by the HC for managing servers is available. If certain management requests that need to find info about servers come in during this window, an NPE occurs:

[Host Controller] 03:26:38,028 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 4) JBAS014612: Operation ("read-attribute") failed - address: ([
[Host Controller] ("host" => "failover-h1"),
[Host Controller] ("server-config" => "failover-one")
[Host Controller] ]): java.lang.NullPointerException
[Host Controller] at org.jboss.as.host.controller.DomainModelControllerService$DelegatingServerInventory.determineServerStatus(DomainModelControllerService.java:788)
[Host Controller] at org.jboss.as.host.controller.operations.ServerStatusHandler.execute(ServerStatusHandler.java:66)
[Host Controller] at org.jboss.as.controller.operations.global.ReadAttributeHandler.doExecuteInternal(ReadAttributeHandler.java:177) [wildfly-controller-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]
[Host Controller] at org.jboss.as.controller.operations.global.ReadAttributeHandler.doExecute(ReadAttributeHandler.java:97) [wildfly-controller-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]
[Host Controller] at org.jboss.as.controller.operations.global.GlobalOperationHandlers$AbstractMultiTargetHandler.execute(GlobalOperationHandlers.java:151) [wildfly-controller-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]

This shows up as fairly frequent failures in org.jboss.as.test.integration.domain.DomainControllerMigrationTestCase.testDCFailover. Any kind of automated tooling that started/reloaded/restarted an HC and then started polling for completion of server launch could hit the same issue.

Comment 8 Petr Kremensky 2014-03-04 12:00:06 UTC
Verified on EAP 6.3.0.DR1


Note You need to log in before you can comment on or make changes to this bug.