Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NoSuchMethodError when attempting to implicitly convert a java to scala collection

I started to receive this kind of error in my code:

Message:
java.lang.NoSuchMethodError:scala.collection.JavaConversions
$.asScalaSet(Ljava/util/Set;)Lscala/collection/mutable/Set

and then I see a long screen of stacktrace of uninteresting nature, which is triggered on this piece of code:

edited.authors.toSeq

where authors is a java.lang.Set. Does anybody know why is this happening? It's a runtime failure and not a compile one.

like image 267
ryskajakub Avatar asked Jul 09 '26 01:07

ryskajakub


1 Answers

You are using a library which has been compiled with 2.8.1 from the 2.8.0 runtime

like image 173
oxbow_lakes Avatar answered Jul 11 '26 15:07

oxbow_lakes