java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

Stack Overflow | user2830372 | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Cannot write to CSV using Hibernate with OpenCSV. Class cast exception

    Stack Overflow | 10 months ago | user2830372
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

    Root Cause Analysis

    1. java.lang.ClassCastException

      [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

      at au.com.bytecode.opencsv.CSVWriter.writeAll()
    2. opencsv
      CSVWriter.writeAll
      1. au.com.bytecode.opencsv.CSVWriter.writeAll(Unknown Source)
      1 frame
    3. web.action
      TestReportToCsv2.main
      1. web.action.TestReportToCsv2.shipmTest(TestReportToCsv2.java:161)
      2. web.action.TestReportToCsv2.main(TestReportToCsv2.java:73)
      2 frames