Sidebar

When migrating QIE to a new machine and IllegalArgumentException: Illegal pattern character 'Y'

0 votes
447 views
asked Nov 13, 2013 by rich-c-2789 (16,630 points)
When migrating QIE or a channel to a new machine I get and IllegalArgumentException: Illegal pattern character 'Y' in my channel that was working fine on the original machine.

1 Answer

0 votes
 
Best answer

This is due to downgrading the JVM from Java7 to Java6. 

Java 7 added support for three additional format letters that were not available in previous versions.

Y - Week Year (Not that same as year.   See note.) 

Z - Time Zone (RFC 822 time zone)

X - Time Zone (ISO 8601 time zone)

Note: A "week year" is not the same as "year".  A "week year" is defined by the year in which the week started.  For example 2010-12-27 returns 2011.  So, if you are using "Y" make sure that is what you want.  Otherwise, you probably need to change it to "y".

See the java docs for more:

Java6:

http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html

Java7:

http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

 

answered Nov 13, 2013 by rich-c-2789 (16,630 points)
selected Dec 17, 2013 by ron-s-6919
...