jhove
jhove copied to clipboard
Java Error on Jhove CLI by json formatter class java.lang.Double cannot be cast to class java.lang.String
If I run the cli with the -h option, the json output runs on the following error message.
SEVERE: class java.lang.Double cannot be cast to class java.lang.String (java.lang.Double and java.lang.String are in module java.base of loader 'bootstrap') java.lang.ClassCastException: class java.lang.Double cannot be cast to class java.lang.String (java.lang.Double and java.lang.String are in module java.base of loader 'bootstrap') at edu.harvard.hul.ois.jhove.handler.JsonHandler.showScalarProperty(JsonHandler.java:726) at edu.harvard.hul.ois.jhove.handler.JsonHandler.showProperty(JsonHandler.java:658) at edu.harvard.hul.ois.jhove.handler.JsonHandler.showListProperty(JsonHandler.java:790) at edu.harvard.hul.ois.jhove.handler.JsonHandler.showProperty(JsonHandler.java:662) at edu.harvard.hul.ois.jhove.handler.JsonHandler.showListProperty(JsonHandler.java:790) at edu.harvard.hul.ois.jhove.handler.JsonHandler.showProperty(JsonHandler.java:662) at edu.harvard.hul.ois.jhove.handler.JsonHandler.show(JsonHandler.java:439) at edu.harvard.hul.ois.jhove.RepInfo.show(RepInfo.java:563) at edu.harvard.hul.ois.jhove.JhoveBase.process(JhoveBase.java:649) at edu.harvard.hul.ois.jhove.JhoveBase.process(JhoveBase.java:576) at edu.harvard.hul.ois.jhove.JhoveBase.process(JhoveBase.java:576) at edu.harvard.hul.ois.jhove.JhoveBase.process(JhoveBase.java:576) at edu.harvard.hul.ois.jhove.JhoveBase.process(JhoveBase.java:576) at edu.harvard.hul.ois.jhove.JhoveBase.dispatch(JhoveBase.java:479) at edu.harvard.hul.ois.jhove.Jhove.main(Jhove.java:265)
XML output works, but looks a bit damaged: