avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AnilKumar B <akumarb2...@gmail.com>
Subject Facing issue while using avro-maven-plugin
Date Wed, 05 Feb 2014 16:39:38 GMT

I have created below .avsc schema file and I tried creating corresponding
classes by using avro tool and with plugin, but there are few errors on
generated java code. What could be the issue?

{"namespace": "test.avro",
 "type": "record",
 "name": "Session",
 "fields": [
   {"name":"VisitCommon", "type": {
           "type": "map", "values":"string"}},
    "type": {
        "type": "array",

1) Error: The method deepCopy(Schema, List<Map<CharSequence,CharSequence>>)
is undefined for the type GenericData
2) And also observed there is some deprecated code.
 @Deprecated public
java.util.Map<java.lang.CharSequence,java.lang.CharSequence> VisitCommon;

I used eclipse plugin as mentioned below.

I tried with different versions of avro-maven-plugin, with 1.7.5, 1.7.6 and
with jdk1.7.0_45 version.

I am unable to resolve it.

Error message is as below:
[ERROR] symbol:   method
[ERROR] location: class org.apache.avro.generic.GenericData

Thanks & Regards,
B Anil Kumar.

View raw message