Hi guys, I'm a new developer in spring batch and when I execute the test in my application I get an exception. java.lang.ClassCastException: java.util.ArrayList the error appears when I terminate the execute the ItemReader and pass to the ItemWrite of package import org.springframework.batch.item.ItemWriter;
my class Reader:
public class CategoriaTarifariaItemReader implements ItemReader<List<CategoriaTarifaria>>{
public List<CategoriaTarifaria> read() throws Exception,
UnexpectedInputException, ParseException {
List<CategoriaTarifaria> categoriaTarifas = obterDadosCategoriaTarifa(3);
return categoriaTarifas;
}
}
Thank's for your attention!!


Reply With Quote