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

TZUpdater tool fails to print version info for the users without write persmisson

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 2.2.0
    • None
    • tools
    • None
    • b01

      Users without write permission have seen the AccessDeniedException while executing the -V (--version) command of the TZUpdater tool.
      The exception on windows looks like this:
      java -jar tzupdater.jar -V
      tzupdater version 2.2.0-b01
      JRE tzdata version: tzdata2018c
      Failed: java.nio.file.AccessDeniedException: C:\Java\testTZUpdater\jdk1.8.0_171\jre\lib\tzdb.dat.dynamic
      java.nio.file.AccessDeniedException: C:\Java\testTZUpdater\jdk1.8.0_171\jre\lib\tzdb.dat.dynamic
              at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
              at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
              at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
              at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
              at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
              at java.nio.file.Files.newOutputStream(Files.java:216)
              at tools.tzdb.TzdbZoneRulesCompiler.outputFile(TzdbZoneRulesCompiler.java:228)
              at tools.tzdb.TzdbZoneRulesCompiler.compile(TzdbZoneRulesCompiler.java:201)
              at tools.tzdb.TzdbZoneRulesCompiler.<init>(TzdbZoneRulesCompiler.java:310)
              at com.sun.tools.tzupdater.ExternalModule.compileToJSRBinary(ExternalModule.java:176)
              at com.sun.tools.tzupdater.TimezoneUpdater.run(TimezoneUpdater.java:240)
              at com.sun.tools.tzupdater.TimezoneUpdater.main(TimezoneUpdater.java:636)

            rpatil Ramanand Patil (Inactive)
            rpatil Ramanand Patil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: