Operating System - HP-UX
1832541 Members
5942 Online
110043 Solutions
New Discussion

Timezone Update with TZUPDATER-2.0.0 does not work properly

 
OAKK
Occasional Visitor

Timezone Update with TZUPDATER-2.0.0 does not work properly

Hey all,
I'm trying to update timezone configuration of a HP-Unix machine with tzupdater.jar with tzdata2016g version. I successfully, update JRE.  Output of command that i executed :
 
COMMAND:
/
opt/java6/jre/bin/IA64N/java -jar /tmp/Timezone/tzupdater-2.0.0/tzupdater.jar -l file:///tmp/Timezone/tzdata2016g.tar.gz -v

OUTPUT:
java
.home: /opt/java6/jre java.vendor: Hewlett-Packard Co.java.version: 1.6.0.12 Downloaded file to /var/tmp/tz.tmp_1/tzdata.tar.gz JRE tzdata version: tzdata2016g tzupdater tool would update with tzdata version: tzdata2016gEmbedded tzmappings data version: tzdata2016gDownloaded file to /var/tmp/tz.tmp_1/sha512hash JRE has the same version as the tzupdater provided one ({0}). The tzmappings file requires updateUpdating tzmappings file... done. Renaming tzmappings file... done.done. Extracting files... done. Renaming /opt/java6/jre/lib/zi to /opt/java6/jre/lib/zi.tzdata2016g_4Renaming /opt/java6/jre/lib/zi.tzdata2016g to /opt/java6/jre/lib/ziValidating for : tzdata2016gValidation complete JRE updated to version : tzdata2016g

In order to verify the installation was successful, I execute the below command to check version.

COMMAND:
/
opt/java6/jre/bin/IA64N/java -jar /tmp/Timezone/tzupdater-2.0.0/tzupdater.jar -V

Output:

tzupdater version 2.0.0-b03
JRE tzdata version: tzdata2016g
tzupdater tool would update with tzdata version: tzdata2015a 
Embedded tzmappings data version: tzdata2015a

As you can see, embedded version and JRE tzdata version mismatch. I assume date-time problem occurs because of that mismatch. Because when i check the JDK's time with a dummy checktime.class, it returns wrong output (1 hour off).

What's the way to update embedded timezone? Or why this problem occurs?

Any help?

Thank you.

4 REPLIES 4
Steven Schweda
Honored Contributor

Re: Timezone Update with TZUPDATER-2.0.0 does not work properly

> [...] a HP-Unix machine [...]

   Not a very detailed description of anything.

      uname -a

   I seldom use Java, and never have tried to do anything with its
time-zone info, so I know nothing, but...

> tzupdater version 2.0.0-b03

   My Web search for "tzupdater.jar" led me to:

http://www.oracle.com/technetwork/java/javase/tzupdater-readme-136440.html

which says, among other things, that the current version of this thing
is 2.1.1, and the list of bug fixes includes things like:

      JDK-8166928 : TZupdater failing with tzdata2016g release due to
      missing version information

      JDK-8151879 : TZupdater not able to update with tzdata2016b
      release

and so on.  So, knowing nothing, I'd fetch and try a current version of
this tool, and see if it does any better than what you're using (which
to me looks obsolete and/or buggy).  But what do I know?

OAKK
Occasional Visitor

Re: Timezone Update with TZUPDATER-2.0.0 does not work properly

Hey Steven Schweda,

Thanx for your reply, i forgot to write output of uname -a.

It's -> HP-UX tdasapp2 B.11.31 U ia64 3929827490 unlimited-user license

The tzupdater.jar file has to be a HP product, so the one I used is below.

https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXJAVADST

I tired to download another JRE (Itanium JRE tar 6.0.33 - March 2017 (Z7550-63390_jre6_16033_ia.tar.Z), and patch it with tzupdater-2.0.0, but this time I got NullPointerException.

/u01/weblogic/java/jre/bin/IA64N/java -jar tzupdater.jar -l file:///tmp/Timezone/tzdata2016g.tar.gz -v


java.home: /u01/weblogic/java/jre
java.vendor: Hewlett Packard Enterprise
java.version: 1.6.0.33
Downloaded file to /var/tmp/tz.tmp_2/tzdata.tar.gz
java.lang.NullPointerException
Exception in thread "main" com.sun.tools.tzupdater.TzRuntimeException: java.lang.NullPointerException
at com.sun.tools.tzupdater.TimezoneUpdater.main(TimezoneUpdater.java:1305)
Caused by: java.lang.NullPointerException
at com.sun.tools.tzupdater.TimezoneUpdater.run(TimezoneUpdater.java:258)
at com.sun.tools.tzupdater.TimezoneUpdater.main(TimezoneUpdater.java:1286)

Could not find any solution yet!

Thanx.

Steven Schweda
Honored Contributor

Re: Timezone Update with TZUPDATER-2.0.0 does not work properly

> [...] I know nothing, but...

   Still true.

> The tzupdater.jar file has to be a HP product, so the one I used is
> below.

   And that's the page which says:?

      Note: To receive any specific tzupdater version other than the
      version listed below, please contact the HPE Response Center.

https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXJAVASUPPORT

   If you're paying for HPE support, then ...

Rosa01
Occasional Contributor

Re: Timezone Update with TZUPDATER-2.0.0

Hi,

I ran on HP UX and following instruction to update the tzdata

/ opt / java6 / bin / IA64N / java -jar tzupdater.jar --verbose -l file: ///tmp/timezone/tzdata2017b.tar.gz

 The result was the following:

java.home: / opt / java6 / jre
java.vendor: Hewlett-Packard Co.
java.version: 1.6.0.20
Downloaded file to /var/tmp/tz.tmp/tzdata.tar.gz
JRE tzdata version: tzdata2013b
tzupdater tool would update with tzdata version: tzdataunknown
Embedded tzmappings data version: tzdataunknown
Downloaded file to /var/tmp/tz.tmp/sha512hash
The tzmappings file requires update
Updating tzmappings file ... done.
Renaming tzmappings file ... done.
done
Extracting files ... done.
Renaming / opt / java6 / jre / lib / zi to /opt/java6/jre/lib/zi.tzdata2013b
Renaming /opt/java6/jre/lib/zi.tzdataunknown to / opt / java6 / jre / lib / zi
Validating for: tzdataunknown
Validation complete
JRE updated to version: tzdataunknown
You have new mail in / var / mail / root
tmd006: /tmp/timezone/tzupdater-2.0.0> / opt / java6 / jre / bin / IA64N / java -jar /tmp/timezone/tzupdater-2.0.0/tzupdater.jar -V
tzupdater version 2.0.0-b03
JRE tzdata version: tzdataunknown
tzupdater tool would update with tzdata version: tzdata2015a
Embedded tzmappings data version: tzdata2015a
tmd006: /tmp/timezone/tzupdater-2.0.0>

then run swlist -s /tmp/Itanium_JDK_6.0.31_September_2016_Z7550-63360_jdk6_16031_ia.depot to correct the JRE tzdata version: tzdataunknown

 
When I execute the following instruction

/ opt / java6 / jre / bin / IA64N / java -jar /tmp/Timezone/tzupdater-2.0.0/tzupdater.jar -V
the result is :

# / opt / java6 / jre / bin / IA64N / java -jar /tmp/timezone/tzupdater-2.0.0/tzupdater.jar -V
tzupdater version 2.0.0-b03
java.lang.NullPointerException
Exception in thread "main" com.sun.tools.tzupdater.TzRuntimeException: java.lang.NullPointerException
        at com.sun.tools.tzupdater.TimezoneUpdater.main (TimezoneUpdater.java:1305)
Caused by: java.lang.NullPointerException
        at com.sun.tools.tzupdater.TimezoneUpdater.run (TimezoneUpdater.java:258)
        at com.sun.tools.tzupdater.TimezoneUpdater.main (TimezoneUpdater.java:1286)

 Please, can you tell me how to fix the error?