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

jackcess | codehero | 6 years 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 addRow to Table if it contains DateExt

    jackcess | 6 years ago | codehero
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.Number

    Root Cause Analysis

    1. java.lang.ClassCastException

      [Ljava.lang.Object; cannot be cast to java.lang.Number

      at com.healthmarketscience.jackcess.Column.toDateDouble()
    2. com.healthmarketscience.jackcess
      Table.addRow
      1. com.healthmarketscience.jackcess.Column.toDateDouble(Column.java:787)
      2. com.healthmarketscience.jackcess.Column.writeDateValue(Column.java:775)
      3. com.healthmarketscience.jackcess.Column.writeFixedLengthField(Column.java:1178)
      4. com.healthmarketscience.jackcess.Column.write(Column.java:1083)
      5. com.healthmarketscience.jackcess.Column.write(Column.java:1065)
      6. com.healthmarketscience.jackcess.Table.createRow(Table.java:1590)
      7. com.healthmarketscience.jackcess.Table.addRows(Table.java:1278)
      8. com.healthmarketscience.jackcess.Table.addRow(Table.java:1227)
      8 frames
    3. Unknown
      RowCopier.main
      1. RowCopier.main(RowCopier.java:118)
      1 frame