Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Problems migrating to 2.0.3

  1. #11
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    I can't see anything obviously wrong. You had more than 10 errors so the skip limit was busted. Those errors weren't consecutive or anything, so it looks like there was just a problem with the data?

  2. #12
    Join Date
    Jun 2008
    Location
    Argentina
    Posts
    9

    Default

    Hi Dave,
    Thank for answering again,
    That's not the problem because, if I set the skip limit in 1 , 10 or 1000 the the process coninues until the skip limit is reached.
    In this process, we check that the files showed on each record (at *.md5 files) exist.
    If all files are in the path , everything goes ok, but if I just remove only one, the process start looping until the skip limit is reached

    Regards,
    Mario

  3. #13
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    That wasn't what I saw in the logs you provided. It seemed like there there were many items processed in between failures, and a different number in each case. If the behaviour is as simple as you describe you should be able to create a proper test case. Then we can understand what is happening more easily.

  4. #14
    Join Date
    Jun 2008
    Location
    Argentina
    Posts
    9

    Wink I found some thing

    Ok, I'm going to prepare the test case.

    However, I found that if I use just one tokenizer the skip functionality works fine. (leaving the file to process just with the "rem" prefix for each record)


    Code:
    <beans:bean id="itemReaderParent" class="org.springframework.batch.item.file.MultiResourceItemReader" abstract="true">
    		<beans:property name="delegate">
    			<beans:bean class="org.springframework.batch.item.file.FlatFileItemReader">
    				<beans:property name="lineMapper">
    					<beans:bean class="org.springframework.batch.item.file.mapping.PatternMatchingCompositeLineMapper">
    						<beans:property name="tokenizers">
    							<beans:map>
    								<beans:entry key="rem*" value-ref="headerRecordTokenizer" />
    								<!--<beans:entry key="documentos*" value-ref="customRecordTokenizer" />
    							--></beans:map>
    						</beans:property>
    						<beans:property name="fieldSetMappers">
    							<beans:map>
    								<beans:entry key="rem*" value-ref="fieldSetMapper" />
    								<!--<beans:entry key="documentos*" value-ref="fieldSetMapper" />
    							--></beans:map>
    						</beans:property>
    					</beans:bean>
    				</beans:property>
    			</beans:bean>
    		</beans:property>
    	</beans:bean>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •