Buggy code:
public final class ManagedDeployableContainer extends CommonDeployableContainer < ManagedContainerConfiguration > { private final Logger log = Logger . getLogger ( ManagedDeployableContainer . class . getName ( ) ) ; private final Provider saslProvider = new JBossSaslProvider ( ) ; private Thread shutdownThread ; private Process process ; @ Override public Class < ManagedContainerConfiguration > getConfigurationClass ( ) { } @ Override protected void startInternal ( ) throws LifecycleException { ManagedContainerConfiguration config = getContainerConfiguration ( ) ; if ( ! ( config . isAllowConnectingToRunningServer ( ) ) ) { verifyNoRunningServer ( ) ; } try { AccessController . doPrivileged ( new PrivilegedAction < Object > ( ) { public Object run ( ) { if ( ( Security . getProperty ( saslProvider . getName ( ) ) ) == null ) { Security . insertProviderAt ( saslProvider , 1 ) ; } return null ; } } ) ; final String jbossHomeDir = config . getJbossHome ( ) ; final String modulePath = config . getModulePath ( ) ; final String additionalJavaOpts = config . getJavaVmArguments ( ) ; File modulesJar = new File ( ( jbossHomeDir + "//jboss-modules.jar" ) ) ; if ( ( modulesJar . exists ( ) ) == false ) throw new IllegalStateException ( ( "Cannot<seq2seq4repair_space>find:<seq2seq4repair_space>" + modulesJar ) ) ; List < String > cmd = new ArrayList < String > ( ) ; cmd . add ( "java" ) ; if ( additionalJavaOpts != null ) { for ( String opt : additionalJavaOpts . split ( "\\s+" ) ) { cmd . add ( opt ) ; } } cmd . add ( ( "-Djboss.home.dir=" + jbossHomeDir ) ) ; cmd . add ( ( ( "-Dorg.jboss.boot.log.file=" + jbossHomeDir ) + "//standalone//log//boot.log" ) ) ; cmd . add ( ( ( "-Dlogging.configuration=file:" + jbossHomeDir ) + "//standalone//configuration//logging.properties" ) ) ; cmd . add ( ( "-Djboss.modules.dir=" + modulePath ) ) ; cmd . add ( "-jar" ) ; cmd . add ( modulesJar . getAbsolutePath ( ) ) ; cmd . add ( "-mp" ) ; cmd . add ( modulePath ) ; cmd . add ( "-logmodule" ) ; cmd . add ( "org.jboss.logmanager" ) ; cmd . add ( "-jaxpmodule" ) ; cmd . add ( "javax.xml.jaxp-provider" ) ; cmd . add ( "org.jboss.as.standalone" ) ; cmd . add ( "-server-config" ) ; cmd . add ( config . getServerConfig ( ) ) ; log . info ( ( "Starting<seq2seq4repair_space>container<seq2seq4repair_space>with:<seq2seq4repair_space>" + ( cmd . toString ( ) ) ) ) ; ProcessBuilder processBuilder = new ProcessBuilder ( cmd ) ; processBuilder . redirectErrorStream ( true ) ; process = processBuilder . start ( ) ; new Thread ( new ManagedDeployableContainer . ConsoleConsumer ( ) ) . start ( ) ; final Process proc = process ; shutdownThread = new Thread ( new Runnable ( ) { @ Override public void run ( ) { if ( proc != null ) { proc . destroy ( ) ; try { proc . waitFor ( ) ; } catch ( InterruptedException e ) { throw new RuntimeException ( e ) ; } } } } ) ; Runtime . getRuntime ( ) . addShutdownHook ( shutdownThread ) ; long startupTimeout = getContainerConfiguration ( ) . getStartupTimeoutInSeconds ( ) ; long timeout = startupTimeout * 1000 ; boolean serverAvailable = false ; while ( ( timeout > 0 ) && ( serverAvailable == false ) ) { serverAvailable = getManagementClient ( ) . isServerInRunningState ( ) ; if ( ! serverAvailable ) { Thread . sleep ( 100 ) ; timeout -= 100 ; } } if ( ! serverAvailable ) { destroyProcess ( ) ; <START_BUG> throw new TimeoutException ( String . format ( "Managed<seq2seq4repair_space>server<seq2seq4repair_space>was<seq2seq4repair_space>not<seq2seq4repair_space>started<seq2seq4repair_space>within<seq2seq4repair_space>[%d]<seq2seq4repair_space>ms" , getContainerConfiguration ( ) . getStartupTimeout ( ) ) ) ; <END_BUG> } } catch ( Exception e ) { throw new LifecycleException ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>start<seq2seq4repair_space>container" , e ) ; } } @ Override protected void stopInternal ( ) throws LifecycleException { } private void verifyNoRunningServer ( ) throws LifecycleException { } private int destroyProcess ( ) { } private class ConsoleConsumer implements Runnable { @ Override public void run ( ) { } } }

Fix:
throw new TimeoutException ( String . format ( "Managed<seq2seq4repair_space>server<seq2seq4repair_space>was<seq2seq4repair_space>not<seq2seq4repair_space>started<seq2seq4repair_space>within<seq2seq4repair_space>[%d]<seq2seq4repair_space>s" , getContainerConfiguration ( ) . getStartupTimeoutInSeconds ( ) ) ) ;