Buggy code:
public class MultipleChoiceRepoDB implements MultiChoiceRepository { private Connection forbindelse ; private DataSource dataSource ; JdbcTemplate jdbcTemplateObject ; private final String sqlGetGame = "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>multichoicegame<seq2seq4repair_space>where<seq2seq4repair_space>gamename<seq2seq4repair_space>=<seq2seq4repair_space>?" ; private final String sqlGetExercises = "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>multiexercise<seq2seq4repair_space>where<seq2seq4repair_space>idGame<seq2seq4repair_space>=<seq2seq4repair_space>?" ; private final String sqlGetAllMultiChoiceGames = "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>multichoicegame" ; private final String sqlGetAllMultiChoiceGamesFromOving = "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>multichoicegame<seq2seq4repair_space>where<seq2seq4repair_space>multichoicegame.idgame<seq2seq4repair_space>in<seq2seq4repair_space>(select<seq2seq4repair_space>idgamemulti<seq2seq4repair_space>from<seq2seq4repair_space>ovingmultigame<seq2seq4repair_space>where<seq2seq4repair_space>isextra<seq2seq4repair_space>=<seq2seq4repair_space>0)" ; private final String sqlGetAllMultiChoiceGamesFromOvingExtra = "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>multichoicegame<seq2seq4repair_space>where<seq2seq4repair_space>multichoicegame.idgame<seq2seq4repair_space>in<seq2seq4repair_space>(select<seq2seq4repair_space>idgamemulti<seq2seq4repair_space>from<seq2seq4repair_space>ovingmultigame<seq2seq4repair_space>where<seq2seq4repair_space>isextra<seq2seq4repair_space>=<seq2seq4repair_space>1)" ; private final String sqlSelectAllMultiGamesNotInOving = "Select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>multichoicegame<seq2seq4repair_space>where<seq2seq4repair_space>multichoicegame.idgame<seq2seq4repair_space>NOT<seq2seq4repair_space>IN<seq2seq4repair_space>(Select<seq2seq4repair_space>idgamemulti<seq2seq4repair_space>from<seq2seq4repair_space>ovingmultigame)" ; private final String sqlGetIdgameFromMultiChoiseWithGameNameAndEmail = "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>ELGUSER.MULTIRESULT<seq2seq4repair_space>WHERE<seq2seq4repair_space>idgame<seq2seq4repair_space>=(SELECT<seq2seq4repair_space>idgame<seq2seq4repair_space>FROM<seq2seq4repair_space>multichoicegame<seq2seq4repair_space>WHERE<seq2seq4repair_space>gamename<seq2seq4repair_space>=<seq2seq4repair_space>?)<seq2seq4repair_space>AND<seq2seq4repair_space>email=<seq2seq4repair_space>?<seq2seq4repair_space>" ; private final String sqlHasUserVotedMultiGame = "select<seq2seq4repair_space>COUNT(idPerson)<seq2seq4repair_space>FROM<seq2seq4repair_space>person_multi_vote<seq2seq4repair_space>WHERE<seq2seq4repair_space>idPerson<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>AND<seq2seq4repair_space>idmultigame<seq2seq4repair_space>IN(SELECT<seq2seq4repair_space>idgame<seq2seq4repair_space>FROM<seq2seq4repair_space>multichoicegame<seq2seq4repair_space>WHERE<seq2seq4repair_space>gamename<seq2seq4repair_space>=<seq2seq4repair_space>?)" ; private final String sqlGetVoteCountByGameId = "select<seq2seq4repair_space>COUNT(idmultigame)<seq2seq4repair_space>from<seq2seq4repair_space>person_multi_vote<seq2seq4repair_space>WHERE<seq2seq4repair_space>idmultigame<seq2seq4repair_space>IN(SELECT<seq2seq4repair_space>idgame<seq2seq4repair_space>FROM<seq2seq4repair_space>multichoicegame<seq2seq4repair_space>WHERE<seq2seq4repair_space>gamename<seq2seq4repair_space>=<seq2seq4repair_space>?)" ; private final String sqlRegisterMultiGameVote = "insert<seq2seq4repair_space>into<seq2seq4repair_space>person_multi_vote<seq2seq4repair_space>VALUES((SELECT<seq2seq4repair_space>idgame<seq2seq4repair_space>FROM<seq2seq4repair_space>multichoicegame<seq2seq4repair_space>WHERE<seq2seq4repair_space>gamename<seq2seq4repair_space>=<seq2seq4repair_space>?),<seq2seq4repair_space>?)" ; private final String sqlRegGame = "insert<seq2seq4repair_space>into<seq2seq4repair_space>multichoicegame<seq2seq4repair_space>values(default,<seq2seq4repair_space>?,<seq2seq4repair_space>?,<seq2seq4repair_space>?,<seq2seq4repair_space>?,<seq2seq4repair_space>?)" ; private final String sqlRegTasks = "insert<seq2seq4repair_space>into<seq2seq4repair_space>multiexercise<seq2seq4repair_space>values(default,?,<seq2seq4repair_space>?,<seq2seq4repair_space>?,<seq2seq4repair_space>?,<seq2seq4repair_space>?,<seq2seq4repair_space>?,<seq2seq4repair_space>?)" ; private final String sqlMakeMultiGameExercise = "insert<seq2seq4repair_space>into<seq2seq4repair_space>ovingmultigame<seq2seq4repair_space>values<seq2seq4repair_space>(?,<seq2seq4repair_space>(SELECT<seq2seq4repair_space>idgame<seq2seq4repair_space>FROM<seq2seq4repair_space>multichoicegame<seq2seq4repair_space>WHERE<seq2seq4repair_space>gamename<seq2seq4repair_space>=<seq2seq4repair_space>?),<seq2seq4repair_space>?)" ; private final String sqlRemoveMultiGameFromExercise = "delete<seq2seq4repair_space>from<seq2seq4repair_space>ovingmultigame<seq2seq4repair_space>WHERE<seq2seq4repair_space>idgamemulti<seq2seq4repair_space>IN(SELECT<seq2seq4repair_space>idgame<seq2seq4repair_space>FROM<seq2seq4repair_space>multichoicegame<seq2seq4repair_space>WHERE<seq2seq4repair_space>gamename<seq2seq4repair_space>=<seq2seq4repair_space>?)" ; public MultipleChoiceRepoDB ( ) { } @ Autowired public void setDataSource ( DataSource dataSource ) { } public MultiChoice getMultiChoice ( String gamename ) { MultiChoice game = new MultiChoice ( ) ; try { game = ( ( MultiChoice ) ( jdbcTemplateObject . queryForObject ( sqlGetGame , new Object [ ] { gamename } , new MultiChoiceMapper ( ) ) ) ) ; ArrayList < Exercise > exercises = getExercises ( game . getGameid ( ) ) ; game . setExercises ( exercises ) ; } catch ( Exception e ) { <START_BUG> System . out . println ( ( "***Spillet<seq2seq4repair_space>finnes<seq2seq4repair_space>ikke***<seq2seq4repair_space>getMultiChoice" + e ) ) ; <END_BUG> game = null ; } return game ; } public ArrayList < MultiChoice > getAllMultiChoiceGames ( ) { } public ArrayList < Exercise > getExercises ( int gameid ) { } public MultiChoiceInfo getMultiChoiceInfo ( String gameName ) { } public ArrayList < MultiChoiceInfo > getAllMultiChoiceInfo ( ) { } public ArrayList < MultiChoiceInfo > getAllMultiChoiceInfoFromOving ( ) { } public ArrayList < MultiChoiceInfo > getAllMultiChoiceInfoFromOvingExtra ( ) { } public MultiResult getMultiChoiceAndUsername ( String gamename , String email ) { } public boolean regMultiChoiceGame ( MultiChoice game ) { } public boolean regMultiTask ( MultiChoice game ) { } @ Override public boolean registerMultiGameVote ( String usermail , String gameId ) { } @ Override public int hasUserVotedMultiGame ( String usermail , String gameId ) { } @ Override public boolean updateUserMultiVote ( String usermail , String gameId ) { } @ Override public int getVoteCountByGameId ( String gameId ) { } @ Override public ArrayList < MultiChoiceInfo > getAllMultiGamesNotInOving ( ) { } @ Override public boolean makeMultiGameExercise ( String gameId ) { } @ Override public boolean makeMultiGameExerciseExtra ( String gameId ) { } @ Override public boolean removeMultiGameFromExercise ( String gameId ) { } }

Fix:
System . out . println ( ( "***Spillet<seq2seq4repair_space>finnes<seq2seq4repair_space>ikke***<seq2seq4repair_space>getMultiChoice:<seq2seq4repair_space>" + e ) ) ;