Article ID: 818431 - View products that this article applies to.
You 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:
Note You receive this error message when you try to create a DateFormat instance by using any of the following methods:
java.lang.IllegalArgumentException: Could not create FormatInfo for Locale
This 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.
To 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.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Steps to Reproduce the Behavior
For more information about language support constants, visit the following Microsoft Web site:
Article ID: 818431 - Last Review: May 16, 2007 - Revision: 1.3
Contact us for more help