Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8339994

TZUpdater fails with tzdata2024b

XMLWordPrintable

    • x86_64
    • linux

      ADDITIONAL SYSTEM INFORMATION :
      Operating System: Ubuntu 22.04.4 LTS
      Kernel: Linux 6.8.0-40-generic
      Architecture: x86-64
      tzupdater version 2.3.2-b02


      A DESCRIPTION OF THE PROBLEM :
      Updating to tzdata2024b fails
      Command:
      java -jar tzupdater.jar -v -l https://ftp.iana.org/tz/releases/tzdata2024b.tar.gz

      Output:
      Using https://ftp.iana.org/tz/releases/tzdata2024b.tar.gz as source for tzdata bundle.
      java.home: /usr/lib/jvm/java-8-openjdk-amd64/jre
      java.vendor: Private Build
      java.version: 1.8.0_422
      tzupdater version 2.3.2-b02
      JRE tzdata version: tzdata2024a
      Downloaded file to /tmp/tz.tmp_7/tzdata.tar.gz
      tzupdater tool would update with tzdata version: tzdata2024b
      Warning: Source directory does not contain source file: pacificnew
      Compiling TZDB version 2024b
      Failed: java.time.zone.ZoneRulesException: Unable to load TZDB time-zone rules
      java.time.zone.ZoneRulesException: Unable to load TZDB time-zone rules
      at tools.tzdb.TzdbZoneRulesProvider.<init>(TzdbZoneRulesProvider.java:76)
      at tools.tzdb.TzdbZoneRulesCompiler.compile(TzdbZoneRulesCompiler.java:174)
      at tools.tzdb.TzdbZoneRulesCompiler.main(TzdbZoneRulesCompiler.java:83)
      at com.sun.tools.tzupdater.ExternalModule.compileToJSRBinary(ExternalModule.java:169)
      at com.sun.tools.tzupdater.TimezoneUpdater.run(TimezoneUpdater.java:252)
      at com.sun.tools.tzupdater.TimezoneUpdater.main(TimezoneUpdater.java:686)
      Caused by: java.lang.RuntimeException: Failed while processing file [/tmp/tz.tmp_7/northamerica]
      at tools.tzdb.TzdbZoneRulesProvider.load(TzdbZoneRulesProvider.java:221)
      at tools.tzdb.TzdbZoneRulesProvider.<init>(TzdbZoneRulesProvider.java:74)
      ... 5 more
      Caused by: java.lang.IllegalArgumentException: Unknown month: April
      at tools.tzdb.TzdbZoneRulesProvider$MonthDayTime.parseMonth(TzdbZoneRulesProvider.java:391)
      at tools.tzdb.TzdbZoneRulesProvider$MonthDayTime.parse(TzdbZoneRulesProvider.java:314)
      at tools.tzdb.TzdbZoneRulesProvider$MonthDayTime.access$300(TzdbZoneRulesProvider.java:258)
      at tools.tzdb.TzdbZoneRulesProvider$RuleLine.parse(TzdbZoneRulesProvider.java:561)
      at tools.tzdb.TzdbZoneRulesProvider.load(TzdbZoneRulesProvider.java:200)
      ... 6 more


      Error output:


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      execute tzupdater with:

      java -jar tzupdater.jar -v -l https://ftp.iana.org/tz/releases/tzdata2024b.tar.gz

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      tzdata updated correctly
      ACTUAL -
      Tool throws following error

      Using https://ftp.iana.org/tz/releases/tzdata2024b.tar.gz as source for tzdata bundle.
      java.home: /usr/lib/jvm/java-8-openjdk-amd64/jre
      java.vendor: Private Build
      java.version: 1.8.0_422
      tzupdater version 2.3.2-b02
      JRE tzdata version: tzdata2024a
      Downloaded file to /tmp/tz.tmp_7/tzdata.tar.gz
      tzupdater tool would update with tzdata version: tzdata2024b
      Warning: Source directory does not contain source file: pacificnew
      Compiling TZDB version 2024b
      Failed: java.time.zone.ZoneRulesException: Unable to load TZDB time-zone rules
      java.time.zone.ZoneRulesException: Unable to load TZDB time-zone rules
      at tools.tzdb.TzdbZoneRulesProvider.<init>(TzdbZoneRulesProvider.java:76)
      at tools.tzdb.TzdbZoneRulesCompiler.compile(TzdbZoneRulesCompiler.java:174)
      at tools.tzdb.TzdbZoneRulesCompiler.main(TzdbZoneRulesCompiler.java:83)
      at com.sun.tools.tzupdater.ExternalModule.compileToJSRBinary(ExternalModule.java:169)
      at com.sun.tools.tzupdater.TimezoneUpdater.run(TimezoneUpdater.java:252)
      at com.sun.tools.tzupdater.TimezoneUpdater.main(TimezoneUpdater.java:686)
      Caused by: java.lang.RuntimeException: Failed while processing file [/tmp/tz.tmp_7/northamerica]
      at tools.tzdb.TzdbZoneRulesProvider.load(TzdbZoneRulesProvider.java:221)
      at tools.tzdb.TzdbZoneRulesProvider.<init>(TzdbZoneRulesProvider.java:74)
      ... 5 more
      Caused by: java.lang.IllegalArgumentException: Unknown month: April
      at tools.tzdb.TzdbZoneRulesProvider$MonthDayTime.parseMonth(TzdbZoneRulesProvider.java:391)
      at tools.tzdb.TzdbZoneRulesProvider$MonthDayTime.parse(TzdbZoneRulesProvider.java:314)
      at tools.tzdb.TzdbZoneRulesProvider$MonthDayTime.access$300(TzdbZoneRulesProvider.java:258)
      at tools.tzdb.TzdbZoneRulesProvider$RuleLine.parse(TzdbZoneRulesProvider.java:561)
      at tools.tzdb.TzdbZoneRulesProvider.load(TzdbZoneRulesProvider.java:200)
      ... 6 more


      FREQUENCY : always


            asajeev Anjana Sajeev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: