title: Spark Kryo registration throws IllegalArgumentException
body: <p>When I am running my program, Spark pops this error</p>
  
  <pre><code>java.lang.IllegalArgumentException: Class is not registered: com.domain.package.program.model.ParameterEvenementData[] 
  Note: To register this class use: kryo.register(com.domain.package.program.model.ParameterEvenementData[].class); 
  </code></pre>
  
  <p>I am doing exactly what is said in the <a href="http://spark.apache.org/docs/1.3.0/tuning.html" rel="nofollow">documentation</a> and still, this error pops</p>
  
  <p>I am using Scala 2.10 and spark 1.3 and here's my registration conf</p>
  
  <pre><code>object SparkUtil extends Serializable {
  
    def initialize = {
  
      val conf = new SparkConf()
      .set("spark.serializer", "org.apache.spark.serializer.KryoSerializer")
      .set("spark.kryo.registrationRequired","true")
      .set("spark.kryoserializer.buffer.mb","24") 
      .setAppName("com.domain.package.program")
  
      conf.registerKryoClasses(Array(classOf[ParameterEvenementData], classOf[ClientData], classOf[EsdAdresseData]))
  
      val sc = new SparkContext(conf)
  
      val sqlc = new SQLContext(sc)
      sqlc
    }
  </code></pre>
  
  <p>Am I doing something wrong here ? Any help will be appreciated </p>