Skip to content

java.lang.ArrayStoreException #170

@NicoDevX

Description

@NicoDevX

Describe the bug

When exporting a CSV from a Grid we receive a java.lang.ArrayStoreException: null. There is no other stacktrace available

Expected behavior

CSV should be work like Excel, Word, PDF which are working fine.

Minimal reproducible example

GridExporter<ItemRecord> exporter = GridExporter.createFor(grid); exporter.setExportColumn(grid.getColumnByKey("Pos"), true); exporter.setExportColumn(grid.getColumnByKey("Artnr"), true); exporter.setExportColumn(grid.getColumnByKey("Artikelbezeichnung"), true); exporter.setExportColumn(grid.getColumnByKey("Menge"), true); exporter.setExportColumn(grid.getColumnByKey("Preis"), true); exporter.setExportColumn(grid.getColumnByKey("Status"), false); HashMap<String, String> placeholders = new HashMap<>(); placeholders.put("${date}", new SimpleDateFormat().format(Calendar.getInstance().getTime())); exporter.setAdditionalPlaceHolders(placeholders); exporter.setTitle("Tabelle"); exporter.setFileName("Tabelle" + new SimpleDateFormat("yyyyddMM").format(Calendar.getInstance().getTime()));

Add-on Version

2.5.1

Vaadin Version

24.6.7

Additional information

The Type in List are records. Maybe this is a problem? But Word etc works with that setup

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions