Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF exporting returns 0KB file #158

Open
paodb opened this issue Oct 30, 2024 · 2 comments
Open

PDF exporting returns 0KB file #158

paodb opened this issue Oct 30, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@paodb
Copy link
Member

paodb commented Oct 30, 2024

Describe the bug

Go to https://addonsv24-staging.flowingcode.com/gridexporter/basic (or any demo with pdf exporting) and try to export as pdf. See download happening but file is empty.

Expected behavior

Pdf file should contain exported grid data.

Minimal reproducible example

Explained above.

Add-on Version

2.5.0-SNAPSHOT

Vaadin Version

24.5.0

Additional information

Haven't tested locally. Found issue while playing with demo on staging site.

@javier-godoy javier-godoy added the bug Something isn't working label Oct 30, 2024
@github-project-automation github-project-automation bot moved this to Inbox (needs triage) in Flowing Code Addons Oct 30, 2024
@javier-godoy javier-godoy moved this from Inbox (needs triage) to To Do in Flowing Code Addons Oct 30, 2024
@mlopezFC
Copy link
Member

This is the problem:

java.lang.ClassNotFoundException: jakarta.xml.bind.ValidationEventHandler
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[na:na]
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[na:na]
	at org.springframework.boot.loader.net.protocol.jar.JarUrlClassLoader.loadClass(JarUrlClassLoader.java:103) ~[app.jar:1.0.0-SNAPSHOT]
	at org.springframework.boot.loader.launch.LaunchedClassLoader.loadClass(LaunchedClassLoader.java:91) ~[app.jar:1.0.0-SNAPSHOT]
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[na:na]
	at com.flowingcode.vaadin.addons.gridexporter.PdfStreamResourceWriter.accept(PdfStreamResourceWriter.java:54) ~[grid-exporter-addon-2.5.0-SNAPSHOT.jar!/:2.5.0-SNAPSHOT]
	at com.flowingcode.vaadin.addons.gridexporter.ConcurrentStreamResourceWriter.accept(ConcurrentStreamResourceWriter.java:272) ~[grid-exporter-addon-2.5.0-SNAPSHOT.jar!/:2.5.0-SNAPSHOT]
	at com.vaadin.flow.server.communication.StreamResourceHandler.handleRequest(StreamResourceHandler.java:86) ~[flow-server-24.5.0.jar!/:24.5.0]
	at com.vaadin.flow.server.communication.StreamRequestHandler.handleRequest(StreamRequestHandler.java:111) ~[flow-server-24.5.0.jar!/:24.5.0]
	at com.vaadin.flow.server.VaadinService.handleRequest(VaadinService.java:1647) ~[flow-server-24.5.0.jar!/:24.5.0]
	at com.vaadin.flow.server.VaadinServlet.service(VaadinServlet.java:398) ~[flow-server-24.5.0.jar!/:24.5.0]
	at com.vaadin.flow.spring.SpringServlet.service(SpringServlet.java:106) ~[vaadin-spring-24.5.0.jar!/:na]

@yuktgsl
Copy link

yuktgsl commented Oct 31, 2024

@mlopezFC I think you might need to add javax.xml.bind : jaxb-api : 2.3.1 and org.glassfish.jaxb : jaxb-runtime as dependencies. It would be good if someone could confirm this please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To Do
Development

No branches or pull requests

4 participants