Buggy code:
final class ServerControllerService implements Service < ServerController > { public static final ServiceName JBOSS_AS_NAME = JBOSS . append ( "as" ) ; private static final Logger log = Logger . getLogger ( "org.jboss.as.server" ) ; private final Configuration configuration ; private ServerController serverController ; private Set < ServiceName > bootServices ; public ServerControllerService ( final Bootstrap . Configuration configuration ) { } public synchronized void start ( final StartContext context ) throws StartException { final ServiceContainer container = context . getController ( ) . getServiceContainer ( ) ; final TrackingServiceTarget serviceTarget = new TrackingServiceTarget ( container ) ; final DelegatingServiceRegistry serviceRegistry = new DelegatingServiceRegistry ( container ) ; final Bootstrap . Configuration configuration = this . configuration ; final ServerEnvironment serverEnvironment = configuration . getServerEnvironment ( ) ; final ServerConfigurationPersister persister = configuration . getConfigurationPersister ( ) ; final List < AbstractServerModelUpdate < ? > > updates ; try { updates = persister . load ( serverController ) ; } catch ( Exception e ) { throw new StartException ( e ) ; } final EnumMap < Phase , SortedSet < ServerControllerService . RegisteredProcessor > > deployers = new EnumMap < Phase , SortedSet < ServerControllerService . RegisteredProcessor > > ( Phase . class ) ; for ( Phase phase : Phase . values ( ) ) { deployers . put ( phase , new ConcurrentSkipListSet < ServerControllerService . RegisteredProcessor > ( ) ) ; } final BootUpdateContext bootUpdateContext = new BootUpdateContext ( ) { public ServiceTarget getServiceTarget ( ) { return serviceTarget ; } public ServiceContainer getServiceContainer ( ) { throw new UnsupportedOperationException ( ) ; } public ServiceRegistry getServiceRegistry ( ) { return serviceRegistry ; } public void addDeploymentProcessor ( final Phase phase , final int priority , final DeploymentUnitProcessor processor ) { if ( phase == null ) { throw new IllegalArgumentException ( "phase<seq2seq4repair_space>is<seq2seq4repair_space>null" ) ; } if ( processor == null ) { throw new IllegalArgumentException ( "processor<seq2seq4repair_space>is<seq2seq4repair_space>null" ) ; } if ( priority < 0 ) { throw new IllegalArgumentException ( "priority<seq2seq4repair_space>is<seq2seq4repair_space>invalid<seq2seq4repair_space>(must<seq2seq4repair_space>be<seq2seq4repair_space>>=<seq2seq4repair_space>0)" ) ; } deployers . get ( phase ) . add ( new ServerControllerService . RegisteredProcessor ( priority , processor ) ) ; } public ServerEnvironment getServerEnvironment ( ) { return serverEnvironment ; } } ; ServerControllerService . log . info ( "Activating<seq2seq4repair_space>core<seq2seq4repair_space>services" ) ; ShutdownHandlerImpl . addService ( serviceTarget ) ; ServerEnvironmentServices . addServices ( serverEnvironment , serviceTarget ) ; serviceTarget . addService ( SOCKET_BINDING_MANAGER , new org . jboss . as . server . services . net . SocketBindingManagerService ( configuration . getPortOffset ( ) ) ) . setInitialMode ( ON_DEMAND ) . install ( ) ; for ( AbstractServerModelUpdate < ? > update : updates ) { update . applyUpdateBootAction ( bootUpdateContext ) ; } final EnumMap < Phase , List < DeploymentUnitProcessor > > finalDeployers = new EnumMap < Phase , List < DeploymentUnitProcessor > > ( Phase . class ) ; for ( Map . Entry < Phase , SortedSet < ServerControllerService . RegisteredProcessor > > entry : deployers . entrySet ( ) ) { final SortedSet < ServerControllerService . RegisteredProcessor > processorSet = entry . getValue ( ) ; final List < DeploymentUnitProcessor > list = new ArrayList < DeploymentUnitProcessor > ( processorSet . size ( ) ) ; for ( ServerControllerService . RegisteredProcessor processor : processorSet ) { list . add ( processor . processor ) ; } finalDeployers . put ( entry . getKey ( ) , list ) ; } <START_BUG> final ServerControllerImpl serverController = new ServerControllerImpl ( new org . jboss . as . model . ServerModel ( serverEnvironment . getServerName ( ) , configuration . getPortOffset ( ) ) , container , serverEnvironment , finalDeployers ) ; <END_BUG> this . serverController = serverController ; bootServices = serviceTarget . getSet ( ) ; } public synchronized void stop ( final StopContext context ) { } public synchronized ServerController getValue ( ) throws IllegalArgumentException , IllegalStateException { } private static final class RegisteredProcessor implements Comparable < ServerControllerService . RegisteredProcessor > { private final int priority ; private final DeploymentUnitProcessor processor ; private RegisteredProcessor ( final int priority , final DeploymentUnitProcessor processor ) { } public int compareTo ( final ServerControllerService . RegisteredProcessor o ) { } } }

Fix:
final ServerControllerImpl serverController = new ServerControllerImpl ( new org . jboss . as . model . ServerModel ( serverEnvironment . getServerName ( ) , configuration . getPortOffset ( ) ) , container , serverEnvironment ) ;