HighTechTalks DotNet Forums  

Null ref exception in java.utils

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss Null ref exception in java.utils in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
iandreyev@gmail.com
 
Posts: n/a

Default 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


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.