Buggy code:
} start = System . currentTimeMillis ( ) ; ref = ctx . lookup ( lookupName ) ; end = System . currentTimeMillis ( ) ; lookupTime = end - start ; JNDISampler . log . info ( "Got<seq2seq4repair_space>remote<seq2seq4repair_space>interface" ) ; lookupRes . setTime ( lookupTime ) ; lookupRes . putValue ( DISPLAY_NAME , ( "Remote<seq2seq4repair_space>Interface<seq2seq4repair_space>Lookup<seq2seq4repair_space>-<seq2seq4repair_space>" + lookupName ) ) ; } Class lookupNameClass = ref . getClass ( ) ; MethodConfig methodConfig = ( ( MethodConfig ) ( e . getConfigElement ( MethodConfig . class ) ) ) ; MethodConfigGui methodConfigGui = methodConfig . getGui ( ) ; MethodConfig model = methodConfigGui . getModel ( ) ; int state = model . getState ( ) ; reflectionStatus = model . getReflectionStatus ( ) ; String [ ] strings = null ; if ( JNDISampler . log . isDebugEnabled ( ) ) { JNDISampler . log . debug ( ( "sample1<seq2seq4repair_space>:<seq2seq4repair_space>state<seq2seq4repair_space>-<seq2seq4repair_space>" + state ) ) ; JNDISampler . log . debug ( ( "sample1<seq2seq4repair_space>:<seq2seq4repair_space>reflectionStatus<seq2seq4repair_space>-<seq2seq4repair_space>" + reflectionStatus ) ) ; } if ( ( ( state == ( MethodConfig . METHOD_GET_HOME_NAMES ) ) && reflectionStatus ) && ( ! stateJustChanged ) ) { Method [ ] methods = lookupNameClass . getMethods ( ) ; strings = new String [ methods . length ] ; for ( int i = 0 ; i < ( methods . length ) ; i ++ ) { strings [ i ] = getMethodSignature ( methods [ i ] ) ; } model . setMethodHomeList ( strings ) ; model . setState ( METHOD_GET_HOME_PARMS ) ; stateJustChanged = true ; } if ( ( ( state == ( MethodConfig . METHOD_GET_HOME_PARMS ) ) && reflectionStatus ) && ( ! stateJustChanged ) ) { String methodHomeName = methodConfig . getMethodHomeName ( ) ; if ( JNDISampler . log . isDebugEnabled ( ) ) { JNDISampler . log . debug ( ( "sample1<seq2seq4repair_space>:<seq2seq4repair_space>selected<seq2seq4repair_space>methodHomeName<seq2seq4repair_space>-<seq2seq4repair_space>" + methodHomeName ) ) ; } Vector returnValues = getMethodParmsTypes ( methodHomeName , lookupNameClass ) ; Method method = ( ( Method ) ( returnValues . get ( 0 ) ) ) ; Class [ ] methodParmTypes = ( ( Class [ ] ) ( returnValues . get ( 1 ) ) ) ; model . setMethodHomeParms ( methodParmTypes ) ; model . setHomeMethod ( method ) ; model . setState ( METHOD_INVOKE_HOME ) ; stateJustChanged = true ; } if ( ( ( ( state == ( MethodConfig . METHOD_INVOKE_HOME ) ) && reflectionStatus ) && ( ! stateJustChanged ) ) || ( ( state >= ( MethodConfig . METHOD_INVOKE_HOME ) ) && ( ! reflectionStatus ) ) ) { JNDISampler . log . debug ( "sample1<seq2seq4repair_space>:<seq2seq4repair_space>METHOD_INVOKE_HOME" ) ; Method method = model . getHomeMethod ( ) ; if ( JNDISampler . log . isDebugEnabled ( ) ) { JNDISampler . log . debug ( ( "sample1<seq2seq4repair_space>:<seq2seq4repair_space>home<seq2seq4repair_space>method<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>invoked<seq2seq4repair_space>-<seq2seq4repair_space>" + method ) ) ; } homeMethodRes = new SampleResult ( ) ; Object [ ] parmsArray = null ; try { parmsArray = methodConfigGui . getMethodParmsValues ( METHOD_INVOKE_HOME ) ; if ( JNDISampler . log . isDebugEnabled ( ) ) { JNDISampler . log . debug ( ( "sample1<seq2seq4repair_space>:<seq2seq4repair_space>home<seq2seq4repair_space>method<seq2seq4repair_space>parms<seq2seq4repair_space>-<seq2seq4repair_space>" + parmsArray ) ) ; } start = System . currentTimeMillis ( ) ; remoteInterface = method . invoke ( ref , parmsArray ) ; JNDISampler . log . info ( ( "return<seq2seq4repair_space>-<seq2seq4repair_space>" + remoteInterface ) ) ; } catch ( IllegalAccessException err ) { JNDISampler . log . error ( err ) ; } catch ( InvocationTargetException err ) { JNDISampler . log . error ( err ) ; } catch ( MethodConfigUserObjectException err ) { JNDISampler . log . error ( err ) ; } end = System . currentTimeMillis ( ) ; if ( ! reflectionStatus ) { homeMethodTime = end - start ; homeMethodRes . setTime ( homeMethodTime ) ; homeMethodRes . putValue ( DISPLAY_NAME , ( "Home<seq2seq4repair_space>Method<seq2seq4repair_space>Execution<seq2seq4repair_space>-<seq2seq4repair_space>" + ( method . getName ( ) ) ) ) ; <START_BUG> homeMethodRes . putValue ( SUCCESS , new Boolean ( true ) ) ; <END_BUG> } else { model . setState ( METHOD_GET_REMOTE_NAMES ) ; stateJustChanged = true ; model . setRemoteInterfaceList ( remoteInterface ) ; } } if ( ( ( state == ( MethodConfig . METHOD_GET_REMOTE_NAMES ) ) && reflectionStatus ) && ( ! stateJustChanged ) ) { remoteInterface = model . getRemoteInterfaceType ( ) ; Class remoteInterfaceClass = remoteInterface . getClass ( ) ; if ( JNDISampler . log . isDebugEnabled ( ) ) { JNDISampler . log . debug ( ( "updateGui1<seq2seq4repair_space>:<seq2seq4repair_space>remoteInterfaceClass<seq2seq4repair_space>-<seq2seq4repair_space>" + remoteInterfaceClass ) ) ; } Method [ ] methods = remoteInterfaceClass . getMethods ( ) ; strings = new String [ methods . length ] ; for ( int i = 0 ; i < ( methods . length ) ; i ++ ) { strings [ i ] = getMethodSignature ( methods [ i ] ) ; } model . setMethodRemoteList ( strings ) ; model . setState ( METHOD_GET_REMOTE_PARMS ) ; stateJustChanged = true ; } if ( ( ( state == ( MethodConfig . METHOD_GET_REMOTE_PARMS ) ) && reflectionStatus ) && ( ! stateJustChanged ) ) { String methodRemoteName = methodConfig . getMethodRemoteName ( ) ; if ( JNDISampler . log . isDebugEnabled ( ) ) { JNDISampler . log . debug ( ( "sample1<seq2seq4repair_space>:<seq2seq4repair_space>selected<seq2seq4repair_space>methodRemoteName<seq2seq4repair_space>-<seq2seq4repair_space>" + methodRemoteName ) ) ; } Object selectedRemoteInterfaceType = model . getRemoteInterfaceType ( ) ; Class selectedRemoteInterfaceTypeClass = selectedRemoteInterfaceType . getClass ( ) ; Vector returnValues = getMethodParmsTypes ( methodRemoteName , selectedRemoteInterfaceTypeClass ) ; Method method = ( ( Method ) ( returnValues . get ( 0 ) ) ) ; Class [ ] methodParmTypes = ( ( Class [ ] ) ( returnValues . get ( 1 ) ) ) ; model . setMethodRemoteParms ( methodParmTypes ) ; model . setRemoteMethod ( method ) ; model . setState ( METHOD_INVOKE_REMOTE ) ; stateJustChanged = true ;

Fix:
homeMethodRes . putValue ( SUCCESS , Boolean . TRUE ) ;