Last condition is not passed. Problems with closing the connection in the run() method. I already tried with putting the connection into the try-with-resources-statement and with closing the connection in the finally-block. Both solutions did not work.