java.lang.IllegalArgumentException: Value N not in range [1970, 2099]


Solutions on the web2

Solution icon of github
Value N not in range [1970, 2099]

Solution icon of github
Value 10 not in range [1970, 2099]

Stack trace

java.lang.IllegalArgumentException: Value N not in range [1970, 2099]
	at com.cronutils.model.field.expression.visitor.ValidationFieldExpressionVisitor.isInRange(ValidationFieldExpressionVisitor.java:152)
	at com.cronutils.model.field.expression.visitor.ValidationFieldExpressionVisitor.visit(ValidationFieldExpressionVisitor.java:119)
	at com.cronutils.model.field.expression.visitor.ValidationFieldExpressionVisitor.visit(ValidationFieldExpressionVisitor.java:60)
	at com.cronutils.model.field.expression.FieldExpression.accept(FieldExpression.java:42)
	at com.cronutils.builder.CronBuilder.addField(CronBuilder.java:81)
	at com.cronutils.builder.CronBuilder.withYear(CronBuilder.java:45)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.