scala.runtime.VolatileObjectRef.zero() when submitting job to spark

Developer from somewhere

➜  SparkyOne ~/Tools/spark-1.4.1/bin/spark-submit --class Crocodil target/scala-2.11/sparkyone_2.11-1.0.jar
Exception in thread "main" java.lang.NoSuchMethodError: scala.runtime.VolatileObjectRef.zero()Lscala/runtime/VolatileObjectRef;
        at Crocodil$.main(Crocodil.scala)
        at Crocodil.main(Crocodil.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:665)

I received the above error when doing a submit. Turns out, my spark 1.4.1 was using scala 2.10.4, while my scala compiler was 2.11.8. Changing to this in my build.sbt:

scalaVersion := "2.10.4"

followed by a repackage, and a resubmit to spark, fixed the issue.