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

Sometimes TZUpdater Can't rename to "zi" folder

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

      Sometimes, on windows machines with anti-virus software running, I have seen the below error with the TZUpdater tool.
      [This happens only with JDK 6 and JDK7 where tzdata information is written to "zi" folder, unlike in JDK8 and above it is stored in a file named- tzdb.dat]

      Using https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz as source for tzdata bundle.
      java.home: D:\Tools\TZupdater\jdk1.6.0_191\jre
      java.vendor: Sun Microsystems Inc.
      java.version: 1.6.0_191
      tzupdater version 2.2.0-b01
      JRE tzdata version: tzdata2018c
      Downloaded file to C:\cygwin64\tmp\tz.tmp_6\tzdata.tar.gz
      javazic: warning: found last rules for Eire inconsistent.
      tzupdater tool would update with tzdata version: tzdata2018e
      Extracting files... done.
      Renaming D:\Tools\TZupdater\jdk1.6.0_191\jre\lib\zi to D:\Tools\TZupdater\jdk1.6.0_191\jre\lib\zi.tzdata2018c
      Renaming D:\Tools\TZupdater\jdk1.6.0_191\jre\lib\zi.tzdata2018e to D:\Tools\TZupdater\jdk1.6.0_191\jre\lib\zi
      failed.
      Can't rename D:\Tools\TZupdater\jdk1.6.0_191\jre\lib\zi.tzdata2018e to D:\Tools\TZupdater\jdk1.6.0_191\jre\lib\zi.
      Restoring the saved time zone data... done.
      Exception in thread "main" com.sun.tools.tzupdater.TzRuntimeException: com.sun.tools.tzupdater.TzRuntimeException: done.
              at com.sun.tools.tzupdater.TimezoneUpdater.main(TimezoneUpdater.java:655)
      Caused by: com.sun.tools.tzupdater.TzRuntimeException: done.
              at com.sun.tools.tzupdater.TimezoneUpdater.update(TimezoneUpdater.java:318)
              at com.sun.tools.tzupdater.TimezoneUpdater.run(TimezoneUpdater.java:258)
              at com.sun.tools.tzupdater.TimezoneUpdater.main(TimezoneUpdater.java:636)

        Attachments

          Activity

            People

            Assignee:
            rpatil Ramanand Patil
            Reporter:
            rpatil Ramanand Patil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: