Greetings All, I cloned/downloaded the latest netty snapshot from https://github.com/netty/netty, in addition I downloaded the recommended build tools from http://netty.io/wiki/setting-up-development-environment.html for Ubuntu 16.04.2 LTS (xenial) that included:
autoconf automake libtool make tar \ libaio-dev libssl-dev libapr1-dev \ lksctp-tool. I am currently using Maven version 3.3.9 and Java version: 1.8. After executing: mvn clean install from ~/netty-4.1, the following module failed: [INFO] Reactor Summary: [INFO] [INFO] Netty/Dev-Tools .................................... SUCCESS [ 1.063 s] [INFO] Netty .............................................. SUCCESS [ 4.211 s] [INFO] Netty/Common ....................................... SUCCESS [ 41.885 s] [INFO] Netty/Buffer ....................................... SUCCESS [ 44.810 s] [INFO] Netty/Resolver ..................................... SUCCESS [ 4.062 s] [INFO] Netty/Transport .................................... SUCCESS [ 52.324 s] [INFO] Netty/Codec ........................................ SUCCESS [ 17.535 s] [INFO] Netty/Codec/DNS .................................... SUCCESS [ 4.756 s] [INFO] Netty/Codec/HAProxy ................................ SUCCESS [ 3.829 s] [INFO] Netty/Handler ...................................... FAILURE [01:38 min] [INFO] Netty/Codec/HTTP ................................... SKIPPED [INFO] Netty/Codec/HTTP2 .................................. SKIPPED [INFO] Netty/Codec/Memcache ............................... SKIPPED [INFO] Netty/Codec/MQTT ................................... SKIPPED [INFO] Netty/Codec/Redis .................................. SKIPPED [INFO] Netty/Codec/SMTP ................................... SKIPPED [INFO] Netty/Codec/Socks .................................. SKIPPED [INFO] Netty/Codec/Stomp .................................. SKIPPED [INFO] Netty/Codec/XML .................................... SKIPPED [INFO] Netty/Resolver/DNS ................................. SKIPPED [INFO] Netty/Transport/RXTX ............................... SKIPPED [INFO] Netty/Transport/SCTP ............................... SKIPPED [INFO] Netty/Transport/UDT ................................ SKIPPED [INFO] Netty/Handler/Proxy ................................ SKIPPED [INFO] Netty/Handler/Proxy ................................ SKIPPED [INFO] Netty/Example ...................................... SKIPPED [INFO] Netty/Testsuite .................................... SKIPPED [INFO] Netty/Testsuite/Autobahn ........................... SKIPPED [INFO] Netty/Testsuite/OSGI ............................... SKIPPED [INFO] Netty/Transport/Native/Epoll ....................... SKIPPED [INFO] Netty/Microbench ................................... SKIPPED [INFO] Netty/All-in-One ................................... SKIPPED [INFO] Netty/BOM .......................................... SKIPPED [INFO] Netty/Tarball ...................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 04:33 min [INFO] Finished at: 2017-04-26T23:23:10-04:00 [INFO] Final Memory: 55M/594M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project netty-handler: There are test failures. [ERROR] [ERROR] Please refer to /home/lrodolph/Downloads/netty-4.1/handler/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] I tried building the modules on 2 different machines and got similar errors. I encountered the error specified here https://github.com/netty/netty/issues/5692 and also applied the fix specified here: https://github.com/netty/netty/commit/9bc3e56647e4794178a721f2d06128a4ca868b79#diff-88aad5b8fb87bccedc242639ab4b018f but after applying the recommended fix for the error: I got the following errors:r: [ERROR] /netty-4.1/ handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java:[33,28] error: package org.apache.tomcat.jni does not exist [ERROR] /netty-4.1/handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java:[34,28] error: package org.apache.tomcat.jni does not exist [ERROR] /netty-4.1/handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslContext.java:[30,28] error: package org.apache.tomcat.jni does not exist [ERROR] /netty-4.1/handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslContext.java:[31,28] error: package org.apache.tomcat.jni does not exist [ERROR] /netty-4.1/handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslContext.java:[32,28] error: package org.apache.tomcat.jni does not exist [ERROR] /netty-4.1/handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslContext.java:[33,28] error: package org.apache.tomcat.jni does not exist [ERROR] /netty-4.1/handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslContext.java:[580,65] error: cannot find symbol symbol: class CertificateVerifier Maven did not retrieve the packages. *////////SOME OF THE OTHERS ERRORS RENDERED////////////////////////////////////* Running io.netty.util.AsciiStringMemoryTest 23:18:54.294 [main] DEBUG i.n.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false 23:18:54.296 [main] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available 23:18:54.297 [main] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available 23:18:54.297 [main] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: available 23:18:54.298 [main] DEBUG i.n.util.internal.PlatformDependent0 - direct buffer constructor: available 23:18:54.298 [main] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true 23:18:54.301 [main] DEBUG i.n.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable java.lang.ClassNotFoundException: jdk.internal.misc.Unsafe at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at io.netty.util.internal.PlatformDependent0$6.run(PlatformDependent0.java:295) at java.security.AccessController.doPrivileged(Native Method) at io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:288) at io.netty.util.internal.PlatformDependent.getSystemClassLoader(PlatformDependent.java:887) at io.netty.util.internal.PlatformDependent.isAndroid0(PlatformDependent.java:911) at io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:70) at io.netty.util.AsciiString.byteAt(AsciiString.java:330) at io.netty.util.AsciiStringMemoryTest.forEachDescWithIndexBeginTest(AsciiStringMemoryTest.java:153) 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 23:22:55.931 [main] DEBUG i.n.h.s.u.InsecureTrustManagerFactory - Accepting a server certificate: CN=example.com 23:22:55.957 [nioEventLoopGroup-560-1] WARN i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. io.netty.handler.codec.DecoderException: javax.net.ssl.SSLException: Received fatal alert: certificate_unknown at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:442) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) at java.lang.Thread.run(Thread.java:748) 23:22:57.693 [main] DEBUG i.n.h.s.u.InsecureTrustManagerFactory - Accepting a server certificate: CN=example.com 23:22:57.719 [nioEventLoopGroup-601-1] WARN i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. io.netty.handler.codec.DecoderException: javax.net.ssl.SSLException: Received fatal alert: certificate_unknown at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:442) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) at java.lang.Thread.run(Thread.java:748) Caused by: javax.net.ssl.SSLException: Received fatal alert: certificate_unknown at sun.security.ssl.Alerts.getSSLException(Alerts.java:219 HOW CAN I RECTIFY THESE ISSUES!!! -- You received this message because you are subscribed to the Google Groups "Netty discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/netty/f9a9c015-3083-42eb-84f1-27ec72f38bc5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
