Hi, does anyone already used Grid Exporter Add-on - Vaadin Add-on Directory?
Word, Excel, PDF works like expected, but when i hit export CSV we get the error java.lang.ArrayStoreException: null
with no strack trace and and a warning
WARN 25072 --- [nio-8080-exec-6] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.http.converter.HttpMessageNotWritableException: No converter for [class java.util.LinkedHashMap] with preset Content-Type 'text/csv']
Does anyone has some input why this issue occur? Why is there a converter missing for LinkedHashMap? Its not used anywhere.
The columns keys are matching, so thats not the issue. Like mentioned, its only while trying to export CSV
GridExporter<PartItemEntity> 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("Ersatzteile");
exporter.setFileName("Ersatzteile_Tabelle" + new
SimpleDateFormat("yyyyddMM").format(Calendar.getInstance().getTime()));