After running my program, I get this weird crash occurring after around 2 hours of running it stating that it can\'t parse the date.
Text \'2016-10-26T12:31:39.0
For others having this problem, it was pointed out that the origin of this bug lies in the outdated java version on mac.
To upgrade this version, I installed the latest JDK from: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. However after installing this, the old folder doesn't get updated and requires a manual update.
To do this, navigate to: /Library/Java/JavaVirtualMachines/
where you will see 2 different directories containing jdk 1.8.0, a directory named jdk1.8.0.jdk
and one named jdk1.8.0_
where version is the release number (for example 111).
Now go ahead and remove the directory called jdk1.8.0.jdk
(or move it to a _old folder) and create a symlink pointing towards the new one with sudo ln -s jdk1.8.0_
This solved the complete problem for me and now the error is not appearing anymore. A big thanks to @assylias and @basil-bourque for the suggestion that lead to this solution.