NiFi 1.4.0-SNAPSHOT build failing

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

NiFi 1.4.0-SNAPSHOT build failing

mayank rathi
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)


--
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and destroy
all copies of the original message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NiFi 1.4.0-SNAPSHOT build failing

Andy LoPresto-2
Hi,

Sorry you are encountering this issue. I am unable to reproduce this issue locally. Do you have a Tomcat/Catalina instance running at the same time on your machine? A brief search of the internet for this issue reveals that it seems to be caused by container settings (I haven’t found any references to this occurring in unit tests, only in deployed applications). 

I would also recommend running `mvn clean` to ensure that everything is getting built with the proper dependencies, and potentially even cleaning out your `~/.m2/` repository (start with just the grpc dependencies) if that doesn’t work. 

We can continue trying to debug, but if you just want NiFi up and running immediately, you can also run maven with `-DskipTests` to avoid this right now. 

Andy LoPresto
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

On Aug 4, 2017, at 1:38 PM, mayank rathi <[hidden email]> wrote:

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)


--
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and destroy
all copies of the original message.


signature.asc (859 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NiFi 1.4.0-SNAPSHOT build failing

mayank rathi
Thanks Andy for helping. I ran maven with `-DskipTests`and install went
fine.

On Fri, Aug 4, 2017 at 6:56 PM, Andy LoPresto <[hidden email]> wrote:

> Hi,
>
> Sorry you are encountering this issue. I am unable to reproduce this issue
> locally. Do you have a Tomcat/Catalina instance running at the same time on
> your machine? A brief search of the internet for this issue reveals that it
> seems to be caused by container settings (I haven’t found any references to
> this occurring in unit tests, only in deployed applications).
>
> I would also recommend running `mvn clean` to ensure that everything is
> getting built with the proper dependencies, and potentially even cleaning
> out your `~/.m2/` repository (start with just the grpc dependencies) if
> that doesn’t work.
>
> We can continue trying to debug, but if you just want NiFi up and running
> immediately, you can also run maven with `-DskipTests` to avoid this right
> now.
>
> Andy LoPresto
> [hidden email]
> *[hidden email] <[hidden email]>*
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>
> On Aug 4, 2017, at 1:38 PM, mayank rathi <[hidden email]> wrote:
>
> 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.selectApplicationProtocolConfi
> g(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.selectApplicationProtocolConfi
> g(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)
>
>
> --
> NOTICE: This email message is for the sole use of the intended recipient(s)
> and may contain confidential and privileged information. Any unauthorized
> review, use, disclosure or distribution is prohibited. If you are not the
> intended recipient, please contact the sender by reply email and destroy
> all copies of the original message.
>
>
>


--
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and destroy
all copies of the original message.
Loading...