tracker issue : CF-3514766

select a category, or use search below
(searches all categories and all time range)
Title:

Problem adding Scheduled Task on system with different Format and Display settings that runs on Java 7

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Daniel Sundling / Daniel Sundling (DSundling)

Created: 03/06/2013

Components: Scheduler

Versions: 10.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: Final / 290480

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 1

Listed in the version 11.0.03.292480 Issues Fixed doc
Problem Description:
On a system with different Display and Format locales it is impossible to add a new task when using Java 7. It used to work using Java 6.
More information available here: http://www.oracle.com/technetwork/java/javase/compatibility-417013.html#incompatibilities

When upgrading to Java 7 on a system with different Display and Format locales and there are scheduled tasks available, the administrator page throws an error saying "The Cron service is not available".

This problem is also present on ColdFusion 9.0.1.

Steps to Reproduce:
1. Go to "Region and Language", tab "Formats". Choose "Swedish (Sweden)". Tab "Keyboards and Languages", Choose a Display Language that uses different formatting rules. I use "English (English)". Restart system.

2. Create a new Scheduled task and enter:
- Task name = "Test"
- Hours = 1
- Start time = "12:00 AM"
- End time = "11:59 PM"
- URL = "http://localhost/"

3. Click submit

Actual Result:


Expected Result:
Save should be successful.

Any Workarounds:
By adding: "-Dsun.locale.formatasdefault=true" to the JVM Arguments it works as it did in Java 6.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3514766

External Customer Info:
External Company:  
External Customer Name: DSundling
External Customer Email:  
External Test Config: My Hardware and Environment details:

Windows 7 64bit English with Swedish formatting

Attachments:

Comments:

Not able to reproduce .Need more information.
Comment by Suchika S.
16088 | September 27, 2013 04:13:35 AM GMT
I have investigated the behaviour a bit further and have realized that I missed a few steps. The step-by-step above only applied the changes to the current user. However, the coldfusion process runs under the SYSTEM account. The correct steps should be: 1. - Open Control Panel. - Go to "Region and Language". - Tab "Formats". Choose "Swedish (Sweden)". - Tab "Keyboards and Languages", Choose a Display Language that uses different formatting rules. I use "English (English)". - Tab "Administrative", click on "Copy settings". Check "Welcome screen and system accounts" under "Copy your current settings to:". Click "Ok". - Restart system just to make sure all settings are applied. 2. Install ColdFusion 10 if not already installed. 3. Create a new Scheduled task and enter: - Task name = "Test" - One-Time at = Leave with defaults - URL = "http://localhost/" - Click "Submit" Expected Result: Save should be successful. Actual Result: An error occured scheduling the task. "hh:mm:ss fm/em" is an invalid date or time string. There was a change in Java 7 that modified the behaviour of the Locale.getDefault() method. Java 7 now handles the user formatting locale and user interface locale separately. Previously the method Locale.getDefault() returned the "format locale" but starting from Java 7 the "user interface locale" is returned. Read more: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4700857 http://blog.ej-technologies.com/2011/12/default-locale-changes-in-java-7.html
Comment by External U.
16089 | November 05, 2013 06:29:23 PM GMT
Thanks for the information. Bug is being reproduced.
Comment by Suchika S.
16090 | November 14, 2013 12:24:11 AM GMT
I'm having the same problem! Located in Finland. No way to change the field values as these are controlled by the server and calendar controls.
Vote by External U.
16094 | February 21, 2014 03:06:12 AM GMT
Same problem here. Some posts on the web about editing the JVM arguments.
Comment by External U.
16091 | February 21, 2014 03:06:59 AM GMT
Seems this problem is also on version 10. I guess there is no hope for a fix?
Comment by External U.
16092 | February 21, 2014 03:08:33 AM GMT
There is a change in which JAVA 7 handles locales. For backward compatibility we can use this system argument : -Dsun.locale.formatasdefault=true Add this in jvm.config, restart the server and issue should get resolved
Comment by Uday O.
16093 | March 12, 2014 07:54:34 AM GMT