I'm running into a weird error when using Spark and Scala. I have a piece of code that declares a variable:
var offset = 0
This causes the following exception:
java.lang.NoSuchMethodError: scala.runtime.IntRef.create(I)Lscala/runtime/IntRef;
at my.package.MyClass$class.myMethod(MyClass.scala:5)
...
And it points directly at the variable declaration. I am using Scala 2.11.2. Compiling works. This is a runtime error. I do not get any dependency/version mismatch warnings when running sbt package
either.