Re: Passing Schema objects through Avro RPC

2014-06-21 Thread Joey Echeverria
That would definitely help, I'll take a look at it! I worked around it for the moment by creating a CustomEncoding that encodes using Schema#toString() and decodes using Parser#parse(String). I then annotated my Schema field with @AvroEncode(using=SchemaAsStringEncoding.class). -Joey On Sat, Ju

Re: Passing Schema objects through Avro RPC

2014-06-21 Thread Harsh J
Hey Joey, Are you perhaps looking for https://issues.apache.org/jira/browse/AVRO-251? On Sat, Jun 21, 2014 at 2:20 AM, Joey Echeverria wrote: > Has anyone built an Avro RPC interface that includes a method that returns > Avro Schema objects? > > I've built my protocol using the reflect APIs, but

Passing Schema objects through Avro RPC

2014-06-20 Thread Joey Echeverria
Has anyone built an Avro RPC interface that includes a method that returns Avro Schema objects? I've built my protocol using the reflect APIs, but because Schema doesn't have an empty constructor, I get a NoSuchMethodException when trying to deserialize on the client. -Joey