PDA

View Full Version : Avro with Serialization


Jeniba
Jan 17, 2013, 04:51 AM
How to use Avro with Serialization?Explain with an simple example in Java..

JudyKayTee
Jan 17, 2013, 08:25 AM
Welcome to Apache Avro! (http://avro.apache.org/)

Jeniba
Jan 20, 2013, 11:46 PM
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.