2017-10-18 50 views
0

我使用liquibase按照Bert R recipe設置石英數據庫表。石英,設置postgres模式,JOB_DATA應該是什麼?

postgres的JOB_DATA列的正確類型是什麼?

原始誤差是

Caused by: org.quartz.JobPersistenceException: Couldn't retrieve trigger: 2 
at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1538) 
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2 
at org.postgresql.util.PGbytea.toBytes(PGbytea.java:76) 

基座誤差是在PostgreSQlDelegate.java試圖讀取從qrtz_triggers表JOB_DATA列。此列中只有\ x。

我已經改變了上述liquibase文件,以改變從BLOB到BYTEA類型,因爲我是得到一個錯誤

column "job_data" is of type oid but expression is of type bytea 

石英屬性文件包括用於所述作業存儲

# Job Store 
org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX 
org.quartz.jobStore.driverDelegateClass = 
org.quartz.impl.jdbcjobstore.PostgreSQLDelegate 

回答