DB:PostgreSQL的9.2PostgreSQL的 - 石英JDBC-JobStoreTX - getTriggersForJob - ArrayIndexOutOfBoundsException異常
託管:Openshift
配置:
org.quartz.scheduler.instanceName = OneTimeJob
org.quartz.threadPool.threadCount = 3
org.quartz.jobStore.useProperties = true
org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true
org.quartz.jobStore.misfireThreshold: 60000
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
org.quartz.jobStore.dataSource = Name
org.quartz.dataSource.Name.connectionProvider.class = com.name.scheduler.DBConnectionProvider
堆棧跟蹤:
一個SQLException被激怒以下失敗: java.lang.ArrayIndexOutOfBoundsExc eption at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65)at com.mchange.v2.sql .SqlUtils.toSQLException(SqlUtils.java:62)at com.mchange.v2.c3p0.impl.NewPooledConnection.handleThrowable(NewPooledConnection.java:369) at com.mchange.v2.c3p0.impl.NewProxyResultSet.getBytes( NewProxyResultSet.java:2795) 在 org.quartz.impl.jdbcjobstore.PostgreSQLDelegate.getJobDataFromBlob(PostgreSQLDelegate.java:88) 在 org.quartz.impl.jdbcjobstore.StdJDBCDelegate.getMapFromProperties(StdJDBCDelegate.java:881) 在 org.quartz.impl.jdbcjobstore.StdJDBCDelega te.selectTrigger(StdJDBCDelegate.java:1778) 在 org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectTriggersForJob(StdJDBCDelegate.java:1704) 在 org.quartz.impl.jdbcjobstore.JobStoreSupport.getTriggersForJob(JobStoreSupport.java: 2141)
引起:在在 org.postgresql.jdbc2.AbstractJdbc2ResultSet.getBytes(AbstractJdbc2ResultSet.java org.postgresql.util.PGbytea.toBytes(PGbytea.java:76)2:java.lang.ArrayIndexOutOfBoundsException: 2271) at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getBytes(AbstractJdbc2ResultSet.java:2451) at com.mchange.v2.c3p0.impl.NewP roxyResultSet.getBytes(NewProxyResultSet.java:2781)
PS:工程與postgres的9.4
SQLException包裝ArrayIndexOutOfBoundsException。你可以顯示那個包裝異常的堆棧跟蹤('e.getCause()。printStackTrace()') – wero
@wero添加了有問題的堆棧跟蹤。 –
@RajdeepSiddhapura:標題誤導這與Quartz有什麼關係? – Geek