[jira] [Commented] (KAFKA-12312) kafka_2.13:2.6.1 throws NoSuchMethodError when running against scala-sdk-2.13.4

2021-02-10 Thread Luke Chen (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-12312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17282352#comment-17282352
 ] 

Luke Chen commented on KAFKA-12312:
---

> this feels more like a Scala compiler issue than a Kafka one.

I agree!

Thank you.

> kafka_2.13:2.6.1 throws NoSuchMethodError when running against 
> scala-sdk-2.13.4
> ---
>
> Key: KAFKA-12312
> URL: https://issues.apache.org/jira/browse/KAFKA-12312
> Project: Kafka
>  Issue Type: Bug
>Affects Versions: 2.6.0, 2.6.1
>Reporter: Tamas Kornai
>Priority: Minor
>
> The below snippet runs without issues with {{scala-sdk-2.13.3}}, but throws 
> {{NoSuchMethodError}} for {{scala-sdk-2.13.4}}: 
> {quote}val authorize = new AclAuthorizer()
>  val acls = authorize.acls(AclBindingFilter.ANY)
> {quote}
> The error is: 
> {quote}Exception in thread "main" java.lang.NoSuchMethodError: 
> 'scala.collection.immutable.RedBlackTree$Tree 
> scala.collection.immutable.TreeMap.scala$collection$immutable$TreeMap$$tree()'
>  at kafka.security.authorizer.AclAuthorizer.acls(AclAuthorizer.scala:293)
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KAFKA-12312) kafka_2.13:2.6.1 throws NoSuchMethodError when running against scala-sdk-2.13.4

2021-02-10 Thread Tamas Kornai (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-12312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17282327#comment-17282327
 ] 

Tamas Kornai commented on KAFKA-12312:
--

[~showuon] what makes this issue a bit worse than the one in (2) is that it's 
not the Scala minor version but the patch version difference that is causing 
the issue. I appreciate though that pinning back the scala-sdk version solves 
the problem, and this feels more like a Scala compiler issue than a Kafka one.

> kafka_2.13:2.6.1 throws NoSuchMethodError when running against 
> scala-sdk-2.13.4
> ---
>
> Key: KAFKA-12312
> URL: https://issues.apache.org/jira/browse/KAFKA-12312
> Project: Kafka
>  Issue Type: Bug
>Affects Versions: 2.6.0, 2.6.1
>Reporter: Tamas Kornai
>Priority: Minor
>
> The below snippet runs without issues with {{scala-sdk-2.13.3}}, but throws 
> {{NoSuchMethodError}} for {{scala-sdk-2.13.4}}: 
> {quote}val authorize = new AclAuthorizer()
>  val acls = authorize.acls(AclBindingFilter.ANY)
> {quote}
> The error is: 
> {quote}Exception in thread "main" java.lang.NoSuchMethodError: 
> 'scala.collection.immutable.RedBlackTree$Tree 
> scala.collection.immutable.TreeMap.scala$collection$immutable$TreeMap$$tree()'
>  at kafka.security.authorizer.AclAuthorizer.acls(AclAuthorizer.scala:293)
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KAFKA-12312) kafka_2.13:2.6.1 throws NoSuchMethodError when running against scala-sdk-2.13.4

2021-02-10 Thread Luke Chen (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-12312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17282318#comment-17282318
 ] 

Luke Chen commented on KAFKA-12312:
---

[~tkornai], after some investigation, I think this might not be a defect. To 
work with the project with a specific scala version, you might need to use the 
same version as the project used. There's also some workaround after doing some 
search, but the easiest way is to use the same scala version as the dependent 
project used.

ref: (1) https://stackoverflow.com/a/61677956

(2) 
https://alvinalexander.com/source-code/scala-java-lang-nosuchmethoderror-compiler-message/

> kafka_2.13:2.6.1 throws NoSuchMethodError when running against 
> scala-sdk-2.13.4
> ---
>
> Key: KAFKA-12312
> URL: https://issues.apache.org/jira/browse/KAFKA-12312
> Project: Kafka
>  Issue Type: Bug
>Affects Versions: 2.6.0, 2.6.1
>Reporter: Tamas Kornai
>Priority: Minor
>
> The below snippet runs without issues with {{scala-sdk-2.13.3}}, but throws 
> {{NoSuchMethodError}} for {{scala-sdk-2.13.4}}: 
> {quote}val authorize = new AclAuthorizer()
>  val acls = authorize.acls(AclBindingFilter.ANY)
> {quote}
> The error is: 
> {quote}Exception in thread "main" java.lang.NoSuchMethodError: 
> 'scala.collection.immutable.RedBlackTree$Tree 
> scala.collection.immutable.TreeMap.scala$collection$immutable$TreeMap$$tree()'
>  at kafka.security.authorizer.AclAuthorizer.acls(AclAuthorizer.scala:293)
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KAFKA-12312) kafka_2.13:2.6.1 throws NoSuchMethodError when running against scala-sdk-2.13.4

2021-02-09 Thread Tamas Kornai (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-12312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17281820#comment-17281820
 ] 

Tamas Kornai commented on KAFKA-12312:
--

Thanks [~showuon] for looking into this.

> kafka_2.13:2.6.1 throws NoSuchMethodError when running against 
> scala-sdk-2.13.4
> ---
>
> Key: KAFKA-12312
> URL: https://issues.apache.org/jira/browse/KAFKA-12312
> Project: Kafka
>  Issue Type: Bug
>Affects Versions: 2.6.0, 2.6.1
>Reporter: Tamas Kornai
>Priority: Minor
>
> The below snippet runs without issues with {{scala-sdk-2.13.3}}, but throws 
> {{NoSuchMethodError}} for {{scala-sdk-2.13.4}}: 
> {quote}val authorize = new AclAuthorizer()
>  val acls = authorize.acls(AclBindingFilter.ANY)
> {quote}
> The error is: 
> {quote}Exception in thread "main" java.lang.NoSuchMethodError: 
> 'scala.collection.immutable.RedBlackTree$Tree 
> scala.collection.immutable.TreeMap.scala$collection$immutable$TreeMap$$tree()'
>  at kafka.security.authorizer.AclAuthorizer.acls(AclAuthorizer.scala:293)
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KAFKA-12312) kafka_2.13:2.6.1 throws NoSuchMethodError when running against scala-sdk-2.13.4

2021-02-08 Thread Luke Chen (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-12312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17281487#comment-17281487
 ] 

Luke Chen commented on KAFKA-12312:
---

[~tkornai], we applied the scala 2.13.4 and fixed the compatible issues on the 
latest trunk branch, which should be in 2.8 release. I'll help you ask if we 
want to cherry-pick this issue into 2.6.2 release. Thanks for reporting.

> kafka_2.13:2.6.1 throws NoSuchMethodError when running against 
> scala-sdk-2.13.4
> ---
>
> Key: KAFKA-12312
> URL: https://issues.apache.org/jira/browse/KAFKA-12312
> Project: Kafka
>  Issue Type: Bug
>Affects Versions: 2.6.0, 2.6.1
>Reporter: Tamas Kornai
>Priority: Minor
>
> The below snippet runs without issues with {{scala-sdk-2.13.3}}, but throws 
> {{NoSuchMethodError}} for {{scala-sdk-2.13.4}}: 
> {quote}val authorize = new AclAuthorizer()
>  val acls = authorize.acls(AclBindingFilter.ANY)
> {quote}
> The error is: 
> {quote}Exception in thread "main" java.lang.NoSuchMethodError: 
> 'scala.collection.immutable.RedBlackTree$Tree 
> scala.collection.immutable.TreeMap.scala$collection$immutable$TreeMap$$tree()'
>  at kafka.security.authorizer.AclAuthorizer.acls(AclAuthorizer.scala:293)
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)