[
https://issues.apache.org/jira/browse/PDFBOX-3217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15120335#comment-15120335
]
Roberto Nibali edited comment on PDFBOX-3217 at 1/27/16 10:51 PM:
------------------------------------------------------------------
This fixes it.
{code:title=run|borderStyle=solid}
$ java -Dlog4j.configuration=file:./log4j.xml -jar
preflight-app/target/preflight-app-2.0.0-SNAPSHOT.jar xml batch
/Users/moreaki/Work/OpenSource/pdftests/
log4j: reset attribute= "false".
log4j: Threshold ="null".
log4j: Level value for root is [INFO].
log4j: root level set to INFO
log4j: Class name: [org.apache.log4j.ConsoleAppender]
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%d{yyyy-MM-dd HH:mm:ss} %-5p
%c{1}:%L - %m%n].
log4j: Adding appender named [console] to category [root].
2016-01-27 23:46:59 WARN FileSystemFontProvider:439 - New fonts found, font
cache will be re-built
2016-01-27 23:46:59 WARN FileSystemFontProvider:224 - Building on-disk font
cache, this may take a while
2016-01-27 23:47:04 WARN FileSystemFontProvider:227 - Finished building
on-disk font cache, found 986 fonts
{code}
I now get the correct preflight report.
was (Author: rnibali):
This fixes it.
$ java -Dlog4j.configuration=file:./log4j.xml -jar
preflight-app/target/preflight-app-2.0.0-SNAPSHOT.jar xml batch
/Users/moreaki/Work/OpenSource/pdftests/
log4j: reset attribute= "false".
log4j: Threshold ="null".
log4j: Level value for root is [INFO].
log4j: root level set to INFO
log4j: Class name: [org.apache.log4j.ConsoleAppender]
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%d{yyyy-MM-dd HH:mm:ss} %-5p
%c{1}:%L - %m%n].
log4j: Adding appender named [console] to category [root].
2016-01-27 23:46:59 WARN FileSystemFontProvider:439 - New fonts found, font
cache will be re-built
2016-01-27 23:46:59 WARN FileSystemFontProvider:224 - Building on-disk font
cache, this may take a while
2016-01-27 23:47:04 WARN FileSystemFontProvider:227 - Finished building
on-disk font cache, found 986 fonts
I now get the correct preflight report.
> PdfaExtensionHelper.populatePDFAPropertyType
> --------------------------------------------
>
> Key: PDFBOX-3217
> URL: https://issues.apache.org/jira/browse/PDFBOX-3217
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Affects Versions: 1.8.11, 2.0.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 1.8.12, 2.0.0
>
> Attachments: 6biasEBM.pdf
>
>
> {code}
> Exception in thread "main" java.lang.NullPointerException
> at
> org.apache.xmpbox.xml.PdfaExtensionHelper.populatePDFAPropertyType(PdfaExtensionHelper.java:180)
> at
> org.apache.xmpbox.xml.PdfaExtensionHelper.populatePDFASchemaType(PdfaExtensionHelper.java:159)
> at
> org.apache.xmpbox.xml.PdfaExtensionHelper.populateSchemaMapping(PdfaExtensionHelper.java:116)
> at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:194)
> at
> org.apache.pdfbox.preflight.process.MetadataValidationProcess.validate(MetadataValidationProcess.java:69)
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:84)
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:122)
> at
> org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:163)
> at
> org.apache.pdfbox.preflight.Validator_A1b.runSimple(Validator_A1b.java:174)
> at org.apache.pdfbox.preflight.Validator_A1b.main(Validator_A1b.java:135)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]