openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #08602
[Bug 1053160] Re: NullPointerException when calling java.util.TimeZone.getAvailableIDs()
I tried openjdk-6 and has the same problem. I downloaded jrockit and it
behaves. As the following transcript shows
marcelo@fenix:/tmp$ /usr/lib/jvm/java-1.6.0-openjdk-amd64/bin/java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-3ubuntu1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
marcelo@fenix:/tmp$ /usr/lib/jvm/java-1.6.0-openjdk-amd64/bin/javac
X.java
marcelo@fenix:/tmp$ /usr/lib/jvm/java-1.6.0-openjdk-amd64/bin/java X
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfoFile.java:785)
at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInfo.java:535)
at java.util.TimeZone.getAvailableIDs(TimeZone.java:516)
at X.<clinit>(X.java:2)
Could not find the main class: X. Program will exit.
marcelo@fenix:/tmp$ /home/marcelo/local/jrockit-jdk1.6.0_33-R28.2.4-4.1.0/bin/java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Oracle JRockit(R) (build R28.2.4-14-151097-1.6.0_33-20120618-1634-linux-x86_64, compiled mode)
marcelo@fenix:/tmp$ /home/marcelo/local/jrockit-jdk1.6.0_33-R28.2.4-4.1.0/bin/java X
marcelo@fenix:/tmp$
--
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1053160
Title:
NullPointerException when calling java.util.TimeZone.getAvailableIDs()
Status in “openjdk-7” package in Ubuntu:
New
Bug description:
On quantal beta.
java.util.TimeZone.getAvailableIDs() is throwing a NullPointerException....
Caused by: java.lang.NullPointerException
at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfoFile.java:790)
at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInfo.java:576)
at java.util.TimeZone.getAvailableIDs(TimeZone.java:588)
at X.<clinit>(X.java:2)
A lot of third party software suffers. This is quite serious.
Follows the expected behaviour (on precise)
==================================
marcelo@kaboola:/tmp$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
marcelo@kaboola:~$ dpkg -s openjdk-7-jre
Package: openjdk-7-jre
Status: install ok installed
Multi-Arch: same
Priority: optional
Section: java
Installed-Size: 690
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@xxxxxxxxxxxxxxxx>
Architecture: amd64
Source: openjdk-7
Version: 7u7-2.3.2-1ubuntu0.12.04.1
Provides: java-runtime, java2-runtime, java5-runtime, java6-runtime, java7-runtime
Depends: openjdk-7-jre-headless (= 7u7-2.3.2-1ubuntu0.12.04.1), libasound2 (>= 1.0.23), libc6 (>= 2.14), libcups2 (>= 1.4.0), libfontconfig1 (>= 2.8.0), libgdk-pixbuf2.0-0 (>= 2.22.0), libgif4 (>= 4.1.4), libglib2.0-0 (>= 2.16.0), libgtk2.0-0 (>= 2.8.0), libjpeg8 (>= 8c), libpango1.0-0 (>= 1.14.0), libpng12-0 (>= 1.2.13-4), libpulse0 (>= 1:0.99.1), libx11-6, libxext6, libxi6, libxrender1, libxtst6, libgnome2-0, libgnomevfs2-0, libgconf2-4, libxrandr2, libxinerama1, libgl1-mesa-glx, libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2)
Recommends: ttf-dejavu-extra
Suggests: icedtea-7-plugin
Conflicts: icedtea-gcjwebplugin (<< 1.0-1ubuntu4)
Description: OpenJDK Java runtime, using Hotspot JIT
Full Java runtime environment - needed for executing Java GUI and Webstart
programs. Using Hotspot JIT.
The packages are built using the IcedTea build support and patches
from the IcedTea project.
Homepage: http://openjdk.java.net/
Original-Maintainer: OpenJDK Team <openjdk@xxxxxxxxxxxxxxxxxxx>
marcelo@kaboola:/tmp$ cat > X.java
public class X {
static {java.util.TimeZone.getAvailableIDs();}
public static void main(String[] args) {}}
marcelo@kaboola:/tmp$ java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
marcelo@kaboola:/tmp$ javac X.java
marcelo@kaboola:/tmp$ java X
marcelo@kaboola:/tmp$
Now follows the actual behaviour (on quantal)
====================================
marcelo@fenix:/tmp$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu quantal (development branch)
Release: 12.10
Codename: quantal
marcelo@fenix:/tmp$ dpkg -s openjdk-7-jre
Package: openjdk-7-jre
Status: install ok installed
Priority: optional
Section: java
Installed-Size: 690
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@xxxxxxxxxxxxxxxx>
Architecture: amd64
Multi-Arch: same
Source: openjdk-7
Version: 7u7-2.3.2a-0ubuntu1
Provides: java-runtime, java2-runtime, java5-runtime, java6-runtime, java7-runtime
Depends: openjdk-7-jre-headless (= 7u7-2.3.2a-0ubuntu1), libasound2 (>= 1.0.16), libc6 (>= 2.14), libcups2 (>= 1.4.0), libfontconfig1 (>= 2.9.0), libgdk-pixbuf2.0-0 (>= 2.22.0), libgif4 (>= 4.1.4), libglib2.0-0 (>= 2.16.0), libgtk2.0-0 (>= 2.8.0), libjpeg8 (>= 8c), libpango1.0-0 (>= 1.14.0), libpng12-0 (>= 1.2.13-4), libpulse0 (>= 1:0.99.1), libx11-6, libxext6, libxi6, libxrender1, libxtst6, libxrandr2, libxinerama1, libgl1-mesa-glx, libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2)
Recommends: libgnome2-0, libgnomevfs2-0, libgconf2-4, ttf-dejavu-extra
Suggests: icedtea-7-plugin
Conflicts: icedtea-gcjwebplugin (<< 1.0-1ubuntu4)
Description: OpenJDK Java runtime, using Hotspot JIT
Full Java runtime environment - needed for executing Java GUI and Webstart
programs. Using Hotspot JIT.
The packages are built using the IcedTea build support and patches
from the IcedTea project.
Original-Maintainer: OpenJDK Team <openjdk@xxxxxxxxxxxxxxxxxxx>
Homepage: http://openjdk.java.net/
marcelo@fenix:/tmp$ java -version
java version "1.7.0_07"
OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-0ubuntu1)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
marcelo@fenix:/tmp$ cat X.java
public class X {
static {java.util.TimeZone.getAvailableIDs();}
public static void main(String[] args) {}}
marcelo@fenix:/tmp$ javac X.java
marcelo@fenix:/tmp$ java X
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfoFile.java:790)
at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInfo.java:576)
at java.util.TimeZone.getAvailableIDs(TimeZone.java:588)
at X.<clinit>(X.java:2)
marcelo@fenix:/tmp$
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1053160/+subscriptions
References