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

Validator crashes (0.14 CLI - PKG-1) #192

Open
maria-messerschmidt opened this issue Oct 1, 2024 · 0 comments
Open

Validator crashes (0.14 CLI - PKG-1) #192

maria-messerschmidt opened this issue Oct 1, 2024 · 0 comments
Milestone

Comments

@maria-messerschmidt
Copy link

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.

@maria-messerschmidt maria-messerschmidt changed the title Validator crashes (0.14 CLI) Validator crashes (0.14 CLI - PKG-1) Oct 1, 2024
@carlwilson carlwilson added this to the v0.15 milestone Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants