How to use Avro with Serialization?Explain with an simple example in Java..
![]() |
How to use Avro with Serialization?Explain with an simple example in Java..
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. |