avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tazan007 <tazan...@gmail.com>
Subject Unknown type java.util.List<java.lang.String> with ReflectData.getSchema
Date Fri, 31 Jul 2009 22:51:10 GMT
Hi guys, I am getting this error when trying to build a schema using an
existing class with ReflectData.getSchema method with a List<String> field.
Is this expected behaviour?  Are List's not supported?

ptype = java.util.List<java.lang.String> raw = interface java.util.List
param =class java.lang.String
Exception in thread "main" org.apache.avro.AvroTypeException: Unknown type:
java.util.List<java.lang.String>
    at
org.apache.avro.reflect.ReflectData.createSchema(ReflectData.java:192)
    at
org.apache.avro.reflect.ReflectData.createSchema(ReflectData.java:185)
    at org.apache.avro.reflect.ReflectData.getSchema(ReflectData.java:107)

Thanks,
Hiral

Mime
View raw message