io/netty/resolver/dns/DnsAddressResolverGroup/DnsAddressResolverGroup is not assignable to io/netty/resolver/AddressResolverGroup #2916
Unanswered
klnlakshmiphilips
asked this question in
Q&A
Replies: 1 comment
-
Hey @klnlakshmiphilips , could you verify that the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Report
When i try to intialize the redis cluster client with the below code, i get exception as described below.
This exception is triggered from the class io.lettuce.core.resource.AddressResolverGroupProvider in the static block.
The static block have the following code
As per this code when the class "io.netty.resolver.dns.DnsAddressResolverGroup" is part of the classapath and java is able to load the class, then the boolean value will be true.
As i am running my flink job in EMR the hadoop have a jar netty-resolver-dns-4.1.77.Final.jar in the class path. And this Jar have the class "io.netty.resolver.dns.DnsAddressResolverGroup". After the condition is true, the following code gets executed and throws the above exception
Current Behavior
Stack trace
Exception Details:
Location:
io/lettuce/core/resource/AddressResolverGroupProvider$DefaultDnsAddressResolverGroupWrapper.()V @51: putstatic
Reason:
Type 'io/netty/resolver/dns/DnsAddressResolverGroup' (current frame, stack[0]) is not assignable to 'io/netty/resolver/AddressResolverGroup'
Current Frame:
bci: @51
flags: { }
locals: { }
stack: { 'io/netty/resolver/dns/DnsAddressResolverGroup' }
Input Code
Input Code
RedisURI redisUriCluster = RedisURI.builder().withHost(host).withPort(port).build();
redisClusterClient = RedisClusterClient.create(redisUriCluster);
Expected behavior/code
Environment
Possible Solution
Additional context
Beta Was this translation helpful? Give feedback.
All reactions