Return-Path: X-Original-To: apmail-avro-user-archive@www.apache.org Delivered-To: apmail-avro-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7F56E7D56 for ; Wed, 12 Oct 2011 21:28:51 +0000 (UTC) Received: (qmail 92519 invoked by uid 500); 12 Oct 2011 21:28:51 -0000 Delivered-To: apmail-avro-user-archive@avro.apache.org Received: (qmail 92474 invoked by uid 500); 12 Oct 2011 21:28:51 -0000 Mailing-List: contact user-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@avro.apache.org Delivered-To: mailing list user@avro.apache.org Received: (qmail 92466 invoked by uid 99); 12 Oct 2011 21:28:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2011 21:28:51 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of matt.r.stevenson@gmail.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bw0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2011 21:28:43 +0000 Received: by bkas6 with SMTP id s6so672188bka.30 for ; Wed, 12 Oct 2011 14:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=NJd/JS5TJjMt/E94mZs9aTGvfI1wR6fGU/E2hYeeMWQ=; b=FPdvKpbjMHseJOCtnu1fUAewVQCdtB/wj9FDWSI0JNoq08IN3S+JNT+le8cxlRaXVb T2mzdEpD/pyVEyIDFPeHrYAhNtmCvOVJCev628siEdd744ybyBbR4dTA3eUIZnyJ/eZP Kb9kTU1sKYr7A/8D/1voYiHvanpr3v+y2vJ1M= Received: by 10.204.145.28 with SMTP id b28mr465490bkv.76.1318454903095; Wed, 12 Oct 2011 14:28:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.63.140 with HTTP; Wed, 12 Oct 2011 14:27:43 -0700 (PDT) In-Reply-To: References: From: Matt Stevenson Date: Wed, 12 Oct 2011 16:27:43 -0500 Message-ID: Subject: Re: C++/Java schema compatibility To: user@avro.apache.org Content-Type: multipart/alternative; boundary=00151747629c26c36a04af20b404 X-Virus-Checked: Checked by ClamAV on apache.org --00151747629c26c36a04af20b404 Content-Type: text/plain; charset=ISO-8859-1 The avrogencpp tool will only parse individual records. If you save record Message { string to; string from; string body; } as a .json file, it will generate the class. I think only records are supported in C++ and not full protocols. On Wed, Oct 12, 2011 at 1:37 PM, Shaun Williams wrote: > I'm trying to compile the Mail.avpr schema from the avro-rpc-quickstart > example using the c++ tools, and precompile fails with the following error: > "Failed to parse or compile schema: Schema is invalid, due to bad node of > type symbolic." > > I even tried generating the avpr from an avdl, but precompile still fails > with the same error. Any idea what the problem might be? > > Here's my avdl FYI: > > @namespace("example.proto") > protocol Mail{ > record Message { > string to; > string from; > string body; > } > > string send(Message message); > } > > Thanks! > -- Matt Stevenson. --00151747629c26c36a04af20b404 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The avrogencpp tool will only parse individual records.
If you save
<= div> record Message { string to;
string from;
<= span style=3D"white-space:pre-wrap"> string body;
}

as a .json file, it will gen= erate the class.
I think only records are supported in C++ and not full protocols.
=

On Wed, Oct 12, 2011 at 1:37 PM, Shaun W= illiams <sha= unwilli42@gmail.com> wrote:
I'm trying to compile the Mail.avpr sch= ema from the avro-rpc-quickstart example using the c++ tools, and precompil= e fails with the following error:
"Failed to parse or compile schema: Schema is invalid, due to bad node= of type symbolic."

I even tried generating the avpr from an avdl, but prec= ompile still fails with the same error. =A0Any idea what the problem might = be?

Here's my avdl FYI:

@namespace("example.proto")
protocol Mail{
record Message {
=
string to;
string from;
<= span style=3D"white-space:pre-wrap"> string body;
}

string sen= d(Message message);
}

Thanks!



--
Matt Stevenson.
--00151747629c26c36a04af20b404--