Hi all, i got a quesiton here
i am using spring batch 1.1.2. This is my step configuration
PHP Code:<bean id="helloStep"
class="org.springframework.batch.core.step.item.SkipLimitStepFactoryBean">
<property name="transactionManager" ref="transactionManager" />
<property name="jobRepository" ref="dbJobRepository" />
<property name="itemReader" ref="validatingItemReader" />
<property name="itemWriter" ref="fileItemWriter" />
<property name="commitInterval" value="2147483647" />
<property name="streams" ref="itemReader" />
<property name="skipLimit" value="2147483647" />
<property name="skippableExceptionClasses" value="org.springframework.batch.item.validator.ValidationException"/>
</bean>
And this is my mapper
PHP Code:public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
System.out.println("mapping " + rowNum);
throw new NullPointerException();
//return str;
}
Basically when i execute this, the step seems to retry the MapRow for the same row indefinitely. I don't know if this is the expected behavior in case of runtimeexception ?. I try to set the retry limit to 0 but still the same
any help is appreciated
regards
ballistic_realm


Reply With Quote
