Null ref exception in java.utils -
02-21-2007
, 05:06 PM
We are getting NRE on one of ours Win 2000 workstation, with J# .NET
1.1 installed when trying to create instance of GregorianCalendar.
Object reference not set to an instance of an object. at
java.util.GregorianCalendar.__dateToTime()
at java.util.GregorianCalendar.computeTime()
at java.util.Calendar.getTimeInMillis()
at java.util.Calendar.getTime()
at java.util.GregorianCalendar.__initialize()
at java.util.GregorianCalendar..ctor(TimeZone zone, Locale aLocale)
at java.util.GregorianCalendar..ctor(TimeZone zone)
Here is a line that causing exception:
java.util.GregorianCalendar calendar = new
java.util.GregorianCalendar();
By looking in assembly code I was able find a cause of problem - both
TimeZone.getDefault() & TimeZone.getTimeZone("PST") returning nulls as
a result, and GregorianCalendar.__dateToTime dose not taking it to the
account. However, i was unable to figure out why i can't get any
timezone classes to be created - the call seems to end inside
vjsnativ.dll GetTimeZoneDetails.
any help appreciated,
ilya |