You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by Mick <mi...@gmail.com> on 2013/10/24 12:07:59 UTC

Array error while generate-source

I got IDL based protocol:
..
record SourceData{
         string id;
     }

     array<SourceData> SourceOffer; //line13
...

I keep getting error:

Failed to execute goal 
org.apache.avro:avro-maven-plugin:1.7.5:idl-protocol (schemas) on 
project Network: Error compiling protocol file protocol.avdl to 
/home/Mick/workspace/Network/src/main/java: 
org.apache.avro.compiler.idl.ParseException: Encountered " ";" "; "" at 
line 13, column 38.
[ERROR] Was expecting:
[ERROR] "(" ...
[ERROR] -> [Help 1]

What seems to be the problem? Can't I use array of 'SourceData' type?

Best,
Mick