question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] bin/pulsar-client NoClassDefFoundError: io/netty/incubator/channel/uring/IOUringEventLoopGroup

See original GitHub issue

Search before asking

  • I searched in the issues and found nothing similar.

Version

I built bin/pulsar-client using a recent version of master. Here is the commit sha 080213bdf7a00dda8f8e7c5927d83d7e6a9c5c6a.

Minimal reproduce step

Build the pulsar project’s master branch using mvn -Pcore-modules,-main -T 1C clean install -DskipTests -Dspotbugs.skip=true. I was at 080213bdf7a00dda8f8e7c5927d83d7e6a9c5c6a. I used:

$ java -version
openjdk version "17.0.4.1" 2022-08-12
OpenJDK Runtime Environment Temurin-17.0.4.1+1 (build 17.0.4.1+1)
OpenJDK 64-Bit Server VM Temurin-17.0.4.1+1 (build 17.0.4.1+1, mixed mode, sharing)
$ bin/pulsar-client produce -m test test
2022-11-17T22:30:47,216-0600 [main] INFO  org.apache.pulsar.client.cli.PulsarClientTool - 0 messages successfully produced
Exception in thread "main" java.lang.NoClassDefFoundError: io/netty/incubator/channel/uring/IOUringEventLoopGroup
        at org.apache.pulsar.common.util.netty.EventLoopUtil.getClientSocketChannelClass(EventLoopUtil.java:106)
        at org.apache.pulsar.client.impl.ConnectionPool.<init>(ConnectionPool.java:111)
        at org.apache.pulsar.client.impl.ConnectionPool.<init>(ConnectionPool.java:95)
        at org.apache.pulsar.client.impl.ConnectionPool.<init>(ConnectionPool.java:90)
        at org.apache.pulsar.client.impl.PulsarClientImpl.<init>(PulsarClientImpl.java:197)
        at org.apache.pulsar.client.impl.PulsarClientImpl.<init>(PulsarClientImpl.java:153)
        at org.apache.pulsar.client.impl.ClientBuilderImpl.build(ClientBuilderImpl.java:63)
        at org.apache.pulsar.client.cli.CmdProduce.publish(CmdProduce.java:247)
        at org.apache.pulsar.client.cli.CmdProduce.run(CmdProduce.java:239)
        at org.apache.pulsar.client.cli.PulsarClientTool.run(PulsarClientTool.java:231)
        at org.apache.pulsar.client.cli.PulsarClientTool.main(PulsarClientTool.java:271)
Caused by: java.lang.ClassNotFoundException: io.netty.incubator.channel.uring.IOUringEventLoopGroup
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
        ... 11 more

What did you expect to see?

It should not have failed.

What did you see instead?

A missing class.

Anything else?

No response

Are you willing to submit a PR?

  • I’m willing to submit a PR!

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
tisonkuncommented, Nov 21, 2022
1reaction
nicoloboschicommented, Nov 24, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

CSCvr36932 - BAT import fails with error "java ... - Cisco Bug
Cisco Bug: CSCvr36932 - BAT import fails with error "java.lang.NoClassDefFoundError: com/nimbusds/jose/KeyLengthException"
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found