Skip to content

Conversation

@ruhan1
Copy link
Contributor

@ruhan1 ruhan1 commented Dec 8, 2025

This commit resolves a Netty version conflict that was causing the warning: "NoClassDefFoundError: io/netty/util/internal/ClassInitializerUtil"

The issue was caused by multiple Netty versions in the dependency tree:

  • Datastax Cassandra driver (3.11.3) brought in Netty 4.1.77.Final
  • grpc-netty (1.35.0) brought in Netty 4.1.52.Final

This conflict prevented Netty from loading its native epoll transport, causing it to fall back to NIO with a warning message.

Solution:

  • Upgraded o11yphant from 1.9.1 to 1.9.2
    • Version 1.9.2 removed the grpc-netty dependency from o11yphant-trace-otel
  • Removed direct grpc-netty dependency from embedder module

This is a cleaner solution than forcing Netty version alignment via BOM, as it eliminates the conflicting dependency entirely.

🤖 Generated with Claude Code

This commit resolves a Netty version conflict that was causing the warning:
"NoClassDefFoundError: io/netty/util/internal/ClassInitializerUtil"

The issue was caused by multiple Netty versions in the dependency tree:
- Datastax Cassandra driver (3.11.3) brought in Netty 4.1.77.Final
- grpc-netty (1.35.0) brought in Netty 4.1.52.Final

This conflict prevented Netty from loading its native epoll transport,
causing it to fall back to NIO with a warning message.

Solution:
- Upgraded o11yphant from 1.9.1 to 1.9.2
  - Version 1.9.2 removed the grpc-netty dependency from o11yphant-trace-otel
- Removed direct grpc-netty dependency from embedder module

This is a cleaner solution than forcing Netty version alignment via BOM,
as it eliminates the conflicting dependency entirely.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ruhan1 ruhan1 requested review from ligangty and sswguo December 8, 2025 03:33
@sswguo
Copy link
Member

sswguo commented Dec 9, 2025

LGTM.

@ruhan1 ruhan1 merged commit 19d068d into Commonjava:master Dec 9, 2025
1 check passed
@ruhan1 ruhan1 deleted the fix-netty-version-conflict branch December 9, 2025 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants