Buggy code:
final class BootstrapImpl implements Bootstrap { public AsyncFuture < ServerController > start ( final Configuration configuration , final List < ServiceActivator > extraServices ) { if ( configuration == null ) { throw new IllegalArgumentException ( "configuration<seq2seq4repair_space>is<seq2seq4repair_space>null" ) ; } final ModuleLoader moduleLoader = configuration . getModuleLoader ( ) ; final ServerEnvironment serverEnvironment = configuration . getServerEnvironment ( ) ; final String name = serverEnvironment . getServerName ( ) ; final ServerConfigurationPersister configurationPersister = configuration . getConfigurationPersister ( ) ; if ( moduleLoader == null ) { throw new IllegalArgumentException ( "moduleLoader<seq2seq4repair_space>is<seq2seq4repair_space>null" ) ; } if ( name == null ) { throw new IllegalArgumentException ( "name<seq2seq4repair_space>is<seq2seq4repair_space>null" ) ; } if ( serverEnvironment == null ) { throw new IllegalArgumentException ( "serverEnvironment<seq2seq4repair_space>is<seq2seq4repair_space>null" ) ; } if ( configurationPersister == null ) { throw new IllegalArgumentException ( "configurationPersister<seq2seq4repair_space>is<seq2seq4repair_space>null" ) ; } <START_BUG> final ServiceContainer container = Factory . create ( ) ; <END_BUG> final int threads = Runtime . getRuntime ( ) . availableProcessors ( ) ; container . setExecutor ( new ThreadPoolExecutor ( threads , threads , Long . MAX_VALUE , TimeUnit . NANOSECONDS , new LinkedBlockingQueue < Runnable > ( ) ) ) ; final BootstrapImpl . StartTask future = new BootstrapImpl . StartTask ( container ) ; final ServiceTarget tracker = container . subTarget ( ) ; final Service < ServerController > serverControllerService = new ServerControllerService ( configuration , extraServices ) ; container . addListener ( new BootstrapImpl . BootstrapListener ( future , serverControllerService , container , configuration . getStartTime ( ) ) ) ; tracker . addService ( JBOSS_AS_NAME , serverControllerService ) . install ( ) ; return future ; } private static class StartTask extends AsyncFutureTask < ServerController > { private final ServiceContainer container ; public StartTask ( final ServiceContainer container ) { } public void asyncCancel ( final boolean interruptionDesired ) { } void done ( ServerController controller ) { } void failed ( final int failed ) { } } private static class BootstrapListener extends AbstractServiceListener < Object > { private final AtomicInteger started = new AtomicInteger ( ) ; private final AtomicInteger failed = new AtomicInteger ( ) ; private final AtomicInteger outstanding = new AtomicInteger ( ) ; private final AtomicBoolean done = new AtomicBoolean ( ) ; private final AtomicInteger missingDeps = new AtomicInteger ( ) ; private final EnumMap < ServiceController . Mode , AtomicInteger > map ; private final BootstrapImpl . StartTask future ; private final Service < ServerController > serverControllerService ; private final ServiceContainer serviceContainer ; private final long startTime ; private final Set < ServiceName > missingDepsSet = Collections . synchronizedSet ( new TreeSet < ServiceName > ( ) ) ; private volatile boolean cancelLikely ; public BootstrapListener ( final BootstrapImpl . StartTask future , final Service < ServerController > serverControllerService , final ServiceContainer serviceContainer , final long startTime ) { } public void listenerAdded ( final ServiceController < ? > controller ) { } public void serviceStarted ( final ServiceController < ? > controller ) { } public void serviceFailed ( final ServiceController < ? > controller , final StartException reason ) { } public void dependencyFailed ( final ServiceController < ? extends Object > controller ) { } public void dependencyUninstalled ( final ServiceController < ? extends Object > controller ) { } public void dependencyInstalled ( final ServiceController < ? extends Object > controller ) { } public void serviceRemoved ( final ServiceController < ? > controller ) { } private void check ( ) { } private void tick ( final ServiceContainer container ) { } private void finish ( final ServiceContainer container , final int outstanding ) { } } }

Fix:
final ServiceContainer container = Factory . create ( "jbossas" ) ;