SYMPTOM
Enterprise manager service can not be started or LIST ALL DATA LOADS command fetched wrong timestamp in Strategy Enterprise Manager 10.x
Below issues might be observed.
1.EM service can not be started using ./mstrctl -s EMService start and returned error “Illegal execution time”.
[Logger:MAEntMgr][Thread:Thread-2][Level:ERROR] javax.management.RuntimeMBeanException: java.lang.IllegalArgumentException: Illegal execution time.
Stack Trace: com.Strategy.maem.exceptions.EMException: javax.management.RuntimeMBeanException: java.lang.IllegalArgumentException: Illegal execution time.
at com.Strategy.maem.remote.EMRemoteImpl.invokeFunction(Unknown Source)
When checking table EM_CONFIGURATION in EM database, DateBegin, DateEnd, StartHour or EndHour in default enabled data load is in non-English locale.
Here is a sample in Japanese locale:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><EMSchedule><ScheduleName>PROD_DATALOAD</ScheduleName><GUID>7D72B81515EDC66FA4F1677201194774</GUID><DateBegin>日 10 01 00:00:00 UTC 02017</DateBegin><DateEnd></DateEnd><Operation><Command>1</Command><Command>5</Command><Command>3</Command><ProjectList><MetadataGUID>49F63B2211E3994874D50080EF457C59</MetadataGUID><ProjectGUID>8BB5A8DA11E3A97A02FF0080EFF53855</ProjectGUID><ProjectGUID>87DBD2D611E7A730A5430080EFF5C2E5</ProjectGUID></ProjectList><Options><Options>0</Options></Options></Operation><ScheduleRecurrence><StartHour>木 1 01 15:00:00 UTC 01970</StartHour><EndHour></EndHour><RecurrenceMins>0</RecurrenceMins><ExecutionDays>-******</ExecutionDays></ScheduleRecurrence><ScheduleType>Weekly</ScheduleType><Enabled>1</Enabled></EMSchedule>
2.EM service can be started. However using LIST ALL DATA LOADS command, unreadable timestamp is fetched as below:
Next execution time 292278994/08/17 16:12:55 JST
Start Date 292278994/08/17 16:12:55 JST
End Date 292278994/08/17 16:12:55 JST
CAUSEProbably it might be caused by locale change on the machine with Strategy Enterprise Manager component installed.
Especially Enterprise Manager has been used for a while and due to certain reason, the locale to run EM service was changed.
ACTIONEnsure to use correct locale to start Enterprise Manager service corresponding to that when the data load is defined.
Below command can be used to ensure using expected locale to start EM service.
LANG=xxxxx ./mstrctl -s EMService start
E.g. for Japanese locale
LANG=ja_JP.UTF-8 ./mstrctl -s EMService start
KB441414