java.time.DateTimeException: Unable to obtain LocalDate from TemporalAccessor: {WeekBasedYear[WeekFields[MONDAY,4]]=2016, WeekOfWeekBasedYear[WeekFields[MONDAY,4]]=50},ISO of type java.time.format.Parsed

Google Groups | Tassilo Horn | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Parsing calendar weeks to LocalDates with DateTimeFormatter

    Google Groups | 8 months ago | Tassilo Horn
    java.time.DateTimeException: Unable to obtain LocalDate from TemporalAccessor: {WeekBasedYear[WeekFields[MONDAY,4]]=2016, WeekOfWeekBasedYear[WeekFields[MONDAY,4]]=50},ISO of type java.time.format.Parsed
  2. 0

    Java8 LocalDateTime parsing error

    Stack Overflow | 1 year ago | ak31
    java.time.format.DateTimeParseException: Text '03-feb-2014 13:16:31' could not be parsed: Unable to obtain LocalDateTime from TemporalAccessor: {DayOfMonth=3, MonthOfYear=2, WeekBasedYear[WeekFields[SUNDAY,1]]=2014},ISO resolved to 13:16:31 of type java.time.format.Parsed

  1. serious2monkeys 1 times, last 5 months ago

Root Cause Analysis

  1. java.time.DateTimeException

    Unable to obtain LocalDate from TemporalAccessor: {WeekBasedYear[WeekFields[MONDAY,4]]=2016, WeekOfWeekBasedYear[WeekFields[MONDAY,4]]=50},ISO of type java.time.format.Parsed

    at java.time.LocalDate.from()
  2. Java RT
    DateTimeFormatter.parse
    1. java.time.LocalDate.from(LocalDate.java:368)
    2. java.time.format.Parsed.query(Parsed.java:226)
    3. java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1851)
    3 frames