java.lang.IllegalArgumentException: nThreads: 0 (expected: > 0)

GitHub | Scottmitch | 5 months ago
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

    GitHub comment 5806#249382910

    GitHub | 5 months ago | Scottmitch
    java.lang.IllegalArgumentException: nThreads: 0 (expected: > 0)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      nThreads: 0 (expected: > 0)

      at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>()
    2. Netty
      NioEventLoopGroup.<init>
      1. io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:72)
      2. io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:58)
      3. io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:47)
      4. io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:58)
      5. io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:77)
      6. io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:72)
      7. io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:59)
      7 frames
    3. gelfclient
      GelfTransports.create
      1. org.graylog2.gelfclient.transport.AbstractGelfTransport.<init>(AbstractGelfTransport.java:41)
      2. org.graylog2.gelfclient.transport.AbstractGelfTransport.<init>(AbstractGelfTransport.java:62)
      3. org.graylog2.gelfclient.transport.GelfUdpTransport.<init>(GelfUdpTransport.java:49)
      4. org.graylog2.gelfclient.GelfTransports.create(GelfTransports.java:47)
      5. org.graylog2.gelfclient.GelfTransports.create(GelfTransports.java:68)
      5 frames
    4. org.graylog2.log4j2
      GelfAppender.start
      1. org.graylog2.log4j2.GelfAppender.start(GelfAppender.java:186)
      1 frame
    5. Apache Log4j Core
      Log4jContextFactory.getContext
      1. org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:247)
      2. org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:496)
      3. org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:566)
      4. org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:582)
      5. org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:217)
      6. org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
      7. org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
      7 frames
    6. Apache Log4j API
      AbstractLoggerAdapter.getContext
      1. org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
      2. org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:103)
      2 frames
    7. Apache Log4j SLF4J Binding
      Log4jLoggerFactory.getContext
      1. org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43)
      1 frame
    8. Apache Log4j API
      AbstractLoggerAdapter.getLogger
      1. org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:42)
      1 frame
    9. Apache Log4j SLF4J Binding
      Log4jLoggerFactory.getLogger
      1. org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
      1 frame
    10. SLF4J API Module
      LoggerFactory.getLogger
      1. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
      1 frame
    11. Netty
      ThreadLocalRandom.<clinit>
      1. io.netty.util.internal.logging.Slf4JLoggerFactory.newInstance(Slf4JLoggerFactory.java:73)
      2. io.netty.util.internal.logging.InternalLoggerFactory.newDefaultFactory(InternalLoggerFactory.java:54)
      3. io.netty.util.internal.logging.InternalLoggerFactory.getDefaultFactory(InternalLoggerFactory.java:77)
      4. io.netty.util.internal.logging.InternalLoggerFactory.getInstance(InternalLoggerFactory.java:103)
      5. io.netty.util.internal.logging.InternalLoggerFactory.getInstance(InternalLoggerFactory.java:96)
      6. io.netty.util.internal.ThreadLocalRandom.<clinit>(ThreadLocalRandom.java:65)
      6 frames
    12. Java RT
      Class.forName
      1. java.lang.Class.forName0(Native Method)
      2. java.lang.Class.forName(Class.java:348)
      2 frames
    13. Netty
      MultithreadEventLoopGroup.<clinit>
      1. io.netty.util.internal.logging.InternalLoggerFactory.<clinit>(InternalLoggerFactory.java:43)
      2. io.netty.channel.MultithreadEventLoopGroup.<clinit>(MultithreadEventLoopGroup.java:34)
      2 frames
    14. Netty/Example
      EchoServer.main
      1. io.netty.example.echo.EchoServer.main(EchoServer.java:52)
      1 frame