Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

NiFi 1.4.0-SNAPSHOT build failing

avatar
New Member
Hello All,I am trying to build NiFi 1.4.0-SNAPSHOT from Git and I am getting below error. Does anyone know how to resolve this error?Thanks in advance !!

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on project nifi-grpc-processors: There are test failures.
[ERROR]
[ERROR] Please refer to /opt/nifi-master/nifi-nar-bundles/nifi-grpc-bundle/nifi-grpc-processors/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]


Running org.apache.nifi.processors.grpc.TestInvokeGRPC
Tests run: 12, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.726 sec <<< FAILURE! - in org.apache.nifi.processors.grpc.TestInvokeGRPC
testSecureOneWaySsl(org.apache.nifi.processors.grpc.TestInvokeGRPC) Time elapsed: 0.747 sec <<< ERROR!
java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured.
at io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:174)
at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:151)
at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:139)
at org.apache.nifi.processors.grpc.TestGRPCServer.start(TestGRPCServer.java:130)
at org.apache.nifi.processors.grpc.TestInvokeGRPC.testSecureOneWaySsl(TestInvokeGRPC.java:464)

testSecureTwoWaySsl(org.apache.nifi.processors.grpc.TestInvokeGRPC) Time elapsed: 0.018 sec <<< ERROR!
java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured.
at io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:174)
at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:151)
at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:139)
at org.apache.nifi.processors.grpc.TestGRPCServer.start(TestGRPCServer.java:130)
at org.apache.nifi.processors.grpc.TestInvokeGRPC.testSecureTwoWaySsl(TestInvokeGRPC.java:420)
1 ACCEPTED SOLUTION

avatar
Super Collaborator

You could skip the tests

mvn clean package -DskipTests=true

View solution in original post

3 REPLIES 3

avatar
Super Collaborator

You could skip the tests

mvn clean package -DskipTests=true

avatar
Super Collaborator

There is also a docker image. I think the builds passed when I committed the latest pull request.

https://github.com/apache/nifi/tree/master/nifi-docker

avatar
New Member

Thanks. It worked.