Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Distance Learning (https://www.askmehelpdesk.com/forumdisplay.php?f=97)
-   -   Avro with Serialization (https://www.askmehelpdesk.com/showthread.php?t=728524)

  • Jan 17, 2013, 04:51 AM
    Jeniba
    Avro with Serialization
    How to use Avro with Serialization?Explain with an simple example in Java..
  • Jan 17, 2013, 08:25 AM
    JudyKayTee
    Welcome to Apache Avro!
  • Jan 20, 2013, 11:46 PM
    Jeniba
    After reading the doc.Iam still not clear how to serialize and deserialize.The Compilation for Schema is done. It creates a java file. If I run the code for serialization and deserialization Iam getting exceptions.
    Exception in thread "main" java.lang.NullPointerException
    at org.apache.avro.specific.SpecificData.createSchema (SpecificData.java:209)
    at org.apache.avro.specific.SpecificData.getSchema(Sp ecificData.java:154)
    at org.apache.avro.specific.SpecificDatumWriter.<init >(SpecificDatumWriter.java:33)
    at trial.main(trial.java:34)
    Iam not getting the problem Iam running the code by using Eclipse.

  • All times are GMT -7. The time now is 02:47 PM.