Exception in thread "main" java.time.format.DateTimeParseException: Text '01/2019' could not be parsed: Unable to obtain YearMonth from TemporalAccessor: {MinuteOfHour=1, WeekBasedYear[WeekFields[SUNDAY,1]]=2019},ISO of type java.time.format.Parsed
at java.time.format.DateTimeFormatter.createError(DateTimeFormatter.java:1920)
at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1855)
at java.time.YearMonth.parse(YearMonth.java:295)
at Ideone.main(Main.java:15)
Caused by: java.time.DateTimeException: Unable to obtain YearMonth from TemporalAccessor: {MinuteOfHour=1, WeekBasedYear[WeekFields[SUNDAY,1]]=2019},ISO of type java.time.format.Parsed
at java.time.YearMonth.from(YearMonth.java:263)
at java.time.format.Parsed.query(Parsed.java:226)
at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1851)
... 2 more
Caused by: java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: Year
at java.time.temporal.TemporalAccessor.range(TemporalAccessor.java:174)
at java.time.temporal.TemporalAccessor.get(TemporalAccessor.java:218)
at java.time.YearMonth.from(YearMonth.java:260)
... 4 more