How to solve the runtime exception while converting csv to bean using opencsv for blank csv file
问题 Requirement: I have two csv file input.csv and output.csv The goal is to read the data rows from input.csv, then do some processing on it and if the processing fails then write the failed row of csv to output.csv Initially input.csv have some data and output.csv is blank. Here is the main class file: import com.opencsv.bean.ColumnPositionMappingStrategy; import com.opencsv.bean.CsvToBean; import com.opencsv.bean.CsvToBeanBuilder; import com.opencsv.bean.StatefulBeanToCsv; import com.opencsv