java.lang.NoClassDefFoundError: Could not initialize class io.netty.channel.ChannelOption

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Two Jars built on two different machine has different different internal structure

    Stack Overflow | 6 months ago | Ashish Pancholi
    java.lang.NoClassDefFoundError: Could not initialize class io.netty.channel.ChannelOption
  2. 0

    Could not initialize class org.apache.drill.exec.server.Drillbit

    Stack Overflow | 11 months ago | jgoh
    java.lang.NoClassDefFoundError: Could not initialize class org.apache.drill.exec.server.Drillbit

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class io.netty.channel.ChannelOption

      at org.apache.drill.exec.rpc.BasicClient.<init>()
    2. org.apache.drill
      DrillFactory.newConnection
      1. org.apache.drill.exec.rpc.BasicClient.<init>(BasicClient.java:75)
      2. org.apache.drill.exec.rpc.BasicClientWithConnection.<init>(BasicClientWithConnection.java:39)
      3. org.apache.drill.exec.rpc.user.UserClient.<init>(UserClient.java:58)
      4. org.apache.drill.exec.client.DrillClient.connect(DrillClient.java:232)
      5. org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:142)
      6. org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:64)
      7. org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:69)
      7 frames
    3. Calcite Avatica
      UnregisteredDriver.connect
      1. net.hydromatic.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:126)
      1 frame
    4. org.apache.drill
      Driver.connect
      1. org.apache.drill.jdbc.Driver.connect(Driver.java:72)
      1 frame
    5. Java RT
      DriverManager.getConnection
      1. java.sql.DriverManager.getConnection(DriverManager.java:664)
      2. java.sql.DriverManager.getConnection(DriverManager.java:270)
      2 frames