Re: Build failing - 2.0

2020-03-03 Thread Philippe Fisher
I downloaded a fresh version of 2.0.19 and it built with no issues, with my 
original maven (3.6.1) and java (Oracle jdk 1.8.0241)

Thanks for all the help!

On 2020/03/02 23:21:33, Tilman Hausherr  wrote: 
> Hi,
> 
> This is all so weird... so I tried it myself. I got problems at the 
> beginning, then it worked with this:
> 
> cd /d 
> set JAVA_HOME=
> 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 
> > 

Re: Build failing - 2.0

2020-03-02 Thread Tilman Hausherr

Hi,

This is all so weird... so I tried it myself. I got problems at the 
beginning, then it worked with this:


cd /d 
set JAVA_HOME=
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, 

Re: Build failing - 2.0

2020-03-02 Thread 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] 

Re: Build failing - 2.0

2020-03-02 Thread Tilman Hausherr

Am 02.03.2020 um 20:20 schrieb Philippe Fisher:

I removed the args for the surefire plugin in xmpbox pom.xml (PDFBox 
reactor\xmpbox\pom.xml)
 
 
 maven-surefire-plugin
 
 ${addmod}
 
 

to

 
 
 maven-surefire-plugin
 

and now failing later in the build process.



You could of course do that also for the preflight pom.xml, e.g. remove 
the "${addmod}" lines.


However in a "good" situation, this wouldn't be needed.

Btw the current pdfbox version is 2.0.19.

Tilman





[INFO] 
[INFO] Reactor Summary for PDFBox reactor 2.0.18:
[INFO]
[INFO] PDFBox parent .. SUCCESS [  6.550 s]
[INFO] Apache FontBox . SUCCESS [ 30.149 s]
[INFO] Apache XmpBox .. SUCCESS [ 20.499 s]
[INFO] Apache PDFBox .. SUCCESS [01:47 min]
[INFO] Apache Preflight ... FAILURE [  4.230 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:  02:50 min
[INFO] Finished at: 2020-03-02T14:14:43-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.
[ERROR] Please refer to dump files (if any exist) [date].dump, 
[date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM crash or 
System.exit called?
[ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_241\jre\bin\java" 
--add-modules java.activation --add-modules java.xml.bind -jar 
C:\Users\pfisher\AppData\Local\Temp\surefire250120497734867588\surefirebooter4338641074526569422.jar
 C:\Users\pfisher\AppData\Local\Temp\surefire250120497734867588 2020-03-02T14-12-05_677-jvmRun1 
surefire9181748057066020435tmp surefire_33050773737218293505tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The 
forked VM terminated without properly saying goodbye. VM crash or System.exit 
called?
[ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_241\jre\bin\java" 
--add-modules java.activation --add-modules java.xml.bind -jar 
C:\Users\pfisher\AppData\Local\Temp\surefire250120497734867588\surefirebooter4338641074526569422.jar
 C:\Users\pfisher\AppData\Local\Temp\surefire250120497734867588 2020-03-02T14-12-05_677-jvmRun1 
surefire9181748057066020435tmp surefire_33050773737218293505tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
[ERROR] at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
[ERROR] at 

Re: Build failing - 2.0

2020-03-02 Thread Tilman Hausherr

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



Re: Build failing - 2.0

2020-03-02 Thread Tilman Hausherr
I'm surprised that it mentions fork altough fork is disabled. And that 
the java call includes "--add-modules java.activation --add-modules 
java.xml.bind", which is for jdk9 and 10 only. You mentioned you have jdk8.


Either you have a different jdk, or this jdk claims to be jdk9 ?!

Other things to try
- install maven 3.6.3
- install a different jdk e.g. corretto

Tilman

Am 02.03.2020 um 20:09 schrieb Philippe Fisher:

Changing the parent pom.xml seems to have worked for fontbox to build, but now 
getting other error.

[INFO] 
[INFO] Reactor Summary for PDFBox reactor 2.0.18:
[INFO]
[INFO] PDFBox parent .. SUCCESS [  3.561 s]
[INFO] Apache FontBox . SUCCESS [ 34.415 s]
[INFO] Apache XmpBox .. FAILURE [  1.589 s]
[INFO] Apache PDFBox .. SKIPPED
[INFO] Apache Preflight ... SKIPPED
[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:  40.543 s
[INFO] Finished at: 2020-03-02T14:00:41-05:00
[INFO] 
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on 
project xmpbox: There are test failures.
[ERROR]
[ERROR] Please refer to 
C:\workspaces\pdfBox\pdfbox-2.0.18\xmpbox\target\surefire-reports for the 
individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, 
[date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM crash or 
System.exit called?
[ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_241\jre\bin\java" 
--add-modules java.activation --add-modules java.xml.bind -jar 
C:\Users\pfisher\AppData\Local\Temp\surefire8060988951751425262\surefirebooter4204317159950487594.jar
 C:\Users\pfisher\AppData\Local\Temp\surefire8060988951751425262 2020-03-02T14-00-10_539-jvmRun1 
surefire3957061151385845098tmp surefire_2971321810322124tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The 
forked VM terminated without properly saying goodbye. VM crash or System.exit 
called?
[ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_241\jre\bin\java" 
--add-modules java.activation --add-modules java.xml.bind -jar 
C:\Users\pfisher\AppData\Local\Temp\surefire8060988951751425262\surefirebooter4204317159950487594.jar
 C:\Users\pfisher\AppData\Local\Temp\surefire8060988951751425262 2020-03-02T14-00-10_539-jvmRun1 
surefire3957061151385845098tmp surefire_2971321810322124tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
[ERROR] at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at 

Re: Build failing - 2.0

2020-03-02 Thread Philippe Fisher
I removed the args for the surefire plugin in xmpbox pom.xml (PDFBox 
reactor\xmpbox\pom.xml)


maven-surefire-plugin

${addmod}



to



maven-surefire-plugin


and now failing later in the build process.

[INFO] 
[INFO] Reactor Summary for PDFBox reactor 2.0.18:
[INFO] 
[INFO] PDFBox parent .. SUCCESS [  6.550 s]
[INFO] Apache FontBox . SUCCESS [ 30.149 s]
[INFO] Apache XmpBox .. SUCCESS [ 20.499 s]
[INFO] Apache PDFBox .. SUCCESS [01:47 min]
[INFO] Apache Preflight ... FAILURE [  4.230 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:  02:50 min
[INFO] Finished at: 2020-03-02T14:14:43-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.
[ERROR] Please refer to dump files (if any exist) [date].dump, 
[date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM crash or 
System.exit called?
[ERROR] Command was cmd.exe /X /C ""C:\Program 
Files\Java\jdk1.8.0_241\jre\bin\java" --add-modules java.activation 
--add-modules java.xml.bind -jar 
C:\Users\pfisher\AppData\Local\Temp\surefire250120497734867588\surefirebooter4338641074526569422.jar
 C:\Users\pfisher\AppData\Local\Temp\surefire250120497734867588 
2020-03-02T14-12-05_677-jvmRun1 surefire9181748057066020435tmp 
surefire_33050773737218293505tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The 
forked VM terminated without properly saying goodbye. VM crash or System.exit 
called?
[ERROR] Command was cmd.exe /X /C ""C:\Program 
Files\Java\jdk1.8.0_241\jre\bin\java" --add-modules java.activation 
--add-modules java.xml.bind -jar 
C:\Users\pfisher\AppData\Local\Temp\surefire250120497734867588\surefirebooter4338641074526569422.jar
 C:\Users\pfisher\AppData\Local\Temp\surefire250120497734867588 
2020-03-02T14-12-05_677-jvmRun1 surefire9181748057066020435tmp 
surefire_33050773737218293505tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
[ERROR] at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at 

Re: Build failing - 2.0

2020-03-02 Thread Philippe Fisher
Changing the parent pom.xml seems to have worked for fontbox to build, but now 
getting other error.

[INFO] 
[INFO] Reactor Summary for PDFBox reactor 2.0.18:
[INFO] 
[INFO] PDFBox parent .. SUCCESS [  3.561 s]
[INFO] Apache FontBox . SUCCESS [ 34.415 s]
[INFO] Apache XmpBox .. FAILURE [  1.589 s]
[INFO] Apache PDFBox .. SKIPPED
[INFO] Apache Preflight ... SKIPPED
[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:  40.543 s
[INFO] Finished at: 2020-03-02T14:00:41-05:00
[INFO] 
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on 
project xmpbox: There are test failures.
[ERROR] 
[ERROR] Please refer to 
C:\workspaces\pdfBox\pdfbox-2.0.18\xmpbox\target\surefire-reports for the 
individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, 
[date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM crash or 
System.exit called?
[ERROR] Command was cmd.exe /X /C ""C:\Program 
Files\Java\jdk1.8.0_241\jre\bin\java" --add-modules java.activation 
--add-modules java.xml.bind -jar 
C:\Users\pfisher\AppData\Local\Temp\surefire8060988951751425262\surefirebooter4204317159950487594.jar
 C:\Users\pfisher\AppData\Local\Temp\surefire8060988951751425262 
2020-03-02T14-00-10_539-jvmRun1 surefire3957061151385845098tmp 
surefire_2971321810322124tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The 
forked VM terminated without properly saying goodbye. VM crash or System.exit 
called?
[ERROR] Command was cmd.exe /X /C ""C:\Program 
Files\Java\jdk1.8.0_241\jre\bin\java" --add-modules java.activation 
--add-modules java.xml.bind -jar 
C:\Users\pfisher\AppData\Local\Temp\surefire8060988951751425262\surefirebooter4204317159950487594.jar
 C:\Users\pfisher\AppData\Local\Temp\surefire8060988951751425262 
2020-03-02T14-00-10_539-jvmRun1 surefire3957061151385845098tmp 
surefire_2971321810322124tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
[ERROR] at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] at 
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
[ERROR] at 
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[ERROR] at 

Re: Build failing - 2.0

2020-03-02 Thread Tilman Hausherr

Am 02.03.2020 um 18:19 schrieb Philippe Fisher:

org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile
(default-compile) on project fontbox: Compilation failure -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to



Try changing the parent pom.xml (PDFBox reactor\parent\pom.xml), search 
for the 2nd "maven-compiler-plugin" and try changing the details there.



    
maven-compiler-plugin
    

    
true
    1.6
    1.6
    UTF-8
    

${jdk.path}/bin/javac
    true
    

    
    -verbose
    -J-Xmx1g
    -J-XX:PermSize=256m
-J-XX:MaxPermSize=512m
    
    
    

try changing it to this


    
maven-compiler-plugin
    
true
    1.6
    1.6
    UTF-8
    
    

Tilman


-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org