Current 4.1.10.Final-SNAPSHOT DOES NOT Build

130 views
Skip to first unread message

L_DisplayName

unread,
Apr 27, 2017, 12:29:31 AM4/27/17
to Netty discussions
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!!!






Norman Maurer

unread,
Apr 27, 2017, 2:33:13 AM4/27/17
to ne...@googlegroups.com, L_DisplayName
Something does not look correct with your checkout:


As you can see there are no more imports to 

org.apache.tomcat.jni


Please after cloning do:


git fetch origin

git checkout 4.1

git reset —hard origin/4.1

--
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 netty+un...@googlegroups.com.
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.

L_DisplayName

unread,
Apr 27, 2017, 3:11:01 PM4/27/17
to Netty discussions
Thank you Norman for your response, I tried what you stated and received approximately the same result, the handler module failed. Below are the steps I took:
  • git fetch origin
  • git checkout 4.1
  • git reset --hard origin/4.1
  • mvn clean install

Below is the build result and I also attached the error log any help resolving this issue will be very appreciated!


[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Netty/Dev-Tools .................................... SUCCESS [  3.638 s]
[INFO] Netty .............................................. SUCCESS [ 14.629 s]
[INFO] Netty/Common ....................................... SUCCESS [ 47.204 s]
[INFO] Netty/Buffer ....................................... SUCCESS [ 49.474 s]
[INFO] Netty/Resolver ..................................... SUCCESS [  4.205 s]
[INFO] Netty/Transport .................................... SUCCESS [ 53.433 s]
[INFO] Netty/Codec ........................................ SUCCESS [ 18.408 s]
[INFO] Netty/Codec/DNS .................................... SUCCESS [  5.558 s]
[INFO] Netty/Codec/HAProxy ................................ SUCCESS [  3.797 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/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: 05:00 min
[INFO] Finished at: 2017-04-27T14:34:39-04:00
[INFO] Final Memory: 56M/565M


[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 ~/pureNettyGitHub/handler/target/surefire-reports for the individual test results.


[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 :netty-handler

theLogger.txt
Reply all
Reply to author
Forward
0 new messages