HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML Forums › Technical questions / Troubleshooting › JDK21 and pd4ml-4.0.17-jakarta – PDF Export isn’t working – ClassCastException
- This topic has 0 replies, 1 voice, and was last updated Jan 25, 2024
11:02:02 by Jeff moffa.
-
AuthorPosts
-
January 25, 2024 at 11:02#37699
After upgrading JDK from 17 to 21 version and pd4ml from 4.0.11 to 4.0.17-jakarta version the PDF export stopped working.
How to prevent this error? Is there any other version compatible with Jakarta?
Next exceptions are thrown:Caused by: java.lang.ClassCastException: class com.pd4ml.css.ab cannot be cast to class com.pd4ml.html.doc.util.m (com.pd4ml.css.ab and com.pd4ml.html.doc.util.m are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @155c1dd7) at com.pd4ml.html.doc.b.õô0000(y:2657) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.elements.r.ÒÓ0000(y:3252) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.elements.r.oo0000(y:2366) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.d.<init>(y:3387) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.i.o00000(y:2738) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.ob.o00000(y:2904) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.ob.o00000(y:2916) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.q.o00000(y:183) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.pb.o00000(y:2892) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.pb.String(y:1746) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.pb.õo0000(y:289) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.jb.new(y:3090) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.jb.o00000(y:1386) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.jb.new(y:81) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.ib.thisnew(y:305) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.ib.Ó00000(y:3582) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.ib.Ò00000(y:3549) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.q.Ó00000(y:2875) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.q.Ò00000(y:2468) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.q.Ó00000(y:2875) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.q.o00000(y:1823) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.html.doc.render.to.n.super(y:1503) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.PD4ML.Object(y:971) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.PD4ML.writePDF(y:72) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.PD4ML.writePDF(y:2445) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.taglib.PD4MLTransformerTag.render(y:2346) ~[pd4ml-4.0.17.jar:?] at com.pd4ml.taglib.PD4MLTransformerTag.doEndTag(y:2781) ~[pd4ml-4.0.17.jar:?]
-
AuthorPosts
You must be logged in to reply to this topic.