Note: This bug is resolved in Jetty 8.1.8 v20121106).
Earlier this month, I filed Jetty bug report 393363 and offered a patch for a fatal error when the user.language
property is set to tr
(Turkish).
The use of toUpperCase() must be Locale insensitive. Otherwise, setTarget() will throw a NoSuchMethodException when the rules of the default Locale produce an unexpected result. For example, if user.language=tr, then the following would produce "setİnitialSize" rather than the expected "setInitialSize". This applies to current and past versions of Jetty.
This problem surfaced when a customer in Turkey could not get my company’s software to work on a Turkish-language OS. A work-around is to set the Java user.language
property to en
, but Jetty shouldn’t require this in order to work. The patch specifies an appropriate Locale
: