Using Avro for serializing data to byte[] and deserializing data. https://cwiki.apache.org/confluence/display/AVRO/FAQ#FAQ-HowcanIserializedirectlyto/fromabytearray? shows sample usage.
SpecificDatumReader<User> reader = new SpecificDatumReader<User>(User.getClassSchema());
The above line is causing the following error
IllegalAccessError: tried to access method org.apache.avro.specific.SpecificData.<init>() from class com.abc.schema.generated.User
Any pointers to what might be going wrong here? No errors seen at compile time.