#58905 closed defect (fixed)
pdftk-java @3.0.6 Class Not found exception
Reported by: | snowflake (Dave Evans) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.5.99 |
Keywords: | Cc: | chrstphrchvz (Christopher Chavez), ryandesign (Ryan Carsten Schmidt) | |
Port: | pdftk-java |
Description
Here is the output illustrating the crash
Script started on Sat Aug 31 10:49:37 2019 command: pdftk-java m.pdf dump_data output rp.txt Unhandled Java Exception in create_output(): java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringEscapeUtils at com.gitlab.pdftk_java.report.<clinit>(report.java:55) at com.gitlab.pdftk_java.TK_Session.create_output(TK_Session.java:3080) at com.gitlab.pdftk_java.pdftk.main_noexit(pdftk.java:156) at com.gitlab.pdftk_java.pdftk.main(pdftk.java:128) Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringEscapeUtils at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 4 more There was a problem with pdftk-java. Please report it at https://gitlab.com/pdftk-java/pdftk/issues including the message above, the version of pdftk-java (3.0.6), and if possible steps to reproduce the error. Script done on Sat Aug 31 10:49:39 2019
Change History (8)
comment:1 Changed 5 years ago by chrstphrchvz (Christopher Chavez)
Cc: | chrstphrchvz added |
---|
comment:2 follow-up: 3 Changed 5 years ago by chrstphrchvz (Christopher Chavez)
comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign added |
---|
I've reported it to them here: https://gitlab.com/pdftk-java/pdftk/-/issues/51
comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
comment:5 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | set to ryandesign |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:6 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
I think that fixes it but I should add that I'm almost completely unfamiliar with Java so it's possible I did something wrong in creating the commons-text port (I modeled it on the commons-lang3 port) or in fixing the class path issues in pdftk-java. If so, please file more tickets.
comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
comment:8 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Note: See
TracTickets for help on using
tickets.
Someone may want to cc the submitter of this port (yahoo.fr:macosx12345).
There are a couple of (closed) upstream tickets that this resembles: https://gitlab.com/pdftk-java/pdftk/issues/2 https://gitlab.com/pdftk-java/pdftk/issues/7
It also appears that in the future this port may need to use Apache commons-text, since that is where StringEscapeUtils has moved to; not sure if the upstream project is aware of this.