Last active
August 29, 2015 14:08
-
-
Save yongchun/f485250bc2bffce7ccfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-11-02 16:10:49,120 - vst_passport - DEBUG [org.springframework.jdbc.support.SQLErrorCodesFactory] - <Database product name cached for DataSource [org.apache.commons.dbcp.BasicDataSource@70dd8904]: name is 'Oracle'> | |
2014-11-02 16:10:49,120 - vst_passport - DEBUG [org.springframework.jdbc.support.SQLErrorCodesFactory] - <SQL error codes for 'Oracle' found> | |
2014-11-02 16:10:49,121 - vst_passport - DEBUG [org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator] - <Translating SQLException with SQL state '23000', error code '1', message [ORA-00001: unique constraint (LVMAMA_VER.SYS_C0015594) violated | |
]; SQL was [] for task [ | |
### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constrain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Parsing logic invoked by the constructor. | |
/** | |
* Parse the given pattern expression. | |
*/ | |
private void parse(String expression) throws IllegalArgumentException { | |
String[] fields = StringUtils.tokenizeToStringArray(expression, " "); | |
if (fields.length != 6) { | |
throw new IllegalArgumentException(String.format("" | |
+ "cron expression must consist of 6 fields (found %d in %s)", fields.length, expression)); | |
} | |
setNumberHits(this.seconds, fields[0], 0, 60); | |
setNumberHits(this.minutes, fields[1], 0, 60); | |
setNumberHits(this.hours, fields[2], 0, 24); | |
setDaysOfMonth(this.daysOfMonth, fields[3]); | |
setMonths(this.months, fields[4]); | |
setDays(this.daysOfWeek, replaceOrdinals(fields[5], "SUN,MON,TUE,WED,THU,FRI,SAT"), 8); | |
if (this.daysOfWeek.get(7)) { | |
// Sunday can be represented as 0 or 7 | |
this.daysOfWeek.set(0); | |
this.daysOfWeek.clear(7); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment