Buggy code:
private PromptDialogBox parentDialog ; private boolean newSchedule = true ; public ScheduleRecurrenceDialog ( PromptDialogBox parentDialog , JsJob jsJob , IDialogCallback callback , boolean hasParams , boolean isEmailConfValid , final ScheduleDialogType type ) { } public ScheduleRecurrenceDialog ( PromptDialogBox parentDialog , String filePath , String outputLocation , String scheduleName , IDialogCallback callback , boolean hasParams , boolean isEmailConfValid ) { } public ScheduleRecurrenceDialog ( PromptDialogBox parentDialog , ScheduleDialogType type , String title , String filePath , String outputLocation , String scheduleName , IDialogCallback callback , boolean hasParams , boolean isEmailConfValid ) { } @ Override public boolean onKeyDownPreview ( char key , int modifiers ) { } public void setParentDialog ( PromptDialogBox parentDialog ) { } public void addCustomPanel ( Widget w , DockPanel . DockLayoutConstant position ) { } private void constructDialog ( String filePath , String outputLocation , String scheduleName , boolean hasParams , boolean isEmailConfValid , JsJob jsJob ) { } private void setupExisting ( JsJob jsJob ) { } protected JSONObject getJsonSimpleTrigger ( int repeatCount , int interval , Date startDate , Date endDate ) { } protected JSONObject getJsonCronTrigger ( String cronString , Date startDate , Date endDate ) { } protected JSONObject getJsonComplexTrigger ( ScheduleType scheduleType , MonthOfYear month , WeekOfMonth weekOfMonth , List < DayOfWeek > daysOfWeek , Date startDate , Date endDate ) { } protected JSONObject getJsonComplexTrigger ( ScheduleType scheduleType , MonthOfYear month , int dayOfMonth , Date startDate , Date endDate ) { } @ SuppressWarnings ( "deprecation" ) public JSONObject getSchedule ( ) { } @ SuppressWarnings ( "deprecation" ) private JSONObject addJsonStartEnd ( JSONObject trigger , Date startDate , Date endDate ) { } private long calculateBlockoutDuration ( ) { } @ SuppressWarnings ( "deprecation" ) public JsJobTrigger getJsJobTrigger ( ) { } protected boolean addBlockoutPeriod ( final JSONObject schedule , final JsJobTrigger trigger , String urlSuffix ) { } private void promptDueToBlockoutConflicts ( final boolean alwaysConflict , final boolean conflictsSometimes , final JSONObject schedule , final JsJobTrigger trigger ) { } protected void verifyBlockoutConflict ( final JSONObject schedule , final JsJobTrigger trigger ) { } private void handleWizardPanels ( final JSONObject schedule , final JsJobTrigger trigger ) { if ( hasParams ) { showScheduleParamsDialog ( trigger , schedule ) ; } else if ( isEmailConfValid ) { showScheduleEmailDialog ( schedule ) ; } else { JSONObject scheduleRequest = ( ( JSONObject ) ( JSONParser . parseStrict ( schedule . toString ( ) ) ) ) ; if ( ( editJob ) != null ) { JSONArray scheduleParams = new JSONArray ( ) ; for ( int i = 0 ; i < ( editJob . getJobParams ( ) . length ( ) ) ; i ++ ) { JsJobParam param = editJob . getJobParams ( ) . get ( i ) ; JsArrayString paramValue = ( ( JsArrayString ) ( JavaScriptObject . createArray ( ) . cast ( ) ) ) ; paramValue . push ( param . getValue ( ) ) ; JsSchedulingParameter p = ( ( JsSchedulingParameter ) ( JavaScriptObject . createObject ( ) . cast ( ) ) ) ; p . setName ( param . getName ( ) ) ; p . setType ( "string" ) ; p . setStringValue ( paramValue ) ; scheduleParams . set ( i , new JSONObject ( p ) ) ; } scheduleRequest . put ( "jobParameters" , scheduleParams ) ; String actionClass = editJob . getJobParamValue ( "ActionAdapterQuartzJob-ActionClass" ) ; if ( ! ( StringUtils . isEmpty ( actionClass ) ) ) { scheduleRequest . put ( "actionClass" , new JSONString ( actionClass ) ) ; } } RequestBuilder scheduleFileRequestBuilder = new RequestBuilder ( RequestBuilder . POST , ( ( ScheduleHelper . getFullyQualifiedURL ( ) ) + "api//scheduler//job" ) ) ; scheduleFileRequestBuilder . setHeader ( "Content-Type" , "application//json" ) ; scheduleFileRequestBuilder . setHeader ( "If-Modified-Since" , "01<seq2seq4repair_space>Jan<seq2seq4repair_space>1970<seq2seq4repair_space>00:00:00<seq2seq4repair_space>GMT" ) ; try { scheduleFileRequestBuilder . sendRequest ( scheduleRequest . toString ( ) , new RequestCallback ( ) { @ Override public void onError ( Request request , Throwable exception ) { MessageDialogBox dialogBox = new MessageDialogBox ( Messages . getString ( "error" ) , exception . toString ( ) , false , false , true ) ; dialogBox . center ( ) ; setDone ( false ) ; } @ Override public void onResponseReceived ( Request request , Response response ) { if ( ( response . getStatusCode ( ) ) == 200 ) { setDone ( true ) ; ScheduleRecurrenceDialog . this . hide ( ) ; if ( ( callback ) != null ) { callback . okPressed ( ) ; } } else { <START_BUG> MessageDialogBox dialogBox = new MessageDialogBox ( Messages . getString ( "error" ) , response . getText ( ) , false , false , true ) ; <END_BUG> dialogBox . center ( ) ; setDone ( false ) ; } } } ) ; } catch ( RequestException e ) { MessageDialogBox dialogBox = new MessageDialogBox ( Messages . getString ( "error" ) , e . toString ( ) , false , false , true ) ; dialogBox . center ( ) ; setDone ( false ) ; } setDone ( true ) ; } } private final native JavaScriptObject parseJson ( String json ) { } @ Override protected boolean onFinish ( ) { } private void showScheduleEmailDialog ( final JSONObject schedule ) { } private void showScheduleParamsDialog ( final JsJobTrigger trigger , final JSONObject schedule ) { } private int getStartMin ( String startTime ) { } private int getStartHour ( String startTime ) { } public Boolean getDone ( ) { } public void setDone ( Boolean done ) { } @ Override protected boolean onNext ( IWizardPanel nextPanel , IWizardPanel previousPanel ) { } @ Override protected boolean onPrevious ( IWizardPanel previousPanel , IWizardPanel currentPanel ) { } @ Override protected void backClicked ( ) { } @ Override public void center ( ) { } @ Override protected boolean enableBack ( int index ) { }

Fix:
MessageDialogBox dialogBox = new MessageDialogBox ( Messages . getString ( "error" ) , ( ( ( Messages . getString ( "serverErrorColon" ) ) + "<seq2seq4repair_space>" ) + ( response . getStatusCode ( ) ) ) , false , false , true ) ;