Buggy code:
@ Controller public final class Report { private SwiftDao swiftDao ; private WorkspaceDao workspaceDao ; private SearchDbDao searchDbDao ; private WebUiHolder webUiHolder ; @ RequestMapping ( value = "//report" , method = RequestMethod . GET ) public String report ( final ModelMap model ) { } <START_BUG> @ RequestMapping ( "//taskerror" ) <END_BUG> public String taskError ( final ModelMap model , @ RequestParam ( value = "id" , required = false ) final Integer taskId , @ RequestParam ( value = "tid" , required = false ) final Integer searchRunId ) { if ( taskId != null ) { getSwiftDao ( ) . begin ( ) ; try { final TaskData data = getSwiftDao ( ) . getTaskData ( taskId ) ; final String taskName = ReportUtils . replaceTokensWithHyperlinks ( data . getTaskName ( ) , getWebUi ( ) . getBrowseRoot ( ) , getWebUi ( ) . getBrowseWebRoot ( ) , getWebUi ( ) . getFileTokenFactory ( ) ) ; model . addAttribute ( "taskName" , taskName ) ; final String taskDescription = ReportUtils . replaceTokensWithHyperlinks ( data . getDescriptionLong ( ) , getWebUi ( ) . getBrowseRoot ( ) , getWebUi ( ) . getBrowseWebRoot ( ) , getWebUi ( ) . getFileTokenFactory ( ) ) ; model . addAttribute ( "taskDescription" , taskDescription ) ; final String exception = ReportUtils . newlineToBr ( ReportUtils . replaceTokensWithHyperlinks ( data . getErrorMessage ( ) , getWebUi ( ) . getBrowseRoot ( ) , getWebUi ( ) . getBrowseWebRoot ( ) , getWebUi ( ) . getFileTokenFactory ( ) ) ) ; model . addAttribute ( "errorMessage" , exception ) ; model . addAttribute ( "exception" , data . getExceptionString ( ) ) ; getSwiftDao ( ) . commit ( ) ; return "report//taskerror" ; } catch ( Exception e ) { getSwiftDao ( ) . rollback ( ) ; throw new MprcException ( e ) ; } } if ( searchRunId != null ) { getSwiftDao ( ) . begin ( ) ; try { final SearchRun data = getSwiftDao ( ) . getSearchRunForId ( searchRunId ) ; model . addAttribute ( "data" , data ) ; final String exception = ReportUtils . replaceTokensWithHyperlinks ( StringUtilities . escapeHtml ( data . getErrorMessage ( ) ) , getWebUi ( ) . getBrowseRoot ( ) , getWebUi ( ) . getBrowseWebRoot ( ) , getWebUi ( ) . getFileTokenFactory ( ) ) ; model . addAttribute ( "exception" , exception ) ; getSwiftDao ( ) . commit ( ) ; return "report//searchrunerror" ; } catch ( Exception e ) { getSwiftDao ( ) . rollback ( ) ; throw new MprcException ( e ) ; } } throw new MprcException ( "Neither<seq2seq4repair_space>task<seq2seq4repair_space>nor<seq2seq4repair_space>transaction<seq2seq4repair_space>ids<seq2seq4repair_space>were<seq2seq4repair_space>specified" ) ; } public SwiftDao getSwiftDao ( ) { } @ Resource ( name = "swiftDao" ) public void setSwiftDao ( final SwiftDao swiftDao ) { } public WorkspaceDao getWorkspaceDao ( ) { } @ Resource ( name = "workspaceDao" ) public void setWorkspaceDao ( final WorkspaceDao workspaceDao ) { } public SearchDbDao getSearchDbDao ( ) { } @ Resource ( name = "searchDbDao" ) public void setSearchDbDao ( final SearchDbDao searchDbDao ) { } public WebUiHolder getWebUiHolder ( ) { } @ Resource ( name = "webUiHolder" ) public void setWebUiHolder ( WebUiHolder webUiHolder ) { } private WebUi getWebUi ( ) { } }

Fix:
@ RequestMapping ( "//report//taskerror" )