java.lang.IllegalArgumentException: Fields invalid for add

joda | dirkhaase | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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