JRockit 7.0 - NPE in TimeZone.getTimeZone() on Linux (Doc ID 772345.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle JRockit / JRockit / 7
Information in this document applies to any platform

Goal

JRockit VM throws a NullPointerException in Linux and exits without starting the application. This is not reproducible
in all Linux machines and it is specific to some machines/configuration.

The exception is :
java.lang.ExceptionInInitializerError: java.lang.NullPointerException
        at java.util.TimeZone.getTimeZone(Ljava.lang.String;)Ljava.util.TimeZone;(Unknown Source)
        at java.util.TimeZone.getDefault()Ljava.util.TimeZone;(Unknown Source)
        at java.util.TimeZoneData.<clinit>()V(Unknown Source)
        at COM.jrockit.vm.RNI.toNative(I)I(Unknown Source)
        at COM.jrockit.vm.RNI.trampoline()V(Unknown Source)
        at java.util.TimeZoneData.get(Ljava.lang.String;)Ljava.util.TimeZone;(Unknown Source)
        at java.util.TimeZone.getTimeZone(Ljava.lang.String;)Ljava.util.TimeZone;(Unknown Source)
        at java.util.TimeZone.getDefault()Ljava.util.TimeZone;(Unknown Source)
        at java.util.GregorianCalendar.<init>()V(Unknown Source)
        at java.util.SimpleTimeZone.<clinit>()V(Unknown Source)
        at COM.jrockit.vm.RNI.toNative(I)I(Unknown Source)
        at COM.jrockit.vm.RNI.clinitTrampoline()V(Unknown Source)
        at java.util.TimeZone.<clinit>()V(Unknown Source)
        at COM.jrockit.vm.RNI.toNative(I)I(Unknown Source)
        at COM.jrockit.vm.RNI.trampoline()V(Unknown Source)
        at java.util.TimeZone.getDefault()Ljava.util.TimeZone;(Unknown Source)
        at java.text.SimpleDateFormat.initialize(Ljava.util.Locale;)V(Unknown Source)
        at java.text.SimpleDateFormat.<init>(IILjava.util.Locale;)V(Unknown Source)
        at java.text.DateFormat.get(IIILjava.util.Locale;)Ljava.text.DateFormat;(Unknown Source)
        at java.text.DateFormat.getDateTimeInstance(IILjava.util.Locale;)Ljava.text.DateFormat;(Unknown Source)
        at weblogic.nodemanager.NodeManagerHelper.<clinit>()V(Unknown Source)
        at COM.jrockit.vm.RNI.toNative(I)I(Unknown Source)
        at COM.jrockit.vm.RNI.trampoline()V(Unknown Source)
        at
weblogic.nodemanager.NodeManagerHelper.formatMessage(Ljava.lang.String;Ljava.lang.String;)Ljava.lang.String;(Unknown
Source)
        at weblogic.nodemanager.NodeManager.main([Ljava.lang.String;)V(Unknown Source)

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms