java.lang.IllegalArgumentException: Fields invalid for add

joda | dirkhaase | 1 decade 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

    Problem with YearMonthDay.minus(...)

    joda | 1 decade ago | dirkhaase
    java.lang.IllegalArgumentException: Fields invalid for add

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Fields invalid for add

      at org.joda.time.field.BaseDateTimeField.add()
    2. Joda-Time
      YearMonthDay.minus
      1. org.joda.time.field.BaseDateTimeField.add(BaseDateTimeField.java:339)
      2. org.joda.time.YearMonthDay.withPeriodAdded(YearMonthDay.java:378)
      3. org.joda.time.YearMonthDay.minus(YearMonthDay.java:421)
      3 frames