Hi,
This is all so weird... so I tried it myself. I got problems at the
beginning, then it worked with this:
cd /d <directory of project>
set JAVA_HOME=<javahomedir>
set M2_HOME=C:\Program Files\Apache Software Foundation\apache-maven-3.6.3
"C:\Program Files\Apache Software
Foundation\apache-maven-3.6.3\bin\mvn.cmd" install
The output below has an incomplete stack trace,
TestIsartorBavaria.java:190
has only "document.validate();" which can't throw an
ArrayIndexOutOfBoundsException itself.
To be sure, I did a fresh download of the sources from the pdfbox
website, and that worked too.
Tilman
Am 02.03.2020 um 22:35 schrieb Philippe Fisher:
I think intelliJ maven plugin is adding that. Running maven from cmd I still get
[ERROR] Tests run: 204, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.296 s
<<< FAILURE! - in org.apache.pdfbox.preflight.TestIsartorBavaria
[ERROR] validate[target\pdfs\Isartor testsuite\PDFA-1b\6.2 Graphics\6.2.2 Output
intent\isartor-6-2-2-t02-fail-a.pdf](org.apache.pdfbox.preflight.TestIsartorBavaria)
Time elapsed: 0.006 s <<< ERROR!
java.lang.ArrayIndexOutOfBoundsException: 36
at
org.apache.pdfbox.preflight.TestIsartorBavaria.validate(TestIsartorBavaria.java:190)
[INFO] Running org.apache.pdfbox.preflight.TestPDFBox3741
OPERATOR - BT
OPERATOR - Tf
OPERATOR - Td
OPERATOR - Tj
OPERATOR - ET
OPERATOR - q
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 s
- in org.apache.pdfbox.preflight.TestPDFBox3741
[INFO] Running org.apache.pdfbox.preflight.TestPreflightConfiguration
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s
- in org.apache.pdfbox.preflight.TestPreflightConfiguration
[INFO] Running org.apache.pdfbox.preflight.TestPreflightPath
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s
- in org.apache.pdfbox.preflight.TestPreflightPath
[INFO] Running org.apache.pdfbox.preflight.TestValidDirectory
System property 'pdfa.valid' not defined, will not run TestValidaDirectory
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 s
- in org.apache.pdfbox.preflight.TestValidDirectory
[INFO] Running org.apache.pdfbox.preflight.utils.TestCOSUtils
mars 02, 2020 4:29:47 PM org.apache.pdfbox.preflight.utils.COSUtils
closeDocumentQuietly
AVERTISSEMENT: Error occurred during the close of a COSDocument : Exception for
code coverage
java.io.IOException: Exception for code coverage
at
org.apache.pdfbox.preflight.utils.TestCOSUtils$IOCOSDocument.close(TestCOSUtils.java:232)
at
org.apache.pdfbox.preflight.utils.COSUtils.closeDocumentQuietly(COSUtils.java:401)
at
org.apache.pdfbox.preflight.utils.TestCOSUtils.testCloseCOSDocumentIO(TestCOSUtils.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
at
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.07 s -
in org.apache.pdfbox.preflight.utils.TestCOSUtils
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] TestIsartorBavaria.validate:190 ยป ArrayIndexOutOfBounds 36
[INFO]
[ERROR] Tests run: 278, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for PDFBox reactor 2.0.18:
[INFO]
[INFO] PDFBox parent ...................................... SUCCESS [ 1.746 s]
[INFO] Apache FontBox ..................................... SUCCESS [ 9.636 s]
[INFO] Apache XmpBox ...................................... SUCCESS [ 4.475 s]
[INFO] Apache PDFBox ...................................... SUCCESS [01:30 min]
[INFO] Apache Preflight ................................... FAILURE [ 6.418 s]
[INFO] Apache Preflight application ....................... SKIPPED
[INFO] Apache PDFBox Debugger ............................. SKIPPED
[INFO] Apache PDFBox tools ................................ SKIPPED
[INFO] Apache PDFBox application .......................... SKIPPED
[INFO] Apache PDFBox Debugger application ................. SKIPPED
[INFO] Apache PDFBox examples ............................. SKIPPED
[INFO] PDFBox reactor ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:53 min
[INFO] Finished at: 2020-03-02T16:29:48-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (surefire-test) on
project preflight: There are test failures.
[ERROR]
[ERROR] Please refer to
C:\workspaces\pdfBox\pdfbox-2.0.18\preflight\target\surefire-reports for the
individual test results.
Just to make sure maven still configured properly.
mvn -v
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\workspaces\maven\apache-maven-3.6.3\bin\..
Java version: 1.8.0_242, vendor: Amazon.com Inc., runtime: C:\Program
Files\Amazon Corretto\jdk1.8.0_242\jre
Default locale: fr_CA, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
On 2020/03/02 21:04:22, Tilman Hausherr <thaush...@t-online.de> wrote:
Am 02.03.2020 um 21:55 schrieb Philippe Fisher:
You think it might have to do with the -P apache-release,jdk9 we see in mvn -v
output?
Thanks
Yeah, why are you doing this??? Or did mvn do this itself?
The build should be done with "mvn install".
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org