Open drewharvey opened 2 weeks ago
Hi @drewharvey ! ... thanks for the issue! When one of the downloaded files is 0 bytes, that usually mean that a problem happened when generating the file. We have to fix this known issue (the exception logging is not correctly implemented), but can you add a breakpoint and debug this method to see if the generation happens correctly or there is an exception being hidden?
Problem occurs here: https://github.com/FlowingCode/GridExporterAddon/blob/ec5d5ad7bda3d1509a95c3af7a2daac17b3c7521/src/main/java/com/flowingcode/vaadin/addons/gridexporter/PdfInputStreamFactory.java#L62
Here the stacktrace:
Exception in thread "Thread-83" java.lang.NoClassDefFoundError: javax/xml/bind/ValidationEventHandler
at com.flowingcode.vaadin.addons.gridexporter.PdfInputStreamFactory$1.run(PdfInputStreamFactory.java:63)
at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.ValidationEventHandler
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
... 2 more
Describe the bug
I am able to download the PDF file but it is 0 bytes and fails to open. All other file types download/open correctly.
Expected behavior
PDF should have content and open as expected.
Minimal reproducible example
Add-on Version
2.3.2
Vaadin Version
24.4.3
Additional information
Chrome (latest)