Buggy code:
if ( ( ! ( args . hasProperties ( ) ) ) || l ) { throw new OperationFormatException ( ( ( "Command<seq2seq4repair_space>is<seq2seq4repair_space>missing<seq2seq4repair_space>arguments<seq2seq4repair_space>for<seq2seq4repair_space>non-interactive<seq2seq4repair_space>mode:<seq2seq4repair_space>'" + ( args . getOriginalLine ( ) ) ) + "'." ) ) ; } final boolean unmanaged = this . unmanaged . isPresent ( args ) ; final String path = this . path . getValue ( args ) ; final File f ; if ( path != null ) { f = new File ( path ) ; if ( ! ( f . exists ( ) ) ) { throw new OperationFormatException ( ( ( "Path<seq2seq4repair_space>" + ( f . getAbsolutePath ( ) ) ) + "<seq2seq4repair_space>doesn't<seq2seq4repair_space>exist." ) ) ; } if ( ( ! unmanaged ) && ( f . isDirectory ( ) ) ) { throw new OperationFormatException ( ( ( f . getAbsolutePath ( ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>directory." ) ) ; } } else { f = null ; } String name = this . name . getValue ( args ) ; if ( name == null ) { if ( f == null ) { throw new OperationFormatException ( "Either<seq2seq4repair_space>path<seq2seq4repair_space>or<seq2seq4repair_space>--name<seq2seq4repair_space>is<seq2seq4repair_space>required." ) ; } name = f . getName ( ) ; } final String runtimeName = rtName . getValue ( args ) ; final boolean force = this . force . isPresent ( args ) ; final boolean disabled = this . disabled . isPresent ( args ) ; final String serverGroups = this . serverGroups . getValue ( args ) ; final boolean allServerGroups = this . allServerGroups . isPresent ( args ) ; final boolean archive = isCliArchive ( f ) ; if ( force ) { if ( f == null ) { throw new OperationFormatException ( ( ( this . force . getFullName ( ) ) + "<seq2seq4repair_space>requires<seq2seq4repair_space>a<seq2seq4repair_space>filesystem<seq2seq4repair_space>path<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>added<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>repository." ) ) ; } if ( ( disabled || ( serverGroups != null ) ) || allServerGroups ) { throw new OperationFormatException ( ( ( ( ( ( ( ( ( this . force . getFullName ( ) ) + "<seq2seq4repair_space>only<seq2seq4repair_space>replaces<seq2seq4repair_space>the<seq2seq4repair_space>content<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>repository<seq2seq4repair_space>and<seq2seq4repair_space>can't<seq2seq4repair_space>be<seq2seq4repair_space>used<seq2seq4repair_space>in<seq2seq4repair_space>combination<seq2seq4repair_space>with<seq2seq4repair_space>any<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( this . disabled . getFullName ( ) ) ) + ",<seq2seq4repair_space>" ) + ( this . serverGroups . getFullName ( ) ) ) + "<seq2seq4repair_space>or<seq2seq4repair_space>" ) + ( this . allServerGroups . getFullName ( ) ) ) + '.' ) ) ; } if ( archive ) { throw new OperationFormatException ( ( ( this . force . getFullName ( ) ) + "<seq2seq4repair_space>can't<seq2seq4repair_space>be<seq2seq4repair_space>used<seq2seq4repair_space>in<seq2seq4repair_space>combination<seq2seq4repair_space>with<seq2seq4repair_space>a<seq2seq4repair_space>CLI<seq2seq4repair_space>archive." ) ) ; } if ( Util . isDeploymentInRepository ( name , client ) ) { return buildDeploymentReplace ( f , name , runtimeName ) ; } else { return buildDeploymentAdd ( f , name , runtimeName , unmanaged ) ; } } if ( disabled ) { if ( f == null ) { throw new OperationFormatException ( ( ( this . disabled . getFullName ( ) ) + "<seq2seq4repair_space>requires<seq2seq4repair_space>a<seq2seq4repair_space>filesystem<seq2seq4repair_space>path<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>added<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>repository." ) ) ; } if ( ( serverGroups != null ) || allServerGroups ) { throw new OperationFormatException ( ( ( ( ( ( ( this . serverGroups . getFullName ( ) ) + "<seq2seq4repair_space>and<seq2seq4repair_space>" ) + ( this . allServerGroups . getFullName ( ) ) ) + "<seq2seq4repair_space>can't<seq2seq4repair_space>be<seq2seq4repair_space>used<seq2seq4repair_space>in<seq2seq4repair_space>combination<seq2seq4repair_space>with<seq2seq4repair_space>" ) + ( this . disabled . getFullName ( ) ) ) + '.' ) ) ; } if ( archive ) { throw new OperationFormatException ( ( ( this . disabled . getFullName ( ) ) + "<seq2seq4repair_space>can't<seq2seq4repair_space>be<seq2seq4repair_space>used<seq2seq4repair_space>in<seq2seq4repair_space>combination<seq2seq4repair_space>with<seq2seq4repair_space>a<seq2seq4repair_space>CLI<seq2seq4repair_space>archive." ) ) ; } if ( ( ! ( ctx . isBatchMode ( ) ) ) && ( Util . isDeploymentInRepository ( name , client ) ) ) { throw new OperationFormatException ( ( ( ( ( "'" + name ) + "'<seq2seq4repair_space>already<seq2seq4repair_space>exists<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>repository<seq2seq4repair_space>(use<seq2seq4repair_space>" ) + ( this . force . getFullName ( ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>replace<seq2seq4repair_space>the<seq2seq4repair_space>existing<seq2seq4repair_space>content<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>repository)." ) ) ; } return buildDeploymentAdd ( f , name , runtimeName , unmanaged ) ; } if ( archive ) { if ( ( serverGroups != null ) || allServerGroups ) { throw new OperationFormatException ( ( ( ( ( this . serverGroups . getFullName ( ) ) + "<seq2seq4repair_space>and<seq2seq4repair_space>" ) + ( this . allServerGroups . getFullName ( ) ) ) + "<seq2seq4repair_space>can't<seq2seq4repair_space>be<seq2seq4repair_space>used<seq2seq4repair_space>in<seq2seq4repair_space>combination<seq2seq4repair_space>with<seq2seq4repair_space>a<seq2seq4repair_space>CLI<seq2seq4repair_space>archive." ) ) ; } TempFileProvider tempFileProvider ; MountHandle root ; try { <START_BUG> tempFileProvider = TempFileProvider . create ( "cli" , Executors . newSingleThreadScheduledExecutor ( ) ) ; <END_BUG> root = extractArchive ( f , tempFileProvider ) ; } catch ( IOException e ) { throw new OperationFormatException ( ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>extract<seq2seq4repair_space>archive<seq2seq4repair_space>'" + ( f . getAbsolutePath ( ) ) ) + "'<seq2seq4repair_space>to<seq2seq4repair_space>temporary<seq2seq4repair_space>location" ) ) ; } final File currentDir = ctx . getCurrentDir ( ) ; ctx . setCurrentDir ( root . getMountSource ( ) ) ; String holdbackBatch = activateNewBatch ( ctx ) ; try { String script = this . script . getValue ( args ) ; if ( script == null ) { script = "deploy.scr" ; } File scriptFile = new File ( ctx . getCurrentDir ( ) , script ) ; if ( ! ( scriptFile . exists ( ) ) ) { throw new CommandFormatException ( ( ( "ERROR:<seq2seq4repair_space>script<seq2seq4repair_space>'" + script ) + "'<seq2seq4repair_space>not<seq2seq4repair_space>found." ) ) ; } BufferedReader reader = null ; try { reader = new BufferedReader ( new FileReader ( scriptFile ) ) ; String line = reader . readLine ( ) ; while ( ( ! ( ctx . isTerminated ( ) ) ) && ( line != null ) ) { ctx . handle ( line ) ; line = reader . readLine ( ) ; } } catch ( FileNotFoundException e ) { throw new CommandFormatException ( ( ( "ERROR:<seq2seq4repair_space>script<seq2seq4repair_space>'" + script ) + "'<seq2seq4repair_space>not<seq2seq4repair_space>found." ) ) ; } catch ( IOException e ) { throw new CommandFormatException ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>the<seq2seq4repair_space>next<seq2seq4repair_space>command<seq2seq4repair_space>from<seq2seq4repair_space>" + ( scriptFile . getName ( ) ) ) + ":<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ) , e ) ; }

Fix:
tempFileProvider = TempFileProvider . create ( "cli" , Executors . newSingleThreadScheduledExecutor ( ) , true ) ;