Buggy code:
private static final String DOWNCONFIG = "downconfig" ; private static final String ZK_CLI_NAME = "ZkCLI" ; private static final String HELP = "help" ; private static final String LINKCONFIG = "linkconfig" ; private static final String CONFDIR = "confdir" ; private static final String CONFNAME = "confname" ; private static final String REVERSE = "reverse" ; private static final String ZKHOST = "zkhost" ; private static final String RUNZK = "runzk" ; private static final String SOLRHOME = "solrhome" ; private static final String BOOTSTRAP = "bootstrap" ; private static final String SOLR_XML = "solr.xml" ; private static final String UPCONFIG = "upconfig" ; private static final String COLLECTION = "collection" ; private static final String CLEAR = "clear" ; private static final String LIST = "list" ; private static final String CMD = "cmd" ; public static void main ( String [ ] args ) throws IOException , InterruptedException , TimeoutException , ParserConfigurationException , KeeperException , SAXException { CommandLineParser parser = new PosixParser ( ) ; Options options = new Options ( ) ; options . addOption ( OptionBuilder . hasArg ( true ) . withDescription ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "cmd<seq2seq4repair_space>to<seq2seq4repair_space>run:<seq2seq4repair_space>" + ( ZkCLI . BOOTSTRAP ) ) + ",<seq2seq4repair_space>" ) + ( ZkCLI . UPCONFIG ) ) + ",<seq2seq4repair_space>" ) + ( ZkCLI . DOWNCONFIG ) ) + ",<seq2seq4repair_space>" ) + ( ZkCLI . LINKCONFIG ) ) + ",<seq2seq4repair_space>" ) + ( ZkCLI . MAKEPATH ) ) + ",<seq2seq4repair_space>" ) + ( ZkCLI . PUT ) ) + ",<seq2seq4repair_space>" ) + ( ZkCLI . LIST ) ) + ",<seq2seq4repair_space>" ) + ( ZkCLI . CLEAR ) ) ) . create ( ZkCLI . CMD ) ) ; Option zkHostOption = new Option ( "z" , ZkCLI . ZKHOST , true , "ZooKeeper<seq2seq4repair_space>host<seq2seq4repair_space>address" ) ; options . addOption ( zkHostOption ) ; Option solrHomeOption = new Option ( "s" , ZkCLI . SOLRHOME , true , ( ( ( ( "for<seq2seq4repair_space>" + ( ZkCLI . BOOTSTRAP ) ) + ",<seq2seq4repair_space>" ) + ( ZkCLI . RUNZK ) ) + ":<seq2seq4repair_space>solrhome<seq2seq4repair_space>location" ) ) ; options . addOption ( zkHostOption ) ; options . addOption ( solrHomeOption ) ; options . addOption ( "d" , ZkCLI . CONFDIR , true , ( ( "for<seq2seq4repair_space>" + ( ZkCLI . UPCONFIG ) ) + ":<seq2seq4repair_space>a<seq2seq4repair_space>directory<seq2seq4repair_space>of<seq2seq4repair_space>configuration<seq2seq4repair_space>files" ) ) ; options . addOption ( "n" , ZkCLI . CONFNAME , true , ( ( ( ( "for<seq2seq4repair_space>" + ( ZkCLI . UPCONFIG ) ) + ",<seq2seq4repair_space>" ) + ( ZkCLI . LINKCONFIG ) ) + ":<seq2seq4repair_space>name<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>config<seq2seq4repair_space>set" ) ) ; options . addOption ( "c" , ZkCLI . COLLECTION , true , ( ( "for<seq2seq4repair_space>" + ( ZkCLI . LINKCONFIG ) ) + ":<seq2seq4repair_space>name<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>collection" ) ) ; options . addOption ( "r" , ZkCLI . RUNZK , true , "run<seq2seq4repair_space>zk<seq2seq4repair_space>internally<seq2seq4repair_space>by<seq2seq4repair_space>passing<seq2seq4repair_space>the<seq2seq4repair_space>solr<seq2seq4repair_space>run<seq2seq4repair_space>port<seq2seq4repair_space>-<seq2seq4repair_space>only<seq2seq4repair_space>for<seq2seq4repair_space>clusters<seq2seq4repair_space>on<seq2seq4repair_space>one<seq2seq4repair_space>machine<seq2seq4repair_space>(tests,<seq2seq4repair_space>dev)" ) ; options . addOption ( "h" , ZkCLI . HELP , false , "bring<seq2seq4repair_space>up<seq2seq4repair_space>this<seq2seq4repair_space>help<seq2seq4repair_space>page" ) ; try { CommandLine line = parser . parse ( options , args ) ; if ( ( ( line . hasOption ( ZkCLI . HELP ) ) || ( ! ( line . hasOption ( ZkCLI . ZKHOST ) ) ) ) || ( ! ( line . hasOption ( ZkCLI . CMD ) ) ) ) { HelpFormatter formatter = new HelpFormatter ( ) ; formatter . printHelp ( ZkCLI . ZK_CLI_NAME , options ) ; System . out . println ( "Examples:" ) ; System . out . println ( ( ( ( ( "zkcli.sh<seq2seq4repair_space>-zkhost<seq2seq4repair_space>localhost:9983<seq2seq4repair_space>-cmd<seq2seq4repair_space>" + ( ZkCLI . BOOTSTRAP ) ) + "<seq2seq4repair_space>-" ) + ( ZkCLI . SOLRHOME ) ) + "<seq2seq4repair_space>//opt//solr" ) ) ; System . out . println ( ( ( ( ( ( ( ( "zkcli.sh<seq2seq4repair_space>-zkhost<seq2seq4repair_space>localhost:9983<seq2seq4repair_space>-cmd<seq2seq4repair_space>" + ( ZkCLI . UPCONFIG ) ) + "<seq2seq4repair_space>-" ) + ( ZkCLI . CONFDIR ) ) + "<seq2seq4repair_space>//opt//solr//collection1//conf" ) + "<seq2seq4repair_space>-" ) + ( ZkCLI . CONFNAME ) ) + "<seq2seq4repair_space>myconf" ) ) ; System . out . println ( ( ( ( ( ( ( ( "zkcli.sh<seq2seq4repair_space>-zkhost<seq2seq4repair_space>localhost:9983<seq2seq4repair_space>-cmd<seq2seq4repair_space>" + ( ZkCLI . DOWNCONFIG ) ) + "<seq2seq4repair_space>-" ) + ( ZkCLI . CONFDIR ) ) + "<seq2seq4repair_space>//opt//solr//collection1//conf" ) + "<seq2seq4repair_space>-" ) + ( ZkCLI . CONFNAME ) ) + "<seq2seq4repair_space>myconf" ) ) ; System . out . println ( ( ( ( ( ( ( ( "zkcli.sh<seq2seq4repair_space>-zkhost<seq2seq4repair_space>localhost:9983<seq2seq4repair_space>-cmd<seq2seq4repair_space>" + ( ZkCLI . LINKCONFIG ) ) + "<seq2seq4repair_space>-" ) + ( ZkCLI . COLLECTION ) ) + "<seq2seq4repair_space>collection1" ) + "<seq2seq4repair_space>-" ) + ( ZkCLI . CONFNAME ) ) + "<seq2seq4repair_space>myconf" ) ) ; <START_BUG> System . out . println ( ( ( "zkcli.sh<seq2seq4repair_space>-zkhost<seq2seq4repair_space>localhost:9983<seq2seq4repair_space>-cmd<seq2seq4repair_space>" + ( ZkCLI . MAKEPATH ) ) + "<seq2seq4repair_space>//apache//solr//data.txt<seq2seq4repair_space>'config<seq2seq4repair_space>data'" ) ) ; <END_BUG> System . out . println ( ( ( "zkcli.sh<seq2seq4repair_space>-zkhost<seq2seq4repair_space>localhost:9983<seq2seq4repair_space>-cmd<seq2seq4repair_space>" + ( ZkCLI . PUT ) ) + "<seq2seq4repair_space>//solr.conf<seq2seq4repair_space>'conf<seq2seq4repair_space>data'" ) ) ; System . out . println ( ( ( "zkcli.sh<seq2seq4repair_space>-zkhost<seq2seq4repair_space>localhost:9983<seq2seq4repair_space>-cmd<seq2seq4repair_space>" + ( ZkCLI . CLEAR ) ) + "<seq2seq4repair_space>//solr" ) ) ; System . out . println ( ( "zkcli.sh<seq2seq4repair_space>-zkhost<seq2seq4repair_space>localhost:9983<seq2seq4repair_space>-cmd<seq2seq4repair_space>" + ( ZkCLI . LIST ) ) ) ; return ; } String zkServerAddress = line . getOptionValue ( ZkCLI . ZKHOST ) ; String solrHome = line . getOptionValue ( ZkCLI . SOLRHOME ) ; String solrPort = null ; if ( line . hasOption ( ZkCLI . RUNZK ) ) { if ( ! ( line . hasOption ( ZkCLI . SOLRHOME ) ) ) { System . out . println ( ( ( ( "-" + ( ZkCLI . SOLRHOME ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>required<seq2seq4repair_space>for<seq2seq4repair_space>" ) + ( ZkCLI . RUNZK ) ) ) ; System . exit ( 1 ) ; } solrPort = line . getOptionValue ( ZkCLI . RUNZK ) ; } SolrZkServer zkServer = null ; if ( solrPort != null ) { zkServer = new SolrZkServer ( "true" , null , ( solrHome + "//zoo_data" ) , solrHome , solrPort ) ; zkServer . parseConfig ( ) ; zkServer . start ( ) ; } SolrZkClient zkClient = null ;

Fix:
System . out . println ( ( ( "zkcli.sh<seq2seq4repair_space>-zkhost<seq2seq4repair_space>localhost:9983<seq2seq4repair_space>-cmd<seq2seq4repair_space>" + ( ZkCLI . MAKEPATH ) ) + "<seq2seq4repair_space>//apache//solr" ) ) ;