title: Error using readObject of kryo in scala?
body: <p>I am using Kyro package for serializing and de-serializing object in Scala. Deserializing scala object from saved file through following error. </p>
  
  <pre><code> Exception in thread "main" com.esotericsoftware.kryo.KryoException: Class cannot be created (missing no-arg constructor)
  </code></pre>
  
  <p>The scala object serialized: </p>
  
  <pre><code>class serialzObj(val token: Token){
           def this() = this(null)
  ....
  }
  </code></pre>
  
  <p>The code used for de-serialization:</p>
  
  <pre><code>var kryo = new Kryo(); 
  var input = new Input(new FileInputStream(fName));
  var index = kryo.readObject(input, classOf[serialzObj]);
  input.close();
  </code></pre>
  
  <p>UPDATE: The issue was fixed. The default constructor was missing in the TOKEN object. </p>