java.lang.IllegalArgumentException: HOUR_OF_DAY: 0 -> 1

Pentaho BI Platform Tracking | Gustavo Henrique Orair | 2 years ago
  1. 0

    There is a bug using the operation 'remove time from a date' from the Calculator step on summertime dates. If the date specified was a day where the summertime started, the operation fails with a java.lang.IllegalArgumentException: 2014/11/24 14:35:31 - remove_time.0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Unexpected error 2014/11/24 14:35:31 - remove_time.0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : java.lang.IllegalArgumentException: HOUR_OF_DAY: 0 -> 1 2014/11/24 14:35:31 - remove_time.0 - at java.util.GregorianCalendar.computeTime(Unknown Source) 2014/11/24 14:35:31 - remove_time.0 - at java.util.Calendar.updateTime(Unknown Source) 2014/11/24 14:35:31 - remove_time.0 - at java.util.Calendar.getTimeInMillis(Unknown Source) 2014/11/24 14:35:31 - remove_time.0 - at java.util.Calendar.getTime(Unknown Source) 2014/11/24 14:35:31 - remove_time.0 - at org.pentaho.di.core.Const.removeTimeFromDate(Const.java:2759) 2014/11/24 14:35:31 - remove_time.0 - at org.pentaho.di.core.row.ValueDataUtil.removeTimeFromDate(ValueDataUtil.java:1026) 2014/11/24 14:35:31 - remove_time.0 - at org.pentaho.di.trans.steps.calculator.Calculator.calcFields(Calculator.java:413) 2014/11/24 14:35:31 - remove_time.0 - at org.pentaho.di.trans.steps.calculator.Calculator.processRow(Calculator.java:162) 2014/11/24 14:35:31 - remove_time.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) I will attach a simple transformation that reproduces the bug when using user.timezone environment variable set to America/Sao_Paulo.

    Pentaho BI Platform Tracking | 2 years ago | Gustavo Henrique Orair
    java.lang.IllegalArgumentException: HOUR_OF_DAY: 0 -> 1
  2. 0

    There is a bug using the operation 'remove time from a date' from the Calculator step on summertime dates. If the date specified was a day where the summertime started, the operation fails with a java.lang.IllegalArgumentException: 2014/11/24 14:35:31 - remove_time.0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Unexpected error 2014/11/24 14:35:31 - remove_time.0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : java.lang.IllegalArgumentException: HOUR_OF_DAY: 0 -> 1 2014/11/24 14:35:31 - remove_time.0 - at java.util.GregorianCalendar.computeTime(Unknown Source) 2014/11/24 14:35:31 - remove_time.0 - at java.util.Calendar.updateTime(Unknown Source) 2014/11/24 14:35:31 - remove_time.0 - at java.util.Calendar.getTimeInMillis(Unknown Source) 2014/11/24 14:35:31 - remove_time.0 - at java.util.Calendar.getTime(Unknown Source) 2014/11/24 14:35:31 - remove_time.0 - at org.pentaho.di.core.Const.removeTimeFromDate(Const.java:2759) 2014/11/24 14:35:31 - remove_time.0 - at org.pentaho.di.core.row.ValueDataUtil.removeTimeFromDate(ValueDataUtil.java:1026) 2014/11/24 14:35:31 - remove_time.0 - at org.pentaho.di.trans.steps.calculator.Calculator.calcFields(Calculator.java:413) 2014/11/24 14:35:31 - remove_time.0 - at org.pentaho.di.trans.steps.calculator.Calculator.processRow(Calculator.java:162) 2014/11/24 14:35:31 - remove_time.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) I will attach a simple transformation that reproduces the bug when using user.timezone environment variable set to America/Sao_Paulo.

    Pentaho BI Platform Tracking | 2 years ago | Gustavo Henrique Orair
    java.lang.IllegalArgumentException: HOUR_OF_DAY: 0 -> 1
  3. 0

    Batch Processor error

    Oracle Community | 1 year ago | Kunal Sharma
    java.lang.IllegalArgumentException: HOUR_OF_DAY: 0 -> 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java: Gregorian Calendar date validation issue

    Stack Overflow | 5 years ago | user873684
    java.lang.IllegalArgumentException: MONTH

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      HOUR_OF_DAY: 0 -> 1

      at java.util.GregorianCalendar.computeTime()
    2. Java RT
      Calendar.getTime
      1. java.util.GregorianCalendar.computeTime(Unknown Source)
      2. java.util.Calendar.updateTime(Unknown Source)
      3. java.util.Calendar.getTimeInMillis(Unknown Source)
      4. java.util.Calendar.getTime(Unknown Source)
      4 frames
    3. org.pentaho.di
      RunThread.run
      1. org.pentaho.di.core.Const.removeTimeFromDate(Const.java:2759)
      2. org.pentaho.di.core.row.ValueDataUtil.removeTimeFromDate(ValueDataUtil.java:1026)
      3. org.pentaho.di.trans.steps.calculator.Calculator.calcFields(Calculator.java:413)
      4. org.pentaho.di.trans.steps.calculator.Calculator.processRow(Calculator.java:162)
      5. org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
      5 frames