Instant Time parsing error (Unable to obtain Instant from TemporalAccessor)

前端 未结 2 463
忘了有多久
忘了有多久 2021-01-21 07:45

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         


        
2条回答
  •  余生分开走
    2021-01-21 08:07

    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_.jdk 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_.jdk jdk1.8.0.jdk

    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.

提交回复
热议问题