BUG: "java.lang.IllegalArgumentException" Error Message When You Use the DateFormat and NumberFormat Instance Methods (818431)
The information in this article applies to:
- Microsoft Visual J# .NET 2002
SYMPTOMSYou are working in a multilanguage environment, such as Arabic, Belarusian, Bulgarian,
Catalan, Czech, Danish, or German. When you call the DateFormat instance method or the NumberFormat instance method, you receive the following exception error message: java.lang.IllegalArgumentException: Could not create
FormatInfo for Locale Note You receive this error message
when you try to create a DateFormat instance by using any of the following
methods:
- getDateInstance
- getTimeInstance
- getDateTimeInstance
You receive this error message
when you try to create a NumberFormat instance by using one of the following methods:
- getInstance
- getPercentInstance
- getCurrencyInstance
CAUSEThis problem occurs because DateFormat and NumberFormat are not installed for all locales. When you use a locale that does not have DateFormat and NumberFormat installed, the methods that are listed in the "Symptoms" section cannot retrieve
region-specific format information.RESOLUTIONTo resolve this problem, use a locale that has
NumberFormat and DateFormat installed. You can use the NumberFormat.getAvailableLocales method or the DateFormat.getAvailableLocales method to get the set of locales that have NumberFormat and
DateFormat installed.STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
REFERENCESFor more information about language support constants, visit
the following Microsoft Web site:
Modification Type: | Minor | Last Reviewed: | 8/15/2005 |
---|
Keywords: | kberrmsg kbLocalization kbformat kbUnicode kbJava kbDateTime kbbug KB818431 kbAudDeveloper |
---|
|