Build Error

207 views
Skip to first unread message

Jacob Christ

unread,
Jul 10, 2016, 1:46:55 AM7/10/16
to ope...@googlegroups.com
If I build the commit with the tag 1.0.0 it builds with success.

When I'm trying to build openpnp commit 9deb48595ae9baddc3850da6f7ce23b3db52df87 and I am getting an exception.  Is this expected?


C:\openpnp\openpnp>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building openpnp-gui 0.0.1-alpha-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ openpnp-gui ---
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: C:\openpnp\openpnp
[INFO] Storing buildNumber: 9deb48 at timestamp: 1468127493888
[INFO] Storing buildScmBranch: master
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ openpnp-gui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 52 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ openpnp-gui ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ openpnp-gui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ openpnp-gui ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ openpnp-gui ---
[INFO] Surefire report directory: C:\openpnp\openpnp\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running BasicJobTest
Configuration directory: C:\Users\JACOBC~1\AppData\Local\Temp\1468127495369-0\.openpnp
22:11:37,202 setEnabled(true)
22:11:37,204 Start R1
22:11:37,206 moveTo(ReferenceNozzle, (-10.000000, 0.000000, 0.000000, 0.000000 mm), 1.0)
22:11:37,207 pick(ReferenceNozzle ReferenceNozzleTip)
22:11:37,207 Start R2
22:11:37,207 moveTo(ReferenceNozzle, (-20.000000, 0.000000, 0.000000, 0.000000 mm), 1.0)
22:11:37,208 pick(ReferenceNozzle ReferenceNozzleTip)
22:11:37,234 moveTo(ReferenceNozzle, (0.000000, 10.000000, 0.000000, 45.000000 mm), 1.0)
22:11:37,235 moveTo(ReferenceNozzle, (0.000000, 10.000000, 0.825500, 45.000000 mm), 1.0)
22:11:37,235 place(ReferenceNozzle ReferenceNozzleTip)
22:11:37,236 moveTo(ReferenceNozzle, (0.000000, 10.000000, 0.000000, 45.000000 mm), 1.0)
22:11:37,236 Finish R1
22:11:37,236 moveTo(ReferenceNozzle, (0.000000, 20.000000, 0.000000, 90.000000 mm), 1.0)
22:11:37,237 moveTo(ReferenceNozzle, (0.000000, 20.000000, 0.825500, 90.000000 mm), 1.0)
22:11:37,237 place(ReferenceNozzle ReferenceNozzleTip)
22:11:37,237 moveTo(ReferenceNozzle, (0.000000, 20.000000, 0.000000, 90.000000 mm), 1.0)
22:11:37,237 Finish R2
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.971 sec
Running EagleLoaderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.319 sec
Running OpenCvTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 sec
Running SampleJobTest
Configuration directory: C:\Users\JACOBC~1\AppData\Local\Temp\1468127497645-0\.openpnp
22:11:37,646 No packages.xml found in configuration directory, loading defaults.
22:11:37,653 No parts.xml found in configuration directory, loading defaults.
22:11:37,659 No machine.xml found in configuration directory, loading defaults.
22:11:37,683 Defaults were loaded. Saving to configuration directory.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.093 sec <<< FAILURE!
testSampleJob(SampleJobTest)  Time elapsed: 0.092 sec  <<< ERROR!
java.lang.ClassCastException: org.openpnp.machine.reference.driver.test.TestDriver cannot be cast to org.openpnp.machine.reference.driver.NullDriver
        at SampleJobTest.testSampleJob(SampleJobTest.java:52)
        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:47)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
        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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
        at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

Running Utils2DTest
test1
board: (5.000000, 15.000000, -8.000000, 0.000000 mm) 100mm
place: (55.000000, 5.000000, 0.000000, 0.000000 mm)
results (60.000000, 20.000000, -8.000000, 0.000000 mm)
test2
results (45.580602, 17.699407, -8.000000, 0.000000 mm)
test3
results (70.497539, 1.865309, -8.000000, 0.000000 mm)
test4
test5
results (69.142136, 12.071068, -8.000000, 0.000000 mm)
test6
board: (30.004000, 31.386000, -8.000000, 74.646000 mm) 100mm
place: (31.000000, 6.000000, 0.000000, 0.000000 mm)
results (32.426392, 62.868249, -8.000000, 74.646000 mm)
inverse: (31.000000, 6.000000, 0.000000, 0.000000 mm)
results (32.426392, 62.868249, -8.000000, 74.646000 mm)
test7
test8
board: (5.000000, 15.000000, -8.000000, 0.000000 mm) Width=100.0
place: (55.000000, 5.000000, 0.000000, 0.000000 mm)
results (50.000000, 20.000000, -8.000000, 0.000000 mm)
test9
results (35.580602, 17.699407, -8.000000, 0.000000 mm)
test10
results (60.497539, 1.865309, -8.000000, 0.000000 mm)
test11
test12
results (59.142136, 12.071068, -8.000000, 0.000000 mm)
test13
idealA (3.846353, 39.336512, 0.000000, 10.000000 mm)
idealB (58.296186, 18.474689, 0.000000, 10.000000 mm)
offset (10.000000, 10.000000, 0.000000, -3.000000 mm)
actualA (15.697304, 49.348462, 0.000000, 7.000000 mm)
actualB (68.980692, 25.665545, 0.000000, 7.000000 mm)
results (9.797509, 10.267162, 0.000000, -3.000000 mm)
results (9.797509, 10.267162, 0.000000, -3.000000 mm)
results (9.588165, 10.272644, 0.000000, -3.000000 mm)
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.061 sec
Running VisionUtilsTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Exception in thread "Thread-1" java.lang.RuntimeException: java.nio.file.AccessDeniedException: C:\Users\JACOBC~1\AppData\Local\Temp\440530640717678891\nu\pattern\opencv\windows\x86_64\opencv_java2411.dll
        at nu.pattern.OpenCV$TemporaryDirectory.delete(OpenCV.java:146)
        at nu.pattern.OpenCV$TemporaryDirectory$1.run(OpenCV.java:117)
Caused by: java.nio.file.AccessDeniedException: C:\Users\JACOBC~1\AppData\Local\Temp\440530640717678891\nu\pattern\opencv\windows\x86_64\opencv_java2411.dll
        at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
        at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
        at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
        at java.nio.file.Files.deleteIfExists(Files.java:1165)
        at nu.pattern.OpenCV$TemporaryDirectory$2.visitFile(OpenCV.java:141)
        at nu.pattern.OpenCV$TemporaryDirectory$2.visitFile(OpenCV.java:130)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at nu.pattern.OpenCV$TemporaryDirectory.delete(OpenCV.java:130)
        ... 1 more

Results :

Tests in error:
  testSampleJob(SampleJobTest): org.openpnp.machine.reference.driver.test.TestDriver cannot be cast to org.openpnp.machine.reference.driver.NullDriver

Tests run: 8, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.857 s
[INFO] Finished at: 2016-07-09T22:11:37-07:00
[INFO] Final Memory: 12M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project openpnp-gui: There are test failures.
[ERROR]
[ERROR] Please refer to C:\openpnp\openpnp\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:

C:\openpnp\openpnp>


I'm using 64bit version of java on Windows 10... I've built in the past with the 32-bit jdk on Windows 7


C:\openpnp\openpnp>mvn --version
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T04:57:37-07:00)
Maven home: C:\openpnp\apache-maven-3.3.3\bin\..
Java version: 1.8.0_91, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_91\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"



Jacob

Cri S

unread,
Jul 10, 2016, 6:30:39 AM7/10/16
to OpenPnP
Its possible that this type of error is OK.
mvn -Dmaven.test.skip=true package

This build it without test.
Basically the testsimulate the driver, and camera really detailed using special dedicated test classes.
Now if you have changed something that is not really compatible with that class and not have update the test class it blocks on test.
Compiling without test is not the nicest thing, its you that need evaluate if you would do it or not.
Openpnp for long time have made test but the test was simply wrong. Doing test don't necessary mean testing the correct thing, but test can help checking thing after update of jre or if jre is working korrect.

Cri S

unread,
Jul 10, 2016, 6:35:19 AM7/10/16
to OpenPnP
This if you have changed something.
The error seem familiar. There is a lot problems not using spi.driver
But ReferenceDriver , or Actors.
Sometime tho only solution is to do a void* cast, in java case object.

Jason von Nieda

unread,
Jul 10, 2016, 9:28:58 AM7/10/16
to ope...@googlegroups.com
Hi Jacob,

This looks like an incomplete merge, or a conflict. Can you check your git status to make sure there are no pending changes? Alternately, try checking out a fresh copy from GitHub to see if it still fails.

These same tests are run during checkin, so there should not be any errors with them. It's possible, though, that you've uncovered something Windows specific, since the tests are not regularly run on Windows.

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CAMLuGAKLJGv13Q0PiDK2wEvCy_t9PGFiq7Ywd85S-9%3DEtp9Y0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Jacob Christ

unread,
Jul 10, 2016, 2:56:06 PM7/10/16
to ope...@googlegroups.com
Actually I just noticed that when I build the 1.0.0 tag that there is an exception during the build but it gets to the end and says no errors (exhibit 1).

At the very next commit (1731d628a33bb13a4f3e73287453c60ab76b51a7) Merge branch 'release/1.1.0' is when it starts giving the driver error issue and not making it to the end (exhibit 2).

If I skip the tests as cri-s suggests it will build but it the application throws this exception when I try to launch it:

Inline image 1

I deleted this .openpnp directory and reran the application and it will now start up.  But it still gives a build error with mvn pakage (exhibit 3).



Jacob

***************(exhibit 1)***************

Exception in thread "Thread-3" java.lang.RuntimeException: java.nio.file.AccessDeniedException: C:\Users\JACOBC~1\AppData\Local\Temp\4043069010027692963\nu\pattern\opencv\windows\x86_64\opencv_java2411.dll
        at nu.pattern.OpenCV$TemporaryDirectory.delete(OpenCV.java:146)
        at nu.pattern.OpenCV$TemporaryDirectory$1.run(OpenCV.java:117)
Caused by: java.nio.file.AccessDeniedException: C:\Users\JACOBC~1\AppData\Local\Temp\4043069010027692963\nu\pattern\opencv\windows\x86_64\opencv_java2411.dll
        at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
        at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
        at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
        at java.nio.file.Files.deleteIfExists(Files.java:1165)
        at nu.pattern.OpenCV$TemporaryDirectory$2.visitFile(OpenCV.java:141)
        at nu.pattern.OpenCV$TemporaryDirectory$2.visitFile(OpenCV.java:130)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at nu.pattern.OpenCV$TemporaryDirectory.delete(OpenCV.java:130)
        ... 1 more

Results :

Tests run: 6, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ openpnp-gui ---
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-dependencies) @ openpnp-gui ---
[INFO] Copying jssc-2.8.0.jar to C:\openpnp\openpnp\target\lib\jssc-2.8.0.jar
[INFO] Copying stax-1.2.0.jar to C:\openpnp\openpnp\target\lib\stax-1.2.0.jar
[INFO] Copying beansbinding-1.2.1.jar to C:\openpnp\openpnp\target\lib\beansbinding-1.2.1.jar
[INFO] Copying jgoodies-forms-1.8.0.jar to C:\openpnp\openpnp\target\lib\jgoodies-forms-1.8.0.jar
[INFO] Copying batik-svggen-1.7.jar to C:\openpnp\openpnp\target\lib\batik-svggen-1.7.jar
[INFO] Copying lti-civil-20070920-1721.jar to C:\openpnp\openpnp\target\lib\lti-civil-20070920-1721.jar
[INFO] Copying batik-css-1.7.jar to C:\openpnp\openpnp\target\lib\batik-css-1.7.jar
[INFO] Copying batik-awt-util-1.7.jar to C:\openpnp\openpnp\target\lib\batik-awt-util-1.7.jar
[INFO] Copying xmlgraphics-commons-1.2.jar to C:\openpnp\openpnp\target\lib\xmlgraphics-commons-1.2.jar
[INFO] Copying commons-logging-1.0.4.jar to C:\openpnp\openpnp\target\lib\commons-logging-1.0.4.jar
[INFO] Copying batik-gvt-1.7.jar to C:\openpnp\openpnp\target\lib\batik-gvt-1.7.jar
[INFO] Copying batik-util-1.7.jar to C:\openpnp\openpnp\target\lib\batik-util-1.7.jar
[INFO] Copying batik-xml-1.7.jar to C:\openpnp\openpnp\target\lib\batik-xml-1.7.jar
[INFO] Copying junit-4.11.jar to C:\openpnp\openpnp\target\lib\junit-4.11.jar
[INFO] Copying avalon-framework-impl-4.3.1.jar to C:\openpnp\openpnp\target\lib\avalon-framework-impl-4.3.1.jar
[INFO] Copying commons-io-2.1.jar to C:\openpnp\openpnp\target\lib\commons-io-2.1.jar
[INFO] Copying slf4j-api-1.6.4.jar to C:\openpnp\openpnp\target\lib\slf4j-api-1.6.4.jar
[INFO] Copying simple-xml-2.7.1.jar to C:\openpnp\openpnp\target\lib\simple-xml-2.7.1.jar
[INFO] Copying batik-parser-1.7.jar to C:\openpnp\openpnp\target\lib\batik-parser-1.7.jar
[INFO] Copying jgoodies-common-1.8.0.jar to C:\openpnp\openpnp\target\lib\jgoodies-common-1.8.0.jar
[INFO] Copying swingx-all-1.6.4.jar to C:\openpnp\openpnp\target\lib\swingx-all-1.6.4.jar
[INFO] Copying batik-script-1.7.jar to C:\openpnp\openpnp\target\lib\batik-script-1.7.jar
[INFO] Copying xml-apis-ext-1.3.04.jar to C:\openpnp\openpnp\target\lib\xml-apis-ext-1.3.04.jar
[INFO] Copying slf4j-log4j12-1.6.4.jar to C:\openpnp\openpnp\target\lib\slf4j-log4j12-1.6.4.jar
[INFO] Copying batik-bridge-1.7.jar to C:\openpnp\openpnp\target\lib\batik-bridge-1.7.jar
[INFO] Copying guava-14.0.1.jar to C:\openpnp\openpnp\target\lib\guava-14.0.1.jar
[INFO] Copying gson-2.2.3.jar to C:\openpnp\openpnp\target\lib\gson-2.2.3.jar
[INFO] Copying avalon-framework-api-4.3.1.jar to C:\openpnp\openpnp\target\lib\avalon-framework-api-4.3.1.jar
[INFO] Copying batik-svg-dom-1.7.jar to C:\openpnp\openpnp\target\lib\batik-svg-dom-1.7.jar
[INFO] Copying log4j-1.2.16.jar to C:\openpnp\openpnp\target\lib\log4j-1.2.16.jar
[INFO] Copying xalan-2.6.0.jar to C:\openpnp\openpnp\target\lib\xalan-2.6.0.jar
[INFO] Copying batik-js-1.7.jar to C:\openpnp\openpnp\target\lib\batik-js-1.7.jar
[INFO] Copying hamcrest-core-1.3.jar to C:\openpnp\openpnp\target\lib\hamcrest-core-1.3.jar
[INFO] Copying core-2.2.jar to C:\openpnp\openpnp\target\lib\core-2.2.jar
[INFO] Copying opencv-2.4.11-2.jar to C:\openpnp\openpnp\target\lib\opencv-2.4.11-2.jar
[INFO] Copying xpp3-1.1.3.3.jar to C:\openpnp\openpnp\target\lib\xpp3-1.1.3.3.jar
[INFO] Copying xml-apis-1.3.04.jar to C:\openpnp\openpnp\target\lib\xml-apis-1.3.04.jar
[INFO] Copying jvfw-0.0.2.jar to C:\openpnp\openpnp\target\lib\jvfw-0.0.2.jar
[INFO] Copying fop-0.94.jar to C:\openpnp\openpnp\target\lib\fop-0.94.jar
[INFO] Copying utils-1.07.00.jar to C:\openpnp\openpnp\target\lib\utils-1.07.00.jar
[INFO] Copying batik-transcoder-1.7.jar to C:\openpnp\openpnp\target\lib\batik-transcoder-1.7.jar
[INFO] Copying batik-dom-1.7.jar to C:\openpnp\openpnp\target\lib\batik-dom-1.7.jar
[INFO] Copying commons-codec-1.6.jar to C:\openpnp\openpnp\target\lib\commons-codec-1.6.jar
[INFO] Copying batik-anim-1.7.jar to C:\openpnp\openpnp\target\lib\batik-anim-1.7.jar
[INFO] Copying javase-2.2.jar to C:\openpnp\openpnp\target\lib\javase-2.2.jar
[INFO] Copying batik-ext-1.7.jar to C:\openpnp\openpnp\target\lib\batik-ext-1.7.jar
[INFO] Copying stax-api-1.0.1.jar to C:\openpnp\openpnp\target\lib\stax-api-1.0.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.547 s
[INFO] Finished at: 2016-07-10T11:34:37-07:00
[INFO] Final Memory: 24M/308M
[INFO] ------------------------------------------------------------------------



***************(exhibit 2)***************



C:\openpnp\openpnp>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building openpnp-gui 0.0.1-alpha-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ openpnp-gui ---
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: C:\openpnp\openpnp
[INFO] Storing buildNumber: 1731d6 at timestamp: 1468176275861
[INFO] Storing buildScmBranch: master
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ openpnp-gui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 36 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ openpnp-gui ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 297 source files to C:\openpnp\openpnp\target\classes
[WARNING] /C:/openpnp/openpnp/src/main/java/org/openpnp/machine/reference/camera/wizards/LtiCivilCameraConfigurationWizard.java: Some input files use or override a deprecated API.
[WARNING] /C:/openpnp/openpnp/src/main/java/org/openpnp/machine/reference/camera/wizards/LtiCivilCameraConfigurationWizard.java: Recompile with -Xlint:deprecation for details.
[WARNING] /C:/openpnp/openpnp/src/main/java/org/openpnp/gui/support/AbstractConfigurationWizard.java: Some input files use unchecked or unsafe operations.
[WARNING] /C:/openpnp/openpnp/src/main/java/org/openpnp/gui/support/AbstractConfigurationWizard.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ openpnp-gui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ openpnp-gui ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to C:\openpnp\openpnp\target\test-classes
[WARNING] /C:/openpnp/openpnp/src/test/java/Utils2DTest.java: C:\openpnp\openpnp\src\test\java\Utils2DTest.java uses or overrides a deprecated API.
[WARNING] /C:/openpnp/openpnp/src/test/java/Utils2DTest.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ openpnp-gui ---
[INFO] Surefire report directory: C:\openpnp\openpnp\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running BasicJobTest
Configuration directory: C:\Users\JACOBC~1\AppData\Local\Temp\1468176285802-0\.openpnp
11:44:46,515 setEnabled(true)
11:44:46,518 Start R1
11:44:46,519 moveTo(ReferenceNozzle, (-10.000000, 0.000000, 0.000000, 0.000000 mm), 1.0)
11:44:46,521 pick(ReferenceNozzle ReferenceNozzleTip)
11:44:46,521 Start R2
11:44:46,521 moveTo(ReferenceNozzle, (-20.000000, 0.000000, 0.000000, 0.000000 mm), 1.0)
11:44:46,523 pick(ReferenceNozzle ReferenceNozzleTip)
11:44:46,524 moveTo(ReferenceNozzle, (0.000000, 10.000000, 0.000000, 45.000000 mm), 1.0)
11:44:46,525 moveTo(ReferenceNozzle, (0.000000, 10.000000, 0.825500, 45.000000 mm), 1.0)
11:44:46,525 place(ReferenceNozzle ReferenceNozzleTip)
11:44:46,525 moveTo(ReferenceNozzle, (0.000000, 10.000000, 0.000000, 45.000000 mm), 1.0)
11:44:46,526 Finish R1
11:44:46,526 moveTo(ReferenceNozzle, (0.000000, 20.000000, 0.000000, 90.000000 mm), 1.0)
11:44:46,526 moveTo(ReferenceNozzle, (0.000000, 20.000000, 0.825500, 90.000000 mm), 1.0)
11:44:46,527 place(ReferenceNozzle ReferenceNozzleTip)
11:44:46,527 moveTo(ReferenceNozzle, (0.000000, 20.000000, 0.000000, 90.000000 mm), 1.0)
11:44:46,527 Finish R2
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.83 sec
Running EagleLoaderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.391 sec
Running OpenCvTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.552 sec
Running SampleJobTest
Configuration directory: C:\Users\JACOBC~1\AppData\Local\Temp\1468176288532-0\.openpnp
11:44:48,534 No packages.xml found in configuration directory, loading defaults.
11:44:48,557 No parts.xml found in configuration directory, loading defaults.
11:44:48,569 No machine.xml found in configuration directory, loading defaults.
11:44:48,592 Defaults were loaded. Saving to configuration directory.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.096 sec <<< FAILURE!
testSampleJob(SampleJobTest)  Time elapsed: 0.094 sec  <<< ERROR!
java.lang.ClassCastException: org.openpnp.machine.reference.driver.test.TestDriver cannot be cast to org.openpnp.machine.reference.driver.NullDriver
        at SampleJobTest.testSampleJob(SampleJobTest.java:54)
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.077 sec
Running VisionUtilsTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Exception in thread "Thread-3" java.lang.RuntimeException: java.nio.file.AccessDeniedException: C:\Users\JACOBC~1\AppData\Local\Temp\293574248167756089\nu\pattern\opencv\windows\x86_64\opencv_java2411.dll
        at nu.pattern.OpenCV$TemporaryDirectory.delete(OpenCV.java:146)
        at nu.pattern.OpenCV$TemporaryDirectory$1.run(OpenCV.java:117)
Caused by: java.nio.file.AccessDeniedException: C:\Users\JACOBC~1\AppData\Local\Temp\293574248167756089\nu\pattern\opencv\windows\x86_64\opencv_java2411.dll
        at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
        at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
        at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
        at java.nio.file.Files.deleteIfExists(Files.java:1165)
        at nu.pattern.OpenCV$TemporaryDirectory$2.visitFile(OpenCV.java:141)
        at nu.pattern.OpenCV$TemporaryDirectory$2.visitFile(OpenCV.java:130)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at nu.pattern.OpenCV$TemporaryDirectory.delete(OpenCV.java:130)
        ... 1 more

Results :

Tests in error:
  testSampleJob(SampleJobTest): org.openpnp.machine.reference.driver.test.TestDriver cannot be cast to org.openpnp.machine.reference.driver.NullDriver

Tests run: 8, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.778 s
[INFO] Finished at: 2016-07-10T11:44:48-07:00
[INFO] Final Memory: 22M/262M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project openpnp-gui: There are test failures.
[ERROR]
[ERROR] Please refer to C:\openpnp\openpnp\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:




***************(exhibit 3)***************



C:\openpnp\openpnp>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building openpnp-gui 0.0.1-alpha-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ openpnp-gui ---
[INFO] ShortRevision tag detected. The value is '6'.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
[INFO] Working directory: C:\openpnp\openpnp
[INFO] Storing buildNumber: 9deb48 at timestamp: 1468176898852
[INFO] Storing buildScmBranch: master
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ openpnp-gui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 52 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ openpnp-gui ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ openpnp-gui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ openpnp-gui ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ openpnp-gui ---
[INFO] Surefire report directory: C:\openpnp\openpnp\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running BasicJobTest
Configuration directory: C:\Users\JACOBC~1\AppData\Local\Temp\1468176900295-0\.openpnp
11:55:02,045 setEnabled(true)
11:55:02,047 Start R1
11:55:02,048 moveTo(ReferenceNozzle, (-10.000000, 0.000000, 0.000000, 0.000000 mm), 1.0)
11:55:02,049 pick(ReferenceNozzle ReferenceNozzleTip)
11:55:02,049 Start R2
11:55:02,050 moveTo(ReferenceNozzle, (-20.000000, 0.000000, 0.000000, 0.000000 mm), 1.0)
11:55:02,051 pick(ReferenceNozzle ReferenceNozzleTip)
11:55:02,076 moveTo(ReferenceNozzle, (0.000000, 10.000000, 0.000000, 45.000000 mm), 1.0)
11:55:02,076 moveTo(ReferenceNozzle, (0.000000, 10.000000, 0.825500, 45.000000 mm), 1.0)
11:55:02,076 place(ReferenceNozzle ReferenceNozzleTip)
11:55:02,076 moveTo(ReferenceNozzle, (0.000000, 10.000000, 0.000000, 45.000000 mm), 1.0)
11:55:02,077 Finish R1
11:55:02,077 moveTo(ReferenceNozzle, (0.000000, 20.000000, 0.000000, 90.000000 mm), 1.0)
11:55:02,077 moveTo(ReferenceNozzle, (0.000000, 20.000000, 0.825500, 90.000000 mm), 1.0)
11:55:02,077 place(ReferenceNozzle ReferenceNozzleTip)
11:55:02,078 moveTo(ReferenceNozzle, (0.000000, 20.000000, 0.000000, 90.000000 mm), 1.0)
11:55:02,078 Finish R2
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.903 sec
Running EagleLoaderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.299 sec
Running OpenCvTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec
Running SampleJobTest
Configuration directory: C:\Users\JACOBC~1\AppData\Local\Temp\1468176902468-0\.openpnp
11:55:02,468 No packages.xml found in configuration directory, loading defaults.
11:55:02,476 No parts.xml found in configuration directory, loading defaults.
11:55:02,482 No machine.xml found in configuration directory, loading defaults.
11:55:02,501 Defaults were loaded. Saving to configuration directory.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.095 sec <<< FAILURE!
testSampleJob(SampleJobTest)  Time elapsed: 0.093 sec  <<< ERROR!
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 sec
Running VisionUtilsTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Exception in thread "Thread-1" java.lang.RuntimeException: java.nio.file.AccessDeniedException: C:\Users\JACOBC~1\AppData\Local\Temp\8199655587309718332\nu\pattern\opencv\windows\x86_64\opencv_java2411.dll
        at nu.pattern.OpenCV$TemporaryDirectory.delete(OpenCV.java:146)
        at nu.pattern.OpenCV$TemporaryDirectory$1.run(OpenCV.java:117)
Caused by: java.nio.file.AccessDeniedException: C:\Users\JACOBC~1\AppData\Local\Temp\8199655587309718332\nu\pattern\opencv\windows\x86_64\opencv_java2411.dll
        at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
        at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
        at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
        at java.nio.file.Files.deleteIfExists(Files.java:1165)
        at nu.pattern.OpenCV$TemporaryDirectory$2.visitFile(OpenCV.java:141)
        at nu.pattern.OpenCV$TemporaryDirectory$2.visitFile(OpenCV.java:130)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at nu.pattern.OpenCV$TemporaryDirectory.delete(OpenCV.java:130)
        ... 1 more

Results :

Tests in error:
  testSampleJob(SampleJobTest): org.openpnp.machine.reference.driver.test.TestDriver cannot be cast to org.openpnp.machine.reference.driver.NullDriver

Tests run: 8, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.753 s
[INFO] Finished at: 2016-07-10T11:55:02-07:00
[INFO] Final Memory: 11M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project openpnp-gui: There are test failures.
[ERROR]
[ERROR] Please refer to C:\openpnp\openpnp\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:

For more options, visit https://groups.google.com/d/optout.



--
Jacob Christ
ProLinear/PONTECH, Inc.
1-877-985-9286 Phone
1-413-235-1651 Fax
http://www.pontech.com

Jason von Nieda

unread,
Jul 11, 2016, 2:15:02 PM7/11/16
to ope...@googlegroups.com
Hi Jacob,

A few things:

1. The AccessDeniedException is normal and should not cause the tests to fail. This is due to a bug in the OpenCV library on Windows but doesn't really cause any problems aside from leaving some trash behind. There is more information about it here: https://github.com/PatternConsulting/opencv/issues/10 but you can basically ignore this one.
2. It looks like deleting the old .openpnp directory fixed the build - unless I am mis-reading your logs. That tells me that the test system is not using the correct configuration directory on Windows. I'll file an issue to look into this. For the mean time, you can build without tests as Cri S said - it should not cause any problems.

Jason


Jacob Christ

unread,
Jul 11, 2016, 5:32:32 PM7/11/16
to ope...@googlegroups.com
Jason,

Looks like its building.  If I have time I'll try to figure out whats wrong as well, but I'm a bit overwhelmed with just wrapping my head around the code now.

Jacob


For more options, visit https://groups.google.com/d/optout.

Jason von Nieda

unread,
Jul 11, 2016, 5:34:09 PM7/11/16
to ope...@googlegroups.com
Thanks Jacob, I filed an issue to look into this as well: https://github.com/openpnp/openpnp/issues/301

Jason


Reply all
Reply to author
Forward
0 new messages