You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Sunny Zhang <Su...@microsoft.com.INVALID> on 2019/09/10 00:14:56 UTC

Build ERROR with amven-surefire-plugin

Hi! I was blocked for this for a long while, hope anyone can help!

I always get ERROR when I build with
mvn -T C2.0 clean install -Pinclude-grp

[INFO] dockermaven-stateless .............................. SUCCESS [ 17.104 s]
[INFO] dockerhub .......................................... SUCCESS [ 19.432 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:39 min (Wall Clock)
[INFO] Finished at: 2019-09-09T15:36:59-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project nifi-properties-loader: There are test failures.
[ERROR]
[ERROR] Please refer to D:\Projects\Nifi-Original\nifi-master\nifi-nar-bundles\nifi-framework-bundle\nifi-framework\nifi-properties-loader\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :nifi-properties-loader

^ this is 100% the fresh master branch code, but I still can't build.

If I skip test
mvn -T C2.0 clean install -Pinclude-grpc -DskipTests
then it will succeed.

How can I fix it??

Thanks.

Best,
Sunny



RE: Build ERROR with amven-surefire-plugin

Posted by Sunny Zhang <Su...@microsoft.com.INVALID>.
Somehow the clone link is changed to a long link when I paste, please ignore it - it should be:
"git clone https://gitbox.apache.org/repos/asf/nifi.git"
^ how I clone the repo, then I did: 
git config --global core.longpaths true 
git config --global core.autocrlf false
mvn -T C2.0 clean install -Pinclude-grpc

-----Original Message-----
From: Sunny Zhang <Su...@microsoft.com.INVALID> 
Sent: Wednesday, September 11, 2019 4:47 PM
To: dev@nifi.apache.org
Cc: Andy LoPresto <al...@gmail.com>
Subject: RE: Build ERROR with amven-surefire-plugin

Hi,

I double checked and think I'm up to date with master branch XD. And I started over and 
git clone https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.apache.org%2Frepos%2Fasf%2Fnifi.git&amp;data=02%7C01%7CSunny.Zhang%40microsoft.com%7C7a7724da5e0d4b59298608d7371273e4%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637038424710472432&amp;sdata=1SBZx0XKs9TMfll%2Bia0Y58DugfMwH9BqfjGmM1hW4d8%3D&amp;reserved=0
git config --global core.longpaths true 
git config --global core.autocrlf false
mvn -T C2.0 clean install -Pinclude-grpc

it still shows Error 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project nifi-properties-loader: There are test failures.
[ERROR]
[ERROR] Please refer to D:\Projects\Nifi-Original\nifi\nifi-nar-bundles\nifi-framework-bundle\nifi-framework\nifi-properties-loader\target\surefire-reports forthe individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
----------------
my log for the branch:
Log:

Author: Scott Aslan <sc...@gmail.com>
Date:   Fri Sep 6 15:45:46 2019 -0400

    [NIFI-6629] calc correct width for usage ellipsis

    This closes #3708

commit d9c8d0c5a7814619125332bfb69a72ad27023500
Author: Scott Aslan <sc...@gmail.com>
Date:   Fri Sep 6 14:42:57 2019 -0400

    [NIFI-6625] add ellipsis and tooltip to list of parameters in usage list

    This closes #3707

commit 250e1b0297c353086e593ea14b6ee2f5f32eebce
Author: Scott Aslan <sc...@gmail.com>
Date:   Fri Sep 6 13:29:48 2019 -0400

    [NIFI-6639] consistent ux for checkboxes and their correspoinding field

----------------
Errors in output files: org.apache.nifi.properties.AESSensitivePropertyProviderTest-output.txt and output file: org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest-output.txt
//
// output file: org.apache.nifi.properties.AESSensitivePropertyProviderTest-output.txt
//
[main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - Error decrypting a protected value
javax.crypto.AEADBadTagException: mac check in GCM failed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
	at org.apache.nifi.properties.SensitivePropertyProvider$unprotect$0.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy:375)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:405)
	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27.doCall(AESSensitivePropertyProviderTest.groovy:374)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:427)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2296)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2281)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2322)
	at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:246)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest.testShouldHandleUnprotectMalformedIV(AESSensitivePropertyProviderTest.groovy:366)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	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:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[main] INFO org.apache.nifi.properties.AESSensitivePropertyProviderTest - [EXPECTED] Error decrypting a protected value for keySize 128 and cipher text [cfSKDr9aF2bpvgk6||UN2MUuGKUOGew8A8pi6DtmyjXTYHPlU+MM8g3Lwuh7pNXzurfctMMHc]
[main] INFO org.apache.nifi.properties.AESSensitivePropertyProviderTest - Initialized AES Sensitive Property Provider with key size 192
[main] INFO org.apache.nifi.properties.AESSensitivePropertyProviderTest - Manipulated f7Bl3X4luUm1ddFH||WMIWUh3Iwr8JaY/yRo/bae9sWDEjVByIJ4a7DR55YBb2y3e/fxsCc/c to
                                                                                          f7Bl3X4lm1UuddFH||WMIWUh3Iwr8JaY/yRo/bae9sWDEjVByIJ4a7DR55YBb2y3e/fxsCc/c
[main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - Error decrypting a protected value
javax.crypto.AEADBadTagException: mac check in GCM failed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
	at org.apache.nifi.properties.SensitivePropertyProvider$unprotect$0.call(Unknown Source)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy:375)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:405)
	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27.doCall(AESSensitivePropertyProviderTest.groovy:374)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:427)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2296)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2281)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2322)
	at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:246)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest.testShouldHandleUnprotectMalformedIV(AESSensitivePropertyProviderTest.groovy:366)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	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:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[main] INFO org.apache.nifi.properties.AESSensitivePropertyProviderTest - [EXPECTED] Error decrypting a protected value for keySize 192 and cipher text [f7Bl3X4lm1UuddFH||WMIWUh3Iwr8JaY/yRo/bae9sWDEjVByIJ4a7DR55YBb2y3e/fxsCc/c]
[main] INFO org.apache.nifi.properties.AESSensitivePropertyProviderTest - Initialized AES Sensitive Property Provider with key size 256
[main] INFO org.apache.nifi.properties.AESSensitivePropertyProviderTest - Manipulated EE617jSjaDrSoaU3||OS6eydBDVTAvj1+mD3jb+ruLYEsCe8ABPX6SolrgRrWdmj6sFnrRyx0 to
                                                                                          EE617jSjarDSoaU3||OS6eydBDVTAvj1+mD3jb+ruLYEsCe8ABPX6SolrgRrWdmj6sFnrRyx0
[main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - Error decrypting a protected value
javax.crypto.AEADBadTagException: mac check in GCM failed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
	at org.apache.nifi.properties.SensitivePropertyProvider$unprotect$0.call(Unknown Source)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy:375)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:405)
	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27.doCall(AESSensitivePropertyProviderTest.groovy:374)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:427)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2296)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2281)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2322)
	at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:246)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest.testShouldHandleUnprotectMalformedIV(AESSensitivePropertyProviderTest.groovy:366)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	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:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)


//
// output file: org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest-output.txt
//
[main] INFO org.apache.nifi.properties.ProtectedNiFiProperties - There are 3 protected properties of 7 sensitive properties (75%)
[main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - Error decrypting a protected value
javax.crypto.AEADBadTagException: mac check in GCM failed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
	at org.apache.nifi.properties.ProtectedNiFiProperties.unprotectValue(ProtectedNiFiProperties.java:524)
	at org.apache.nifi.properties.ProtectedNiFiProperties.getUnprotectedProperties(ProtectedNiFiProperties.java:343)
	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.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:213)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:119)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy:412)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:405)
	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest.testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue(ProtectedNiFiPropertiesGroovyTest.groovy:411)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[main] WARN org.apache.nifi.properties.ProtectedNiFiProperties - Failed to unprotect 'nifi.security.keystorePasswd'
SensitivePropertyProtectionException: Error unprotecting value for nifi.security.keystorePasswd
	at org.apache.nifi.properties.ProtectedNiFiProperties.unprotectValue(ProtectedNiFiProperties.java:526)
	at org.apache.nifi.properties.ProtectedNiFiProperties.getUnprotectedProperties(ProtectedNiFiProperties.java:343)
	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.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:213)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:119)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy:412)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:405)
	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest.testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue(ProtectedNiFiPropertiesGroovyTest.groovy:411)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
Caused by: javax.crypto.AEADBadTagException: mac check in GCM failed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
	at org.apache.nifi.properties.ProtectedNiFiProperties.unprotectValue(ProtectedNiFiProperties.java:524)
	... 64 more





-----Original Message-----
From: Andy LoPresto <al...@gmail.com> 
Sent: Tuesday, September 10, 2019 4:32 PM
To: dev@nifi.apache.org
Subject: Re: Build ERROR with amven-surefire-plugin

Hi Sunny, which version of the code are you trying to build? I remember there was a bug with that test code when the underlying Groovy version was updated a little while ago (post-1.9.2), but it has been resolved on master. 

Andy LoPresto
alopresto@apache.org
alopresto.apache@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Sep 10, 2019, at 15:50, Sunny Zhang <Su...@microsoft.com.invalid> wrote:
> 
> Oh I see! Thanks! Here I found the output files, these two contains ERROR msg:
> org.apache.nifi.properties.AESSensitivePropertyProviderTest-output.txt  
> and 
> org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest-output.tx
> t
> 
> /// In org.apache.nifi.properties.AESSensitivePropertyProviderTest-output.txt:
> 
> [main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - 
> Error decrypting a protected value
> javax.crypto.AEADBadTagException: mac check in GCM failed
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
>    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
>    at javax.crypto.Cipher.doFinal(Cipher.java:2164)
>    at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
>    at org.apache.nifi.properties.SensitivePropertyProvider$unprotect$0.call(Unknown Source)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>    at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy:375)
>    at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy)
>    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
>    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
>    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
>    at groovy.lang.Closure.call(Closure.java:411)
>    at groovy.lang.Closure.call(Closure.java:405)
>    at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
>    at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
>    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
>    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
>    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
>    at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27.doCall(AESSensitivePropertyProviderTest.groovy:374)
>    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
>    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
>    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
>    at groovy.lang.Closure.call(Closure.java:411)
>    at groovy.lang.Closure.call(Closure.java:427)
>    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2296)
>    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2281)
>    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2322)
>    at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)
>    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:246)
>    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>    at org.apache.nifi.properties.AESSensitivePropertyProviderTest.testShouldHandleUnprotectMalformedIV(AESSensitivePropertyProviderTest.groovy:366)
>    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>    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:383)
>    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
>    at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
>    at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:4
> 17)
> 
> /// In org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest-output.txt:
> 
> [main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - 
> Error decrypting a protected value
> javax.crypto.AEADBadTagException: mac check in GCM failed
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
>    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
>    at javax.crypto.Cipher.doFinal(Cipher.java:2164)
>    at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
>    at org.apache.nifi.properties.ProtectedNiFiProperties.unprotectValue(ProtectedNiFiProperties.java:524)
>    at org.apache.nifi.properties.ProtectedNiFiProperties.getUnprotectedProperties(ProtectedNiFiProperties.java:343)
>    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.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
>    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:213)
>    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:119)
>    at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy:412)
>    at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy)
>    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
>    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
>    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
>    at groovy.lang.Closure.call(Closure.java:411)
>    at groovy.lang.Closure.call(Closure.java:405)
>    at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
>    at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
>    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>    at java.lang.reflect.Method.invoke(Method.java:498)
>    at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
>    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190)
>    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
>    at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest.testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue(ProtectedNiFiPropertiesGroovyTest.groovy:411)
>    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>    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:383)
>    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
>    at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
>    at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:4
> 17)-----Original Message-----
> From: Bryan Bende <bb...@gmail.com>
> Sent: Tuesday, September 10, 2019 11:22 AM
> To: dev@nifi.apache.org
> Subject: Re: Build ERROR with amven-surefire-plugin
> 
> From the original error it looks like the module that failed was:
> 
> nifi-nar-bundles\nifi-framework-bundle\nifi-framework\nifi-properties-
> loader
> 
> The test report you sent was for nifi-framework-api and doesn't have any failures.
> 
>> On Tue, Sep 10, 2019 at 2:15 PM Sunny Zhang <Su...@microsoft.com.invalid> wrote:
>> 
>> Hey thanks for replying.
>> 
>> Here are all the individual test results from "\nifi-framework-api\target\surefire-reports":
>> 
>> 
>> ---------------------------------------------------------------------
>> -
>> --------- Test set: 
>> org.apache.nifi.authorization.TestAbstractPolicyBasedAuthorizer
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 1.25 s - in
>> org.apache.nifi.authorization.TestAbstractPolicyBasedAuthorizer
>> 
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------
>> Test set: org.apache.nifi.authorization.TestAccessPolicy
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 0.001 s - in org.apache.nifi.authorization.TestAccessPolicy
>> 
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------
>> Test set: org.apache.nifi.authorization.TestGroup
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 0.001 s - in org.apache.nifi.authorization.TestGroup
>> 
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------
>> Test set: org.apache.nifi.authorization.TestUser
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 0 s - in org.apache.nifi.authorization.TestUser
>> 
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------
>> Test set: org.apache.nifi.bundle.BundleCoordinateTest
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 0 s - in org.apache.nifi.bundle.BundleCoordinateTest
>> 
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------
>> Test set: org.apache.nifi.bundle.BundleDetailsTest
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 0 s - in org.apache.nifi.bundle.BundleDetailsTest
>> 
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------
>> Test set: org.apache.nifi.web.TestRevision
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 0 s - in org.apache.nifi.web.TestRevision
>> 
>> 
>> Thanks,
>> Sunny
>> 
>> 
>> 
>> 
>> -----Original Message-----
>> From: Joe Witt <jo...@gmail.com>
>> Sent: Monday, September 9, 2019 6:00 PM
>> To: dev@nifi.apache.org
>> Subject: Re: Build ERROR with amven-surefire-plugin
>> 
>> Sunny
>> 
>> You’ll need to share the test failure output.
>> 
>> Thanks
>> 
>>> On Mon, Sep 9, 2019 at 8:15 PM Sunny Zhang <Su...@microsoft.com.invalid> wrote:
>>> 
>>> Hi! I was blocked for this for a long while, hope anyone can help!
>>> 
>>> I always get ERROR when I build with mvn -T C2.0 clean install 
>>> -Pinclude-grp
>>> 
>>> [INFO] dockermaven-stateless .............................. SUCCESS 
>>> [
>>> 17.104 s]
>>> [INFO] dockerhub .......................................... SUCCESS 
>>> [
>>> 19.432 s]
>>> [INFO]
>>> --------------------------------------------------------------------
>>> --
>>> --
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> --------------------------------------------------------------------
>>> --
>>> -- [INFO] Total time:  01:39 min (Wall Clock) [INFO] Finished at:
>>> 2019-09-09T15:36:59-07:00 [INFO]
>>> --------------------------------------------------------------------
>>> --
>>> --
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test
>>> (default-test) on project nifi-properties-loader: There are test failures.
>>> [ERROR]
>>> [ERROR] Please refer to
>>> D:\Projects\Nifi-Original\nifi-master\nifi-nar-bundles\nifi-framewor
>>> k-
>>> bundle\nifi-framework\nifi-properties-loader\target\surefire-reports
>>> for the individual test results.
>>> [ERROR] Please refer to dump files (if any exist) 
>>> [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
>>> [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]
>>> https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcwi
>>> ki
>>> .apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FMojoFailureException&am
>>> p;
>>> data=02%7C01%7CSunny.Zhang%40microsoft.com%7C4b7505235fac452fa07108d
>>> 73
>>> 58a466c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637036740333004
>>> 29
>>> 2&amp;sdata=L2ykDK7Mywiuy7CwU%2BWmyEgJAp8pAagLEuo9Lll4Abs%3D&amp;res
>>> er
>>> ved=0
>>> [ERROR]
>>> [ERROR] After correcting the problems, you can resume the build with 
>>> the command
>>> [ERROR]   mvn <goals> -rf :nifi-properties-loader
>>> 
>>> ^ this is 100% the fresh master branch code, but I still can't build.
>>> 
>>> If I skip test
>>> mvn -T C2.0 clean install -Pinclude-grpc -DskipTests then it will 
>>> succeed.
>>> 
>>> How can I fix it??
>>> 
>>> Thanks.
>>> 
>>> Best,
>>> Sunny
>>> 
>>> 
>>> 

RE: Build ERROR with amven-surefire-plugin

Posted by Sunny Zhang <Su...@microsoft.com.INVALID>.
Hi,

I double checked and think I'm up to date with master branch XD. And I started over and 
git clone https://gitbox.apache.org/repos/asf/nifi.git
git config --global core.longpaths true 
git config --global core.autocrlf false
mvn -T C2.0 clean install -Pinclude-grpc

it still shows Error 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project nifi-properties-loader: There are test failures.
[ERROR]
[ERROR] Please refer to D:\Projects\Nifi-Original\nifi\nifi-nar-bundles\nifi-framework-bundle\nifi-framework\nifi-properties-loader\target\surefire-reports forthe individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
----------------
my log for the branch:
Log:

Author: Scott Aslan <sc...@gmail.com>
Date:   Fri Sep 6 15:45:46 2019 -0400

    [NIFI-6629] calc correct width for usage ellipsis

    This closes #3708

commit d9c8d0c5a7814619125332bfb69a72ad27023500
Author: Scott Aslan <sc...@gmail.com>
Date:   Fri Sep 6 14:42:57 2019 -0400

    [NIFI-6625] add ellipsis and tooltip to list of parameters in usage list

    This closes #3707

commit 250e1b0297c353086e593ea14b6ee2f5f32eebce
Author: Scott Aslan <sc...@gmail.com>
Date:   Fri Sep 6 13:29:48 2019 -0400

    [NIFI-6639] consistent ux for checkboxes and their correspoinding field

----------------
Errors in output files: org.apache.nifi.properties.AESSensitivePropertyProviderTest-output.txt and output file: org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest-output.txt
//
// output file: org.apache.nifi.properties.AESSensitivePropertyProviderTest-output.txt
//
[main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - Error decrypting a protected value
javax.crypto.AEADBadTagException: mac check in GCM failed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
	at org.apache.nifi.properties.SensitivePropertyProvider$unprotect$0.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy:375)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:405)
	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27.doCall(AESSensitivePropertyProviderTest.groovy:374)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:427)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2296)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2281)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2322)
	at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:246)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest.testShouldHandleUnprotectMalformedIV(AESSensitivePropertyProviderTest.groovy:366)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	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:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[main] INFO org.apache.nifi.properties.AESSensitivePropertyProviderTest - [EXPECTED] Error decrypting a protected value for keySize 128 and cipher text [cfSKDr9aF2bpvgk6||UN2MUuGKUOGew8A8pi6DtmyjXTYHPlU+MM8g3Lwuh7pNXzurfctMMHc]
[main] INFO org.apache.nifi.properties.AESSensitivePropertyProviderTest - Initialized AES Sensitive Property Provider with key size 192
[main] INFO org.apache.nifi.properties.AESSensitivePropertyProviderTest - Manipulated f7Bl3X4luUm1ddFH||WMIWUh3Iwr8JaY/yRo/bae9sWDEjVByIJ4a7DR55YBb2y3e/fxsCc/c to
                                                                                          f7Bl3X4lm1UuddFH||WMIWUh3Iwr8JaY/yRo/bae9sWDEjVByIJ4a7DR55YBb2y3e/fxsCc/c
[main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - Error decrypting a protected value
javax.crypto.AEADBadTagException: mac check in GCM failed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
	at org.apache.nifi.properties.SensitivePropertyProvider$unprotect$0.call(Unknown Source)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy:375)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:405)
	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27.doCall(AESSensitivePropertyProviderTest.groovy:374)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:427)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2296)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2281)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2322)
	at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:246)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest.testShouldHandleUnprotectMalformedIV(AESSensitivePropertyProviderTest.groovy:366)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	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:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[main] INFO org.apache.nifi.properties.AESSensitivePropertyProviderTest - [EXPECTED] Error decrypting a protected value for keySize 192 and cipher text [f7Bl3X4lm1UuddFH||WMIWUh3Iwr8JaY/yRo/bae9sWDEjVByIJ4a7DR55YBb2y3e/fxsCc/c]
[main] INFO org.apache.nifi.properties.AESSensitivePropertyProviderTest - Initialized AES Sensitive Property Provider with key size 256
[main] INFO org.apache.nifi.properties.AESSensitivePropertyProviderTest - Manipulated EE617jSjaDrSoaU3||OS6eydBDVTAvj1+mD3jb+ruLYEsCe8ABPX6SolrgRrWdmj6sFnrRyx0 to
                                                                                          EE617jSjarDSoaU3||OS6eydBDVTAvj1+mD3jb+ruLYEsCe8ABPX6SolrgRrWdmj6sFnrRyx0
[main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - Error decrypting a protected value
javax.crypto.AEADBadTagException: mac check in GCM failed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
	at org.apache.nifi.properties.SensitivePropertyProvider$unprotect$0.call(Unknown Source)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy:375)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:405)
	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27.doCall(AESSensitivePropertyProviderTest.groovy:374)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:427)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2296)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2281)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2322)
	at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:246)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest.testShouldHandleUnprotectMalformedIV(AESSensitivePropertyProviderTest.groovy:366)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	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:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)


//
// output file: org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest-output.txt
//
[main] INFO org.apache.nifi.properties.ProtectedNiFiProperties - There are 3 protected properties of 7 sensitive properties (75%)
[main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - Error decrypting a protected value
javax.crypto.AEADBadTagException: mac check in GCM failed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
	at org.apache.nifi.properties.ProtectedNiFiProperties.unprotectValue(ProtectedNiFiProperties.java:524)
	at org.apache.nifi.properties.ProtectedNiFiProperties.getUnprotectedProperties(ProtectedNiFiProperties.java:343)
	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.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:213)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:119)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy:412)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:405)
	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest.testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue(ProtectedNiFiPropertiesGroovyTest.groovy:411)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[main] WARN org.apache.nifi.properties.ProtectedNiFiProperties - Failed to unprotect 'nifi.security.keystorePasswd'
SensitivePropertyProtectionException: Error unprotecting value for nifi.security.keystorePasswd
	at org.apache.nifi.properties.ProtectedNiFiProperties.unprotectValue(ProtectedNiFiProperties.java:526)
	at org.apache.nifi.properties.ProtectedNiFiProperties.getUnprotectedProperties(ProtectedNiFiProperties.java:343)
	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.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:213)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:119)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy:412)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:405)
	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest.testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue(ProtectedNiFiPropertiesGroovyTest.groovy:411)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
Caused by: javax.crypto.AEADBadTagException: mac check in GCM failed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
	at org.apache.nifi.properties.ProtectedNiFiProperties.unprotectValue(ProtectedNiFiProperties.java:524)
	... 64 more





-----Original Message-----
From: Andy LoPresto <al...@gmail.com> 
Sent: Tuesday, September 10, 2019 4:32 PM
To: dev@nifi.apache.org
Subject: Re: Build ERROR with amven-surefire-plugin

Hi Sunny, which version of the code are you trying to build? I remember there was a bug with that test code when the underlying Groovy version was updated a little while ago (post-1.9.2), but it has been resolved on master. 

Andy LoPresto
alopresto@apache.org
alopresto.apache@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Sep 10, 2019, at 15:50, Sunny Zhang <Su...@microsoft.com.invalid> wrote:
> 
> Oh I see! Thanks! Here I found the output files, these two contains ERROR msg:
> org.apache.nifi.properties.AESSensitivePropertyProviderTest-output.txt  
> and 
> org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest-output.tx
> t
> 
> /// In org.apache.nifi.properties.AESSensitivePropertyProviderTest-output.txt:
> 
> [main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - 
> Error decrypting a protected value
> javax.crypto.AEADBadTagException: mac check in GCM failed
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
>    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
>    at javax.crypto.Cipher.doFinal(Cipher.java:2164)
>    at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
>    at org.apache.nifi.properties.SensitivePropertyProvider$unprotect$0.call(Unknown Source)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>    at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy:375)
>    at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy)
>    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
>    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
>    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
>    at groovy.lang.Closure.call(Closure.java:411)
>    at groovy.lang.Closure.call(Closure.java:405)
>    at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
>    at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
>    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
>    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
>    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
>    at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27.doCall(AESSensitivePropertyProviderTest.groovy:374)
>    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
>    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
>    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
>    at groovy.lang.Closure.call(Closure.java:411)
>    at groovy.lang.Closure.call(Closure.java:427)
>    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2296)
>    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2281)
>    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2322)
>    at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)
>    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:246)
>    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>    at org.apache.nifi.properties.AESSensitivePropertyProviderTest.testShouldHandleUnprotectMalformedIV(AESSensitivePropertyProviderTest.groovy:366)
>    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>    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:383)
>    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
>    at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
>    at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:4
> 17)
> 
> /// In org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest-output.txt:
> 
> [main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - 
> Error decrypting a protected value
> javax.crypto.AEADBadTagException: mac check in GCM failed
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
>    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
>    at javax.crypto.Cipher.doFinal(Cipher.java:2164)
>    at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
>    at org.apache.nifi.properties.ProtectedNiFiProperties.unprotectValue(ProtectedNiFiProperties.java:524)
>    at org.apache.nifi.properties.ProtectedNiFiProperties.getUnprotectedProperties(ProtectedNiFiProperties.java:343)
>    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.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
>    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:213)
>    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:119)
>    at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy:412)
>    at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy)
>    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
>    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
>    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
>    at groovy.lang.Closure.call(Closure.java:411)
>    at groovy.lang.Closure.call(Closure.java:405)
>    at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
>    at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
>    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>    at java.lang.reflect.Method.invoke(Method.java:498)
>    at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
>    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190)
>    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
>    at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest.testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue(ProtectedNiFiPropertiesGroovyTest.groovy:411)
>    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>    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:383)
>    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
>    at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
>    at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:4
> 17)-----Original Message-----
> From: Bryan Bende <bb...@gmail.com>
> Sent: Tuesday, September 10, 2019 11:22 AM
> To: dev@nifi.apache.org
> Subject: Re: Build ERROR with amven-surefire-plugin
> 
> From the original error it looks like the module that failed was:
> 
> nifi-nar-bundles\nifi-framework-bundle\nifi-framework\nifi-properties-
> loader
> 
> The test report you sent was for nifi-framework-api and doesn't have any failures.
> 
>> On Tue, Sep 10, 2019 at 2:15 PM Sunny Zhang <Su...@microsoft.com.invalid> wrote:
>> 
>> Hey thanks for replying.
>> 
>> Here are all the individual test results from "\nifi-framework-api\target\surefire-reports":
>> 
>> 
>> ---------------------------------------------------------------------
>> -
>> --------- Test set: 
>> org.apache.nifi.authorization.TestAbstractPolicyBasedAuthorizer
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 1.25 s - in
>> org.apache.nifi.authorization.TestAbstractPolicyBasedAuthorizer
>> 
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------
>> Test set: org.apache.nifi.authorization.TestAccessPolicy
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 0.001 s - in org.apache.nifi.authorization.TestAccessPolicy
>> 
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------
>> Test set: org.apache.nifi.authorization.TestGroup
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 0.001 s - in org.apache.nifi.authorization.TestGroup
>> 
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------
>> Test set: org.apache.nifi.authorization.TestUser
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 0 s - in org.apache.nifi.authorization.TestUser
>> 
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------
>> Test set: org.apache.nifi.bundle.BundleCoordinateTest
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 0 s - in org.apache.nifi.bundle.BundleCoordinateTest
>> 
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------
>> Test set: org.apache.nifi.bundle.BundleDetailsTest
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 0 s - in org.apache.nifi.bundle.BundleDetailsTest
>> 
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------------------------------
>> -
>> ---------------------------------------------
>> Test set: org.apache.nifi.web.TestRevision
>> ---------------------------------------------------------------------
>> -
>> --------- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed: 0 s - in org.apache.nifi.web.TestRevision
>> 
>> 
>> Thanks,
>> Sunny
>> 
>> 
>> 
>> 
>> -----Original Message-----
>> From: Joe Witt <jo...@gmail.com>
>> Sent: Monday, September 9, 2019 6:00 PM
>> To: dev@nifi.apache.org
>> Subject: Re: Build ERROR with amven-surefire-plugin
>> 
>> Sunny
>> 
>> You’ll need to share the test failure output.
>> 
>> Thanks
>> 
>>> On Mon, Sep 9, 2019 at 8:15 PM Sunny Zhang <Su...@microsoft.com.invalid> wrote:
>>> 
>>> Hi! I was blocked for this for a long while, hope anyone can help!
>>> 
>>> I always get ERROR when I build with mvn -T C2.0 clean install 
>>> -Pinclude-grp
>>> 
>>> [INFO] dockermaven-stateless .............................. SUCCESS 
>>> [
>>> 17.104 s]
>>> [INFO] dockerhub .......................................... SUCCESS 
>>> [
>>> 19.432 s]
>>> [INFO]
>>> --------------------------------------------------------------------
>>> --
>>> --
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> --------------------------------------------------------------------
>>> --
>>> -- [INFO] Total time:  01:39 min (Wall Clock) [INFO] Finished at:
>>> 2019-09-09T15:36:59-07:00 [INFO]
>>> --------------------------------------------------------------------
>>> --
>>> --
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test
>>> (default-test) on project nifi-properties-loader: There are test failures.
>>> [ERROR]
>>> [ERROR] Please refer to
>>> D:\Projects\Nifi-Original\nifi-master\nifi-nar-bundles\nifi-framewor
>>> k-
>>> bundle\nifi-framework\nifi-properties-loader\target\surefire-reports
>>> for the individual test results.
>>> [ERROR] Please refer to dump files (if any exist) 
>>> [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
>>> [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]
>>> https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcwi
>>> ki
>>> .apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FMojoFailureException&am
>>> p;
>>> data=02%7C01%7CSunny.Zhang%40microsoft.com%7C4b7505235fac452fa07108d
>>> 73
>>> 58a466c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637036740333004
>>> 29
>>> 2&amp;sdata=L2ykDK7Mywiuy7CwU%2BWmyEgJAp8pAagLEuo9Lll4Abs%3D&amp;res
>>> er
>>> ved=0
>>> [ERROR]
>>> [ERROR] After correcting the problems, you can resume the build with 
>>> the command
>>> [ERROR]   mvn <goals> -rf :nifi-properties-loader
>>> 
>>> ^ this is 100% the fresh master branch code, but I still can't build.
>>> 
>>> If I skip test
>>> mvn -T C2.0 clean install -Pinclude-grpc -DskipTests then it will 
>>> succeed.
>>> 
>>> How can I fix it??
>>> 
>>> Thanks.
>>> 
>>> Best,
>>> Sunny
>>> 
>>> 
>>> 

Re: Build ERROR with amven-surefire-plugin

Posted by Andy LoPresto <al...@gmail.com>.
Hi Sunny, which version of the code are you trying to build? I remember there was a bug with that test code when the underlying Groovy version was updated a little while ago (post-1.9.2), but it has been resolved on master. 

Andy LoPresto
alopresto@apache.org
alopresto.apache@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Sep 10, 2019, at 15:50, Sunny Zhang <Su...@microsoft.com.invalid> wrote:
> 
> Oh I see! Thanks! Here I found the output files, these two contains ERROR msg:
> org.apache.nifi.properties.AESSensitivePropertyProviderTest-output.txt  and org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest-output.txt
> 
> /// In org.apache.nifi.properties.AESSensitivePropertyProviderTest-output.txt:
> 
> [main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - Error decrypting a protected value
> javax.crypto.AEADBadTagException: mac check in GCM failed
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
>    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
>    at javax.crypto.Cipher.doFinal(Cipher.java:2164)
>    at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
>    at org.apache.nifi.properties.SensitivePropertyProvider$unprotect$0.call(Unknown Source)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>    at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy:375)
>    at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy)
>    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
>    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
>    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
>    at groovy.lang.Closure.call(Closure.java:411)
>    at groovy.lang.Closure.call(Closure.java:405)
>    at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
>    at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
>    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
>    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
>    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
>    at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27.doCall(AESSensitivePropertyProviderTest.groovy:374)
>    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
>    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
>    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
>    at groovy.lang.Closure.call(Closure.java:411)
>    at groovy.lang.Closure.call(Closure.java:427)
>    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2296)
>    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2281)
>    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2322)
>    at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)
>    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:246)
>    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
>    at org.apache.nifi.properties.AESSensitivePropertyProviderTest.testShouldHandleUnprotectMalformedIV(AESSensitivePropertyProviderTest.groovy:366)
>    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>    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:383)
>    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
>    at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
>    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
> 
> /// In org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest-output.txt:
> 
> [main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - Error decrypting a protected value
> javax.crypto.AEADBadTagException: mac check in GCM failed
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
>    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
>    at javax.crypto.Cipher.doFinal(Cipher.java:2164)
>    at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
>    at org.apache.nifi.properties.ProtectedNiFiProperties.unprotectValue(ProtectedNiFiProperties.java:524)
>    at org.apache.nifi.properties.ProtectedNiFiProperties.getUnprotectedProperties(ProtectedNiFiProperties.java:343)
>    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.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
>    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:213)
>    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:119)
>    at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy:412)
>    at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy)
>    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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
>    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
>    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
>    at groovy.lang.Closure.call(Closure.java:411)
>    at groovy.lang.Closure.call(Closure.java:405)
>    at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
>    at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
>    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>    at java.lang.reflect.Method.invoke(Method.java:498)
>    at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
>    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190)
>    at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58)
>    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
>    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
>    at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest.testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue(ProtectedNiFiPropertiesGroovyTest.groovy:411)
>    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>    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:383)
>    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
>    at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
>    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)-----Original Message-----
> From: Bryan Bende <bb...@gmail.com> 
> Sent: Tuesday, September 10, 2019 11:22 AM
> To: dev@nifi.apache.org
> Subject: Re: Build ERROR with amven-surefire-plugin
> 
> From the original error it looks like the module that failed was:
> 
> nifi-nar-bundles\nifi-framework-bundle\nifi-framework\nifi-properties-loader
> 
> The test report you sent was for nifi-framework-api and doesn't have any failures.
> 
>> On Tue, Sep 10, 2019 at 2:15 PM Sunny Zhang <Su...@microsoft.com.invalid> wrote:
>> 
>> Hey thanks for replying.
>> 
>> Here are all the individual test results from "\nifi-framework-api\target\surefire-reports":
>> 
>> 
>> ----------------------------------------------------------------------
>> --------- Test set: 
>> org.apache.nifi.authorization.TestAbstractPolicyBasedAuthorizer
>> ----------------------------------------------------------------------
>> --------- Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time 
>> elapsed: 1.25 s - in 
>> org.apache.nifi.authorization.TestAbstractPolicyBasedAuthorizer
>> 
>> ----------------------------------------------------------------------
>> ----------------------------------------------------------------------
>> ---------------------------------------------
>> Test set: org.apache.nifi.authorization.TestAccessPolicy
>> ----------------------------------------------------------------------
>> --------- Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time 
>> elapsed: 0.001 s - in org.apache.nifi.authorization.TestAccessPolicy
>> 
>> ----------------------------------------------------------------------
>> ----------------------------------------------------------------------
>> ---------------------------------------------
>> Test set: org.apache.nifi.authorization.TestGroup
>> ----------------------------------------------------------------------
>> --------- Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time 
>> elapsed: 0.001 s - in org.apache.nifi.authorization.TestGroup
>> 
>> ----------------------------------------------------------------------
>> ----------------------------------------------------------------------
>> ---------------------------------------------
>> Test set: org.apache.nifi.authorization.TestUser
>> ----------------------------------------------------------------------
>> --------- Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time 
>> elapsed: 0 s - in org.apache.nifi.authorization.TestUser
>> 
>> ----------------------------------------------------------------------
>> ----------------------------------------------------------------------
>> ---------------------------------------------
>> Test set: org.apache.nifi.bundle.BundleCoordinateTest
>> ----------------------------------------------------------------------
>> --------- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time 
>> elapsed: 0 s - in org.apache.nifi.bundle.BundleCoordinateTest
>> 
>> ----------------------------------------------------------------------
>> ----------------------------------------------------------------------
>> ---------------------------------------------
>> Test set: org.apache.nifi.bundle.BundleDetailsTest
>> ----------------------------------------------------------------------
>> --------- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time 
>> elapsed: 0 s - in org.apache.nifi.bundle.BundleDetailsTest
>> 
>> ----------------------------------------------------------------------
>> ----------------------------------------------------------------------
>> ---------------------------------------------
>> Test set: org.apache.nifi.web.TestRevision
>> ----------------------------------------------------------------------
>> --------- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time 
>> elapsed: 0 s - in org.apache.nifi.web.TestRevision
>> 
>> 
>> Thanks,
>> Sunny
>> 
>> 
>> 
>> 
>> -----Original Message-----
>> From: Joe Witt <jo...@gmail.com>
>> Sent: Monday, September 9, 2019 6:00 PM
>> To: dev@nifi.apache.org
>> Subject: Re: Build ERROR with amven-surefire-plugin
>> 
>> Sunny
>> 
>> You’ll need to share the test failure output.
>> 
>> Thanks
>> 
>>> On Mon, Sep 9, 2019 at 8:15 PM Sunny Zhang <Su...@microsoft.com.invalid> wrote:
>>> 
>>> Hi! I was blocked for this for a long while, hope anyone can help!
>>> 
>>> I always get ERROR when I build with mvn -T C2.0 clean install 
>>> -Pinclude-grp
>>> 
>>> [INFO] dockermaven-stateless .............................. SUCCESS 
>>> [
>>> 17.104 s]
>>> [INFO] dockerhub .......................................... SUCCESS 
>>> [
>>> 19.432 s]
>>> [INFO]
>>> --------------------------------------------------------------------
>>> --
>>> --
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> --------------------------------------------------------------------
>>> --
>>> -- [INFO] Total time:  01:39 min (Wall Clock) [INFO] Finished at:
>>> 2019-09-09T15:36:59-07:00 [INFO]
>>> --------------------------------------------------------------------
>>> --
>>> --
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test
>>> (default-test) on project nifi-properties-loader: There are test failures.
>>> [ERROR]
>>> [ERROR] Please refer to
>>> D:\Projects\Nifi-Original\nifi-master\nifi-nar-bundles\nifi-framewor
>>> k- 
>>> bundle\nifi-framework\nifi-properties-loader\target\surefire-reports
>>> for the individual test results.
>>> [ERROR] Please refer to dump files (if any exist) 
>>> [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
>>> [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]
>>> https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcwi
>>> ki 
>>> .apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FMojoFailureException&am
>>> p;
>>> data=02%7C01%7CSunny.Zhang%40microsoft.com%7C4b7505235fac452fa07108d
>>> 73
>>> 58a466c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637036740333004
>>> 29 
>>> 2&amp;sdata=L2ykDK7Mywiuy7CwU%2BWmyEgJAp8pAagLEuo9Lll4Abs%3D&amp;res
>>> er
>>> ved=0
>>> [ERROR]
>>> [ERROR] After correcting the problems, you can resume the build with 
>>> the command
>>> [ERROR]   mvn <goals> -rf :nifi-properties-loader
>>> 
>>> ^ this is 100% the fresh master branch code, but I still can't build.
>>> 
>>> If I skip test
>>> mvn -T C2.0 clean install -Pinclude-grpc -DskipTests then it will 
>>> succeed.
>>> 
>>> How can I fix it??
>>> 
>>> Thanks.
>>> 
>>> Best,
>>> Sunny
>>> 
>>> 
>>> 

RE: Build ERROR with amven-surefire-plugin

Posted by Sunny Zhang <Su...@microsoft.com.INVALID>.
Oh I see! Thanks! Here I found the output files, these two contains ERROR msg:
org.apache.nifi.properties.AESSensitivePropertyProviderTest-output.txt  and org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest-output.txt

/// In org.apache.nifi.properties.AESSensitivePropertyProviderTest-output.txt:

[main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - Error decrypting a protected value
javax.crypto.AEADBadTagException: mac check in GCM failed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
	at org.apache.nifi.properties.SensitivePropertyProvider$unprotect$0.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy:375)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27$_closure44.doCall(AESSensitivePropertyProviderTest.groovy)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:405)
	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest$_testShouldHandleUnprotectMalformedIV_closure27.doCall(AESSensitivePropertyProviderTest.groovy:374)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:427)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2296)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2281)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2322)
	at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:246)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at org.apache.nifi.properties.AESSensitivePropertyProviderTest.testShouldHandleUnprotectMalformedIV(AESSensitivePropertyProviderTest.groovy:366)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	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:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)

/// In org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest-output.txt:

[main] ERROR org.apache.nifi.properties.AESSensitivePropertyProvider - Error decrypting a protected value
javax.crypto.AEADBadTagException: mac check in GCM failed
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
	at javax.crypto.Cipher.doFinal(Cipher.java:2164)
	at org.apache.nifi.properties.AESSensitivePropertyProvider.unprotect(AESSensitivePropertyProvider.java:240)
	at org.apache.nifi.properties.ProtectedNiFiProperties.unprotectValue(ProtectedNiFiProperties.java:524)
	at org.apache.nifi.properties.ProtectedNiFiProperties.getUnprotectedProperties(ProtectedNiFiProperties.java:343)
	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.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:213)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:119)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy:412)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest$_testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue_closure2.doCall(ProtectedNiFiPropertiesGroovyTest.groovy)
	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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1041)
	at groovy.lang.Closure.call(Closure.java:411)
	at groovy.lang.Closure.call(Closure.java:405)
	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:119)
	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
	at org.apache.nifi.properties.ProtectedNiFiPropertiesGroovyTest.testGetValueOfSensitivePropertyShouldHandleSingleMalformedValue(ProtectedNiFiPropertiesGroovyTest.groovy:411)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	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:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)-----Original Message-----
From: Bryan Bende <bb...@gmail.com> 
Sent: Tuesday, September 10, 2019 11:22 AM
To: dev@nifi.apache.org
Subject: Re: Build ERROR with amven-surefire-plugin

From the original error it looks like the module that failed was:

nifi-nar-bundles\nifi-framework-bundle\nifi-framework\nifi-properties-loader

The test report you sent was for nifi-framework-api and doesn't have any failures.

On Tue, Sep 10, 2019 at 2:15 PM Sunny Zhang <Su...@microsoft.com.invalid> wrote:
>
> Hey thanks for replying.
>
> Here are all the individual test results from "\nifi-framework-api\target\surefire-reports":
>
>
> ----------------------------------------------------------------------
> --------- Test set: 
> org.apache.nifi.authorization.TestAbstractPolicyBasedAuthorizer
> ----------------------------------------------------------------------
> --------- Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time 
> elapsed: 1.25 s - in 
> org.apache.nifi.authorization.TestAbstractPolicyBasedAuthorizer
>
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> ---------------------------------------------
> Test set: org.apache.nifi.authorization.TestAccessPolicy
> ----------------------------------------------------------------------
> --------- Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time 
> elapsed: 0.001 s - in org.apache.nifi.authorization.TestAccessPolicy
>
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> ---------------------------------------------
> Test set: org.apache.nifi.authorization.TestGroup
> ----------------------------------------------------------------------
> --------- Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time 
> elapsed: 0.001 s - in org.apache.nifi.authorization.TestGroup
>
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> ---------------------------------------------
> Test set: org.apache.nifi.authorization.TestUser
> ----------------------------------------------------------------------
> --------- Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time 
> elapsed: 0 s - in org.apache.nifi.authorization.TestUser
>
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> ---------------------------------------------
> Test set: org.apache.nifi.bundle.BundleCoordinateTest
> ----------------------------------------------------------------------
> --------- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time 
> elapsed: 0 s - in org.apache.nifi.bundle.BundleCoordinateTest
>
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> ---------------------------------------------
> Test set: org.apache.nifi.bundle.BundleDetailsTest
> ----------------------------------------------------------------------
> --------- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time 
> elapsed: 0 s - in org.apache.nifi.bundle.BundleDetailsTest
>
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> ---------------------------------------------
> Test set: org.apache.nifi.web.TestRevision
> ----------------------------------------------------------------------
> --------- Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time 
> elapsed: 0 s - in org.apache.nifi.web.TestRevision
>
>
> Thanks,
> Sunny
>
>
>
>
> -----Original Message-----
> From: Joe Witt <jo...@gmail.com>
> Sent: Monday, September 9, 2019 6:00 PM
> To: dev@nifi.apache.org
> Subject: Re: Build ERROR with amven-surefire-plugin
>
> Sunny
>
> You’ll need to share the test failure output.
>
> Thanks
>
> On Mon, Sep 9, 2019 at 8:15 PM Sunny Zhang <Su...@microsoft.com.invalid> wrote:
>
> > Hi! I was blocked for this for a long while, hope anyone can help!
> >
> > I always get ERROR when I build with mvn -T C2.0 clean install 
> > -Pinclude-grp
> >
> > [INFO] dockermaven-stateless .............................. SUCCESS 
> > [
> > 17.104 s]
> > [INFO] dockerhub .......................................... SUCCESS 
> > [
> > 19.432 s]
> > [INFO]
> > --------------------------------------------------------------------
> > --
> > --
> > [INFO] BUILD FAILURE
> > [INFO]
> > --------------------------------------------------------------------
> > --
> > -- [INFO] Total time:  01:39 min (Wall Clock) [INFO] Finished at:
> > 2019-09-09T15:36:59-07:00 [INFO]
> > --------------------------------------------------------------------
> > --
> > --
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test
> > (default-test) on project nifi-properties-loader: There are test failures.
> > [ERROR]
> > [ERROR] Please refer to
> > D:\Projects\Nifi-Original\nifi-master\nifi-nar-bundles\nifi-framewor
> > k- 
> > bundle\nifi-framework\nifi-properties-loader\target\surefire-reports
> > for the individual test results.
> > [ERROR] Please refer to dump files (if any exist) 
> > [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
> > [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]
> > https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcwi
> > ki 
> > .apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FMojoFailureException&am
> > p;
> > data=02%7C01%7CSunny.Zhang%40microsoft.com%7C4b7505235fac452fa07108d
> > 73
> > 58a466c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637036740333004
> > 29 
> > 2&amp;sdata=L2ykDK7Mywiuy7CwU%2BWmyEgJAp8pAagLEuo9Lll4Abs%3D&amp;res
> > er
> > ved=0
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with 
> > the command
> > [ERROR]   mvn <goals> -rf :nifi-properties-loader
> >
> > ^ this is 100% the fresh master branch code, but I still can't build.
> >
> > If I skip test
> > mvn -T C2.0 clean install -Pinclude-grpc -DskipTests then it will 
> > succeed.
> >
> > How can I fix it??
> >
> > Thanks.
> >
> > Best,
> > Sunny
> >
> >
> >

Re: Build ERROR with amven-surefire-plugin

Posted by Bryan Bende <bb...@gmail.com>.
From the original error it looks like the module that failed was:

nifi-nar-bundles\nifi-framework-bundle\nifi-framework\nifi-properties-loader

The test report you sent was for nifi-framework-api and doesn't have
any failures.

On Tue, Sep 10, 2019 at 2:15 PM Sunny Zhang
<Su...@microsoft.com.invalid> wrote:
>
> Hey thanks for replying.
>
> Here are all the individual test results from "\nifi-framework-api\target\surefire-reports":
>
>
> -------------------------------------------------------------------------------
> Test set: org.apache.nifi.authorization.TestAbstractPolicyBasedAuthorizer
> -------------------------------------------------------------------------------
> Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.25 s - in org.apache.nifi.authorization.TestAbstractPolicyBasedAuthorizer
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Test set: org.apache.nifi.authorization.TestAccessPolicy
> -------------------------------------------------------------------------------
> Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.apache.nifi.authorization.TestAccessPolicy
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Test set: org.apache.nifi.authorization.TestGroup
> -------------------------------------------------------------------------------
> Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.apache.nifi.authorization.TestGroup
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Test set: org.apache.nifi.authorization.TestUser
> -------------------------------------------------------------------------------
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.nifi.authorization.TestUser
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Test set: org.apache.nifi.bundle.BundleCoordinateTest
> -------------------------------------------------------------------------------
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.nifi.bundle.BundleCoordinateTest
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Test set: org.apache.nifi.bundle.BundleDetailsTest
> -------------------------------------------------------------------------------
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.nifi.bundle.BundleDetailsTest
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Test set: org.apache.nifi.web.TestRevision
> -------------------------------------------------------------------------------
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.nifi.web.TestRevision
>
>
> Thanks,
> Sunny
>
>
>
>
> -----Original Message-----
> From: Joe Witt <jo...@gmail.com>
> Sent: Monday, September 9, 2019 6:00 PM
> To: dev@nifi.apache.org
> Subject: Re: Build ERROR with amven-surefire-plugin
>
> Sunny
>
> You’ll need to share the test failure output.
>
> Thanks
>
> On Mon, Sep 9, 2019 at 8:15 PM Sunny Zhang <Su...@microsoft.com.invalid> wrote:
>
> > Hi! I was blocked for this for a long while, hope anyone can help!
> >
> > I always get ERROR when I build with
> > mvn -T C2.0 clean install -Pinclude-grp
> >
> > [INFO] dockermaven-stateless .............................. SUCCESS [
> > 17.104 s]
> > [INFO] dockerhub .......................................... SUCCESS [
> > 19.432 s]
> > [INFO]
> > ----------------------------------------------------------------------
> > --
> > [INFO] BUILD FAILURE
> > [INFO]
> > ----------------------------------------------------------------------
> > -- [INFO] Total time:  01:39 min (Wall Clock) [INFO] Finished at:
> > 2019-09-09T15:36:59-07:00 [INFO]
> > ----------------------------------------------------------------------
> > --
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test
> > (default-test) on project nifi-properties-loader: There are test failures.
> > [ERROR]
> > [ERROR] Please refer to
> > D:\Projects\Nifi-Original\nifi-master\nifi-nar-bundles\nifi-framework-
> > bundle\nifi-framework\nifi-properties-loader\target\surefire-reports
> > for the individual test results.
> > [ERROR] Please refer to dump files (if any exist)
> > [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
> > [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]
> > https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcwiki
> > .apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FMojoFailureException&amp;
> > data=02%7C01%7CSunny.Zhang%40microsoft.com%7C4b7505235fac452fa07108d73
> > 58a466c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C63703674033300429
> > 2&amp;sdata=L2ykDK7Mywiuy7CwU%2BWmyEgJAp8pAagLEuo9Lll4Abs%3D&amp;reser
> > ved=0
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with
> > the command
> > [ERROR]   mvn <goals> -rf :nifi-properties-loader
> >
> > ^ this is 100% the fresh master branch code, but I still can't build.
> >
> > If I skip test
> > mvn -T C2.0 clean install -Pinclude-grpc -DskipTests then it will
> > succeed.
> >
> > How can I fix it??
> >
> > Thanks.
> >
> > Best,
> > Sunny
> >
> >
> >

RE: Build ERROR with amven-surefire-plugin

Posted by Sunny Zhang <Su...@microsoft.com.INVALID>.
Hey thanks for replying. 

Here are all the individual test results from "\nifi-framework-api\target\surefire-reports":


-------------------------------------------------------------------------------
Test set: org.apache.nifi.authorization.TestAbstractPolicyBasedAuthorizer
-------------------------------------------------------------------------------
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.25 s - in org.apache.nifi.authorization.TestAbstractPolicyBasedAuthorizer

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Test set: org.apache.nifi.authorization.TestAccessPolicy
-------------------------------------------------------------------------------
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.apache.nifi.authorization.TestAccessPolicy

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Test set: org.apache.nifi.authorization.TestGroup
-------------------------------------------------------------------------------
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.apache.nifi.authorization.TestGroup

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Test set: org.apache.nifi.authorization.TestUser
-------------------------------------------------------------------------------
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.nifi.authorization.TestUser

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Test set: org.apache.nifi.bundle.BundleCoordinateTest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.nifi.bundle.BundleCoordinateTest

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Test set: org.apache.nifi.bundle.BundleDetailsTest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.nifi.bundle.BundleDetailsTest

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Test set: org.apache.nifi.web.TestRevision
-------------------------------------------------------------------------------
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.nifi.web.TestRevision


Thanks,
Sunny




-----Original Message-----
From: Joe Witt <jo...@gmail.com> 
Sent: Monday, September 9, 2019 6:00 PM
To: dev@nifi.apache.org
Subject: Re: Build ERROR with amven-surefire-plugin

Sunny

You’ll need to share the test failure output.

Thanks

On Mon, Sep 9, 2019 at 8:15 PM Sunny Zhang <Su...@microsoft.com.invalid> wrote:

> Hi! I was blocked for this for a long while, hope anyone can help!
>
> I always get ERROR when I build with
> mvn -T C2.0 clean install -Pinclude-grp
>
> [INFO] dockermaven-stateless .............................. SUCCESS [
> 17.104 s]
> [INFO] dockerhub .......................................... SUCCESS [
> 19.432 s]
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] BUILD FAILURE
> [INFO]
> ----------------------------------------------------------------------
> -- [INFO] Total time:  01:39 min (Wall Clock) [INFO] Finished at: 
> 2019-09-09T15:36:59-07:00 [INFO]
> ----------------------------------------------------------------------
> --
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test 
> (default-test) on project nifi-properties-loader: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> D:\Projects\Nifi-Original\nifi-master\nifi-nar-bundles\nifi-framework-
> bundle\nifi-framework\nifi-properties-loader\target\surefire-reports
> for the individual test results.
> [ERROR] Please refer to dump files (if any exist) 
> [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
> [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]
> https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcwiki
> .apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FMojoFailureException&amp;
> data=02%7C01%7CSunny.Zhang%40microsoft.com%7C4b7505235fac452fa07108d73
> 58a466c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C63703674033300429
> 2&amp;sdata=L2ykDK7Mywiuy7CwU%2BWmyEgJAp8pAagLEuo9Lll4Abs%3D&amp;reser
> ved=0
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with 
> the command
> [ERROR]   mvn <goals> -rf :nifi-properties-loader
>
> ^ this is 100% the fresh master branch code, but I still can't build.
>
> If I skip test
> mvn -T C2.0 clean install -Pinclude-grpc -DskipTests then it will 
> succeed.
>
> How can I fix it??
>
> Thanks.
>
> Best,
> Sunny
>
>
>

Re: Build ERROR with amven-surefire-plugin

Posted by Joe Witt <jo...@gmail.com>.
Sunny

You’ll need to share the test failure output.

Thanks

On Mon, Sep 9, 2019 at 8:15 PM Sunny Zhang
<Su...@microsoft.com.invalid> wrote:

> Hi! I was blocked for this for a long while, hope anyone can help!
>
> I always get ERROR when I build with
> mvn -T C2.0 clean install -Pinclude-grp
>
> [INFO] dockermaven-stateless .............................. SUCCESS [
> 17.104 s]
> [INFO] dockerhub .......................................... SUCCESS [
> 19.432 s]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  01:39 min (Wall Clock)
> [INFO] Finished at: 2019-09-09T15:36:59-07:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test)
> on project nifi-properties-loader: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> D:\Projects\Nifi-Original\nifi-master\nifi-nar-bundles\nifi-framework-bundle\nifi-framework\nifi-properties-loader\target\surefire-reports
> for the individual test results.
> [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump,
> [date].dumpstream and [date]-jvmRun[N].dumpstream.
> [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
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :nifi-properties-loader
>
> ^ this is 100% the fresh master branch code, but I still can't build.
>
> If I skip test
> mvn -T C2.0 clean install -Pinclude-grpc -DskipTests
> then it will succeed.
>
> How can I fix it??
>
> Thanks.
>
> Best,
> Sunny
>
>
>