Uploaded image for project: 'Spring Batch Admin'
  1. Spring Batch Admin
  2. BATCHADM-86

PagingQueryProvider exception under Derby

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.2.0.M1
    • Component/s: Manager
    • Labels:
      None

      Description

      Spring Batch Admin org.springframework.batch.admin.service.JdbcSearchableStepExecutionDao.findStepExecutions() throws :
      org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT * FROM ( SELECT STEP_EXECUTION_ID, STEP_NAME, START_TIME, END_TIME, STATUS, COMMIT_COUNT, READ_COUNT, FILTER_COUNT, WRITE_COUNT, EXIT_CODE, EXIT_MESSAGE, READ_SKIP_COUNT, WRITE_SKIP_COUNT, PROCESS_SKIP_COUNT, ROLLBACK_COUNT, LAST_UPDATED, VERSION, ROW_NUMBER() OVER () AS ROW_NUMBER FROM BATCH_STEP_EXECUTION S, BATCH_JOB_EXECUTION J, BATCH_JOB_INSTANCE I WHERE JOB_NAME = ? AND STEP_NAME = ? AND S.JOB_EXECUTION_ID = J.JOB_EXECUTION_ID AND J.JOB_INSTANCE_ID = I.JOB_INSTANCE_ID) AS TMP_SUB WHERE TMP_SUB.ROW_NUMBER <= 1000]; nested exception is java.sql.SQLException: Column name 'START_TIME' is in more than one table in the FROM list.

      Looks like this query is being generated by the PagingQueryProvider implementation.

        Attachments

          Activity

            People

            • Assignee:
              david_syer Dave Syer
              Reporter:
              nigel.d.watson Nigel Watson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: