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 <[email protected]>
Sent: Tuesday, September 10, 2019 11:22 AM
To: [email protected]
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 <[email protected]>
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 <[email protected]>
> Sent: Monday, September 9, 2019 6:00 PM
> To: [email protected]
> 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
> <[email protected]> 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&sdata=L2ykDK7Mywiuy7CwU%2BWmyEgJAp8pAagLEuo9Lll4Abs%3D&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
> >
> >
> >