Spring Batch
  1. Spring Batch
  2. BATCH-560

StepExecutionResourceProxy can not be used with FlatFileItemWriter

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical 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
        Dave Syer added a comment -

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

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

        Assume closed as resolved and released

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

          People

          • Assignee:
            Dave Syer
            Reporter:
            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