Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8118

Netty version alignment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • fuse-7.0.1
    • fuse-7.0
    • Camel
    • None
    • % %
    • Fuse 7.1 Sprint 29

    Description

      Shouldn't we use the same version of netty in all our "subprojects"?

      Take a look into:

      • artemis-pom - here you can see
        <netty.version>4.1.16.Final-redhat-2</netty.version>
        
      • camel-parent
        <netty-version>4.1.22.Final</netty-version>
        
      [INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli) @ netty4-test ---
      [INFO] org.jboss.qe.camel.components:netty4-test:jar:1.0.0-SNAPSHOT
      [INFO] +- org.apache.camel:camel-netty4:jar:2.21.0.fuse-000077-redhat-1:test
      [INFO] |  +- io.netty:netty-all:jar:4.1.22.Final:test
      
      
      [INFO] |  +- org.apache.activemq:artemis-jms-client:jar:2.4.0.amq-711002-redhat-1:compile
      [INFO] |  |  +- org.apache.activemq:artemis-core-client:jar:2.4.0.amq-711002-redhat-1:compile
      [INFO] |  |  |  +- org.jgroups:jgroups:jar:3.6.13.Final-redhat-2:compile
      [INFO] |  |  |  +- org.apache.activemq:artemis-commons:jar:2.4.0.amq-711002-redhat-1:compile
      [INFO] |  |  |  |  +- io.netty:netty-buffer:jar:4.1.16.Final-redhat-2:compile
      [INFO] |  |  |  |  +- io.netty:netty-transport:jar:4.1.16.Final-redhat-2:compile
      [INFO] |  |  |  |  |  \- io.netty:netty-resolver:jar:4.1.16.Final-redhat-2:compile
      [INFO] |  |  |  |  +- io.netty:netty-handler:jar:4.1.16.Final-redhat-2:compile
      

      This causes:

      Caused by: java.lang.reflect.InvocationTargetException
      	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 io.netty.channel.ReflectiveChannelFactory.newChannel(ReflectiveChannelFactory.java:38)
      	... 45 more
      Caused by: java.lang.NoSuchMethodError: io.netty.util.ResourceLeakDetector.addExclusions(Ljava/lang/Class;[Ljava/lang/String;)V
      	at io.netty.buffer.AbstractByteBufAllocator.<clinit>(AbstractByteBufAllocator.java:34)
      	at io.netty.buffer.ByteBufUtil.<clinit>(ByteBufUtil.java:79)
      	at io.netty.buffer.ByteBufAllocator.<clinit>(ByteBufAllocator.java:24)
      	at io.netty.channel.DefaultChannelConfig.<init>(DefaultChannelConfig.java:56)
      	at io.netty.channel.socket.DefaultDatagramChannelConfig.<init>(DefaultDatagramChannelConfig.java:54)
      	at io.netty.channel.socket.nio.NioDatagramChannelConfig.<init>(NioDatagramChannelConfig.java:115)
      	at io.netty.channel.socket.nio.NioDatagramChannel.<init>(NioDatagramChannel.java:149)
      	at io.netty.channel.socket.nio.NioDatagramChannel.<init>(NioDatagramChannel.java:116)
      	... 50 more
      

      Attachments

        Activity

          People

            acosenti Andrea Cosentino
            jbouska@redhat.com Jan Bouska
            Jan Bouska Jan Bouska
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: