Hi!
I've ordered a new machine to host OpenPnP2 for the long-term use, a Fujitsu Esprimo Mini PC Q920 i5-4590T, 8GB RAM, 256GB SSD. These little boxes seem to have surprisingly good Linux support, are sufficiently powered and are very reasonable priced when bought refurbished.
After installing the system and the usual stuff up to the webbrowser, I went straight to
https://github.com/openpnp/openpnp/wiki/Developers-Guide to exercise the OpenPnP installation instructions.
I am working from the sources, following the procedure as usual (IIRC):
$ git clone
https://github.com/openpnp/openpnp.git openpnp.git
$ cd openpnp.git
$ git reflog
d539596aae (HEAD -> develop, origin/develop, origin/HEAD) HEAD@{0}: clone: from
https://github.com/openpnp/openpnp.git
$ archlinux-java status
Available Java environments:
java-15-openjdk (default)
$ mvn clean
$ mvn package
Note: OpenCV is *not* installed natively in this new system as it's written that:
"OpenCV is now included with OpenPnP, so an additional installation is not required. Binaries are included for Windows (x86/x64), Mac (Universal) and Linux (x86/x64)."
(Hmmm... ?)
And then, after some minutes, I ran (the first time) into a testing error:
Running Utils2DTest
(60.221347, 14.223544, -8.000000, 84.000000 mm)
(60.221347, 14.223544, -8.000000, 84.000000 mm)
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.461 sec - in Utils2DTest
Running ReferenceBottomVisionTest
Configuration directory: /tmp/1613689752716-0/.openpnp
2021-02-18 23:09:12 [main] org.openpnp.model.Configuration.load()
INFO: No packages.xml found in configuration directory, loading defaults.
2021-02-18 23:09:12 [main] org.openpnp.model.Configuration.load()
INFO: No parts.xml found in configuration directory, loading defaults.
2021-02-18 23:09:12 [main] org.openpnp.model.Configuration.load()
INFO: No machine.xml found in configuration directory, loading defaults.
2021-02-18 23:09:13 [main] org.openpnp.machine.reference.ReferenceNozzleTip.commit()
INFO: Cannot fully upgrade partOffProbingMilliseconds time
2021-02-18 23:09:13 [main] org.openpnp.model.Configuration.load()
INFO: Defaults were loaded. Saving to configuration directory.
Configuration directory: /tmp/1613689754828-0/.openpnp
2021-02-18 23:09:14 [main] org.openpnp.model.Configuration.load()
INFO: No packages.xml found in configuration directory, loading defaults.
2021-02-18 23:09:14 [main] org.openpnp.model.Configuration.load()
INFO: No parts.xml found in configuration directory, loading defaults.
2021-02-18 23:09:14 [main] org.openpnp.model.Configuration.load()
INFO: No machine.xml found in configuration directory, loading defaults.
2021-02-18 23:09:15 [main] org.openpnp.machine.reference.ReferenceNozzleTip.commit()
INFO: Cannot fully upgrade partOffProbingMilliseconds time
2021-02-18 23:09:15 [main] org.openpnp.model.Configuration.load()
INFO: Defaults were loaded. Saving to configuration directory.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.206 sec - in ReferenceBottomVisionTest
Results :
Tests in error:
VisionUtilsTest.testOffsets:26 ? Configuration instance not yet initialized.
Tests run: 26, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:50 min
[INFO] Finished at: 2021-02-18T23:09:17Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project openpnp-gui: There are test failures.
[ERROR]
[ERROR] Please refer to /home/admin/share/openpnp/openpnp.git/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
$ cat target/surefire-reports/VisionUtilsTest.txt
-------------------------------------------------------------------------------
Test set: VisionUtilsTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.006 sec <<< FAILURE! - in VisionUtilsTest
testOffsets(VisionUtilsTest) Time elapsed: 0.006 sec <<< ERROR!
java.lang.Error: Configuration instance not yet initialized.
at VisionUtilsTest.testOffsets(VisionUtilsTest.java:26)
Is this a know issue or related to a missing dependency? If yes, it might need a fix in the code or the documentation.
The error is exactly the same on test branch:
$ git checkout test
$ mvn clean
$ mvn package <fails as well>
$ mvn test -e -X
gives additionally:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:26 min
[INFO] Finished at: 2021-02-18T23:42:41Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project openpnp-gui: There are test failures.
[ERROR]
[ERROR] Please refer to /home/admin/share/openpnp/openpnp.git/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project openpnp-gui: There are test failures.
Please refer to /home/admin/share/openpnp/openpnp.git/target/surefire-reports for the individual test results.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:64)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:564)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
Please refer to /home/admin/share/openpnp/openpnp.git/target/surefire-reports for the individual test results.
at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution (SurefireHelper.java:91)
at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary (SurefirePlugin.java:318)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked (AbstractSurefireMojo.java:880)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute (AbstractSurefireMojo.java:739)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:64)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:564)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
What is missing?
Thanks,
Clemens--