Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SimpleDateFormat ... Illegal pattern character

Brent HarlowJan 16 2008 — edited Jan 22 2008
I am using JHeadstart 10.1.3.2.51 and have a multi-lingual application. The date format has been set to dd-MMM-yyyy at the service level in the generator.

When I select any langauge from the following list (French, Hungarian, Dutch, Polish, Romanian) and select any page that contains a date field (display type = dateField) I am presented with a 500 internal server error
java.lang.IllegalArgumentException: Illegal pattern character 'j'
	at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:678)
	at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:497)
	at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:446)
	at oracle.adf.view.faces.convert.DateTimeConverter._getSimpleDateFormat(DateTimeConverter.java:1337)
	at oracle.adf.view.faces.convert.DateTimeConverter._getDateFormat(DateTimeConverter.java:1508)
	at oracle.adf.view.faces.convert.DateTimeConverter.getAsString(DateTimeConverter.java:326)
.........
The above example is French. Other languages complain about different characters. What do I need to do to allow dates to be displayed in these languages ?

Cheers,

Brent
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 19 2008
Added on Jan 16 2008
2 comments
5,851 views