Uploaded image for project: 'Spring Batch'
  1. Spring Batch
  2. BATCH-560

StepExecutionResourceProxy can not be used with FlatFileItemWriter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1
    • Component/s: Infrastructure
    • Labels:
      None
    • Environment:
      Windows XP sp2, tomcat 5.5.26

      Description

      StepExecutionResourceProxy can work with FlatFileItemReader, but FlatFileItemWriter. It seems FlatFileItemWriter try to get the real file during its afterPropertiesSet(), which means before StepExecutionResourceProxy.beforeStep() get called. Hence, the "The delegate resource has not been initialised..." exception always get thrown by StepExecutionResourceProxy.

        Activity

        Hide
        david_syer Dave Syer added a comment -

        Moved exists() and writable() tests to open().

        Show
        david_syer Dave Syer added a comment - Moved exists() and writable() tests to open().
        Hide
        david_syer Dave Syer added a comment -

        Assume closed as resolved and released

        Show
        david_syer Dave Syer added a comment - Assume closed as resolved and released

          People

          • Assignee:
            david_syer Dave Syer
            Reporter:
            itsliang C.L. Chang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 0.5h
              0.5h
              Remaining:
              Remaining Estimate - 0.5h
              0.5h
              Logged:
              Time Spent - Not Specified
              Not Specified