DateTimeParseException with LocalDateTime: Unable to obtain LocalDateTime from TemporalAccessor
<p>Here's my code:</p>

<pre><code>private final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MMM dd HH:mm:ss");

LocalDateTime timeStamp = LocalDateTime.parse(string, formatter);
</code></pre>

<p>Which results in the follwoing exception:</p>

<blockquote>
  <p>java.time.format.DateTimeParseException: Text 'Oct 10 13:10:01' could
  not be parsed: Unable to obtain LocalDateTime from TemporalAccessor:
  {MonthOfYear=10, DayOfMonth=10},ISO resolved to 13:10:01 of type
  java.time.format.Parsed</p>
</blockquote>

<p>Using Java 1.8.0_31.</p>

<p>I did look around and found many similar issues but non of them matches this one exatcly and solutions offered there are not applicable here:</p>

<p><a href="https://stackoverflow.com/questions/27454025/unable-to-obtain-localdatetime-from-temporalaccessor-when-parsing-localdatetime">Here</a> the reason for the same issue was using LocalDateTime without the Time parts. As you can see from the expection this is not the case here.</p>

<p>I'm not using week-based year as in <a href="https://stackoverflow.com/questions/33603972/java8-localdatetime-parsing-error">this</a> example.</p>

<p>And finally unlike <a href="https://stackoverflow.com/questions/23596530/unable-to-obtain-zoneddatetime-from-temporalaccessor-using-datetimeformatter-and">here</a> I'm using LocalDateTime so timezones should not be a problem. But as it's supposedly a <a href="https://bugs.openjdk.java.net/browse/JDK-8041360" rel="nofollow noreferrer">bug in DateTimeFormatter</a> I've tried to pass the formatter as 'formatter.withZone(ZoneId.systemDefault())' (suggested workaround) which resulted in the same exception.</p>