org.supercsv.exception.SuperCsvCellProcessorException: ' BI' could not be parsed as a enum of type test.supercsv.Sexuality processor=org.supercsv.cellprocessor.ParseEnum context={lineNo=2, rowNo=2, columnNo=5, rowSource=[1, Pankaj Kumar, CEO, 5,000USD, BI]}

Stack Overflow | Chiggiddi | 4 months ago
  1. 0

    ParseEnum (method) cannot parse/read String as enum from .csv file in SuperCSV (Java)

    Stack Overflow | 4 months ago | Chiggiddi
    org.supercsv.exception.SuperCsvCellProcessorException: ' BI' could not be parsed as a enum of type test.supercsv.Sexuality processor=org.supercsv.cellprocessor.ParseEnum context={lineNo=2, rowNo=2, columnNo=5, rowSource=[1, Pankaj Kumar, CEO, 5,000USD, BI]}

    Root Cause Analysis

    1. org.supercsv.exception.SuperCsvCellProcessorException

      ' BI' could not be parsed as a enum of type test.supercsv.Sexuality processor=org.supercsv.cellprocessor.ParseEnum context={lineNo=2, rowNo=2, columnNo=5, rowSource=[1, Pankaj Kumar, CEO, 5,000USD, BI]}

      at org.supercsv.cellprocessor.ParseEnum.execute()
    2. Super CSV Core
      CsvBeanReader.read
      1. org.supercsv.cellprocessor.ParseEnum.execute(ParseEnum.java:146)
      2. org.supercsv.util.Util.executeCellProcessors(Util.java:93)
      3. org.supercsv.io.AbstractCsvReader.executeProcessors(AbstractCsvReader.java:203)
      4. org.supercsv.io.CsvBeanReader.readIntoBean(CsvBeanReader.java:261)
      5. org.supercsv.io.CsvBeanReader.read(CsvBeanReader.java:190)
      5 frames
    3. test.supercsv
      Reading.main
      1. test.supercsv.Reading.readWithCsvBeanReader(Reading.java:35)
      2. test.supercsv.Reading.main(Reading.java:24)
      2 frames