TOPIC The workaround described in this article has been included in WebObjects 4.0.1. Apple recommends that all WebObjects 4.0 users upgrade to WebObjects 4.0.1. This obsolete article is provided here as a convenience to our customers who have not yet upgraded. DISCUSSION There are two known problems with the NSTimeZone object in the Windows NT release version of WebObjects 4.0. This document discusses how to recognize these problems and provides a workaround that corrects them. These problems do not affect the Solaris or HP-UX versions of WebObjects 4.0. The problem has also been corrected in WebObjects 4.0.1.
New NSGregorianDate with new NSTimeZone raises exception
NSGregorianDate getADate = new NSGregorianDate(1999, 12, 25, 12, 15, 00, new NSTimeZone("EST", true)); would generate the error: NSInvalidArgumentException: *** -[NSConcreteTimeZone _initWithJavaHandle:]:
timeZoneWithName returns nil value
RESOLUTION
:
$NEXT_ROOT/Library/Frameworks/Foundation/Resources/TimeZoneInfo/WindowsName.table Back up your old WindowsName.table file, then download the updated file from: Unzip this file, make sure the filename is WindowsName.table, then replace the original file with the version you've just downloaded. Your do not need to restart Windows NT for this workaround to take effect. |
Document Information | |
Product Area: | WebObjects |
Category: | WebObjects 4 |
Sub Category: | Patches |
Copyright © 2000 Apple Computer, Inc. All rights reserved.