Buggy code:
root . registerReadOnlyAttribute ( PROCESS_STATE , new org . jboss . as . controller . operations . common . ProcessStateAttributeHandler ( processState ) , RUNTIME ) ; root . registerReadOnlyAttribute ( PROCESS_TYPE , ProcessTypeHandler . INSTANCE , RUNTIME ) ; RunningModeReadHandler . createAndRegister ( runningModeControl , root ) ; root . registerOperationHandler ( ResolveExpressionHandler . OPERATION_NAME , ResolveExpressionHandler . INSTANCE , ResolveExpressionHandler . INSTANCE , EnumSet . of ( READ_ONLY , OperationEntry . Flag . RUNTIME_ONLY ) ) ; root . registerOperationHandler ( SpecifiedInterfaceResolveHandler . OPERATION_NAME , SpecifiedInterfaceResolveHandler . INSTANCE , SpecifiedInterfaceResolveHandler . INSTANCE , runtimeOnlyFlag ) ; root . registerOperationHandler ( WhoAmIOperation . OPERATION_NAME , WhoAmIOperation . INSTANCE , WhoAmIOperation . INSTANCE , true ) ; root . registerOperationHandler ( RootResourceHack . NAME , RootResourceHack . INSTANCE , RootResourceHack . INSTANCE , false , OperationEntry . EntryType . PRIVATE , runtimeOnlyFlag ) ; if ( serverEnvironment != null ) { if ( ( serverEnvironment . getLaunchType ( ) ) != ( LaunchType . DOMAIN ) ) { ProcessReloadHandler reloadHandler = new ProcessReloadHandler < RunningModeControl > ( Services . JBOSS_AS , runningModeControl , processState , ServerDescriptions . getResourceDescriptionResolver ( "server" ) ) ; root . registerOperationHandler ( ProcessReloadHandler . OPERATION_NAME , reloadHandler , reloadHandler ) ; } if ( ( serverEnvironment . getLaunchType ( ) ) == ( LaunchType . STANDALONE ) ) { ServerShutdownHandler serverShutdownHandler = new ServerShutdownHandler ( processState ) ; root . registerOperationHandler ( ServerShutdownHandler . OPERATION_NAME , serverShutdownHandler , serverShutdownHandler ) ; } root . registerReadOnlyAttribute ( LAUNCH_TYPE , new org . jboss . as . server . operations . LaunchTypeHandler ( serverEnvironment . getLaunchType ( ) ) , RUNTIME ) ; root . registerSubModel ( ServerEnvironmentResourceDescription . of ( serverEnvironment ) ) ; } ManagementResourceRegistration sysProps = root . registerSubModel ( PathElement . pathElement ( SYSTEM_PROPERTY ) , SYSTEM_PROPERTIES_PROVIDER ) ; SystemPropertyAddHandler spah = new SystemPropertyAddHandler ( serverEnvironment , false ) ; sysProps . registerOperationHandler ( SystemPropertyAddHandler . OPERATION_NAME , spah , spah , false ) ; SystemPropertyRemoveHandler sprh = new SystemPropertyRemoveHandler ( serverEnvironment ) ; sysProps . registerOperationHandler ( SystemPropertyRemoveHandler . OPERATION_NAME , sprh , sprh , false ) ; SystemPropertyValueWriteAttributeHandler spvwah = new SystemPropertyValueWriteAttributeHandler ( serverEnvironment ) ; sysProps . registerReadWriteAttribute ( VALUE , null , spvwah , CONFIGURATION ) ; ManagementResourceRegistration vault = root . registerSubModel ( PathElement . pathElement ( CORE_SERVICE , VAULT ) , VAULT_PROVIDER ) ; VaultAddHandler vah = new VaultAddHandler ( vaultReader ) ; vault . registerOperationHandler ( VaultAddHandler . OPERATION_NAME , vah , vah , false ) ; VaultRemoveHandler vrh = new VaultRemoveHandler ( vaultReader ) ; vault . registerOperationHandler ( VaultRemoveHandler . OPERATION_NAME , vrh , vrh , false ) ; VaultWriteAttributeHandler . INSTANCE . registerAttributes ( vault ) ; ManagementResourceRegistration management = root . registerSubModel ( PathElement . pathElement ( CORE_SERVICE , MANAGEMENT ) , MANAGEMENT_WITH_INTERFACES_PROVIDER ) ; management . registerSubModel ( SecurityRealmResourceDefinition . INSTANCE ) ; management . registerSubModel ( LdapConnectionResourceDefinition . INSTANCE ) ; management . registerSubModel ( NativeManagementResourceDefinition . INSTANCE ) ; management . registerSubModel ( NativeRemotingManagementResourceDefinition . INSTANCE ) ; management . registerSubModel ( HttpManagementResourceDefinition . INSTANCE ) ; ManagementResourceRegistration serviceContainer = root . registerSubModel ( PathElement . pathElement ( CORE_SERVICE , SERVICE_CONTAINER ) , SERVICE_CONTAINER_PROVIDER ) ; serviceContainer . registerOperationHandler ( DumpServicesHandler . OPERATION_NAME , DumpServicesHandler . INSTANCE , DumpServicesHandler . INSTANCE , false , runtimeOnlyFlag ) ; PlatformMBeanResourceRegistrar . registerPlatformMBeanResources ( root ) ; root . registerSubModel ( PathResourceDefinition . createSpecified ( pathManager ) ) ; ManagementResourceRegistration interfaces = root . registerSubModel ( PathElement . pathElement ( INTERFACE ) , SPECIFIED_INTERFACE_PROVIDER ) ; interfaces . registerOperationHandler ( SpecifiedInterfaceAddHandler . OPERATION_NAME , SpecifiedInterfaceAddHandler . INSTANCE , SpecifiedInterfaceAddHandler . INSTANCE , false ) ; interfaces . registerOperationHandler ( SpecifiedInterfaceRemoveHandler . OPERATION_NAME , SpecifiedInterfaceRemoveHandler . INSTANCE , SpecifiedInterfaceRemoveHandler . INSTANCE , false ) ; UPDATE_RUNTIME . register ( interfaces ) ; interfaces . registerReadOnlyAttribute ( RESOLVED_ADDRESS , NetworkInterfaceRuntimeHandler . INSTANCE , RUNTIME ) ; interfaces . registerOperationHandler ( SpecifiedInterfaceResolveHandler . OPERATION_NAME , SpecifiedInterfaceResolveHandler . INSTANCE , SpecifiedInterfaceResolveHandler . INSTANCE , runtimeOnlyFlag ) ; ManagementResourceRegistration socketGroup = root . registerSubModel ( new org . jboss . as . controller . resource . SocketBindingGroupResourceDefinition ( BindingGroupAddHandler . INSTANCE , BindingGroupRemoveHandler . INSTANCE , false ) ) ; socketGroup . registerSubModel ( SocketBindingResourceDefinition . INSTANCE ) ; socketGroup . registerSubModel ( RemoteDestinationOutboundSocketBindingResourceDefinition . INSTANCE ) ; socketGroup . registerSubModel ( LocalDestinationOutboundSocketBindingResourceDefinition . INSTANCE ) ; ManagementResourceRegistration deployments = root . registerSubModel ( PathElement . pathElement ( DEPLOYMENT ) , DEPLOYMENT_PROVIDER ) ; DeploymentAddHandler dah = ( isDomain ) ? DeploymentAddHandler . createForDomainServer ( contentRepository , remoteFileRepository , vaultReader ) : DeploymentAddHandler . createForStandalone ( contentRepository , vaultReader ) ; deployments . registerOperationHandler ( DeploymentAddHandler . OPERATION_NAME , dah , dah , false ) ; DeploymentRemoveHandler dremh = new DeploymentRemoveHandler ( contentRepository , vaultReader ) ; deployments . registerOperationHandler ( DeploymentRemoveHandler . OPERATION_NAME , dremh , dremh , false ) ; final DeploymentDeployHandler ddhu = new DeploymentDeployHandler ( vaultReader ) ; deployments . registerOperationHandler ( DeploymentDeployHandler . OPERATION_NAME , ddhu , ddhu , false ) ; final DeploymentUndeployHandler duh = new DeploymentUndeployHandler ( vaultReader ) ; deployments . registerOperationHandler ( DeploymentUndeployHandler . OPERATION_NAME , duh , duh , false ) ; final DeploymentRedeployHandler drdh = new DeploymentRedeployHandler ( vaultReader ) ; deployments . registerOperationHandler ( DeploymentRedeployHandler . OPERATION_NAME , drdh , drdh , false ) ; deployments . registerMetric ( ATTRIBUTE_NAME , DeploymentStatusHandler . INSTANCE ) ; deployments . registerSubModel ( PathElement . pathElement ( SUBDEPLOYMENT ) , SUBDEPLOYMENT_PROVIDER ) ; <START_BUG> root . registerSubModel ( new org . jboss . as . controller . extension . ExtensionResourceDefinition ( extensionRegistry , parallelBoot ) ) ; <END_BUG> extensionRegistry . setSubsystemParentResourceRegistrations ( root , deployments ) ; extensionRegistry . setPathManager ( pathManager ) ; root . registerOperationHandler ( DeployerChainAddHandler . NAME , DeployerChainAddHandler . INSTANCE , DeployerChainAddHandler . INSTANCE , false , PRIVATE ) ; } static ProcessType getProcessType ( ServerEnvironment serverEnvironment ) { } }

Fix:
root . registerSubModel ( new org . jboss . as . controller . extension . ExtensionResourceDefinition ( extensionRegistry , parallelBoot , false ) ) ;