You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When validating a PDF document renamed as .ods, I expect the validator to report PKG-1 and POL_2 when running with profile and DOC-1 (or possibly PKG-1) when running without profile.
Currently, the validator crashes and outputs the following:
APP-1: [INFO] Validating C:\Users\maria\Desktop\014test\AT002.ods.
APP-4: [INFO] Validation report for C:\Users\maria\Desktop\014test\AT002.ods.
DOC-1: [ERROR] C:\Users\maria\Desktop\014test\AT002.ods An OpenDocument document SHALL be a single XML file or a Zip file.
NOT VALID, 1 errors, 0 warnings and 0 info messages.
java.lang.NullPointerException: Cannot invoke "org.openpreservation.odf.document.OpenDocument.getPackage()" because "report.document" is null
at org.openpreservation.odf.validation.rules.ProfileImpl.check(ProfileImpl.java:49)
at org.openpreservation.odf.apps.CliValidator.profileReport(CliValidator.java:87)
at org.openpreservation.odf.apps.CliValidator.call(CliValidator.java:58)
at org.openpreservation.odf.apps.CliValidator.call(CliValidator.java:34)
at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
at picocli.CommandLine.execute(CommandLine.java:2170)
at org.openpreservation.odf.apps.CliValidator.main(CliValidator.java:98)
When validating a PDF document renamed as .ods, I expect the validator to report PKG-1 and POL_2 when running with profile and DOC-1 (or possibly PKG-1) when running without profile.
Currently, the validator crashes and outputs the following:
APP-1: [INFO] Validating C:\Users\maria\Desktop\014test\AT002.ods.
APP-4: [INFO] Validation report for C:\Users\maria\Desktop\014test\AT002.ods.
DOC-1: [ERROR] C:\Users\maria\Desktop\014test\AT002.ods An OpenDocument document SHALL be a single XML file or a Zip file.
NOT VALID, 1 errors, 0 warnings and 0 info messages.
java.lang.NullPointerException: Cannot invoke "org.openpreservation.odf.document.OpenDocument.getPackage()" because "report.document" is null
at org.openpreservation.odf.validation.rules.ProfileImpl.check(ProfileImpl.java:49)
at org.openpreservation.odf.apps.CliValidator.profileReport(CliValidator.java:87)
at org.openpreservation.odf.apps.CliValidator.call(CliValidator.java:58)
at org.openpreservation.odf.apps.CliValidator.call(CliValidator.java:34)
at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
at picocli.CommandLine.execute(CommandLine.java:2170)
at org.openpreservation.odf.apps.CliValidator.main(CliValidator.java:98)
AT002.ods
It looks like this is accurate without the profile, but then crashes when attempting to validate with the profile.
The text was updated successfully, but these errors were encountered: