Return-Path: Delivered-To: apmail-avro-dev-archive@www.apache.org Received: (qmail 12134 invoked from network); 29 Nov 2010 23:21:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 23:21:32 -0000 Received: (qmail 55821 invoked by uid 500); 29 Nov 2010 23:21:32 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 55717 invoked by uid 500); 29 Nov 2010 23:21:32 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 55708 invoked by uid 99); 29 Nov 2010 23:21:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 23:21:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 23:21:31 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oATNLBaK021975 for ; Mon, 29 Nov 2010 23:21:11 GMT Message-ID: <21740060.12861291072871816.JavaMail.jira@thor> Date: Mon, 29 Nov 2010 18:21:11 -0500 (EST) From: "Doug Cutting (JIRA)" To: dev@avro.apache.org Subject: [jira] Resolved: (AVRO-702) SchemaParseException: Undefined name: MyInstruction" exception when parse schema generated In-Reply-To: <27030065.295421290635533864.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doug Cutting resolved AVRO-702. ------------------------------- Resolution: Fixed Fix Version/s: 1.5.0 Assignee: Doug Cutting I committed this. > SchemaParseException: Undefined name: MyInstruction" exception when parse schema generated > ------------------------------------------------------------------------------------------ > > Key: AVRO-702 > URL: https://issues.apache.org/jira/browse/AVRO-702 > Project: Avro > Issue Type: Bug > Components: java > Affects Versions: 1.4.1 > Reporter: Xiaolu Ye > Assignee: Doug Cutting > Fix For: 1.5.0 > > Attachments: AVRO-702.patch, MyTest.java, MyTestOutput.txt, test1.avpr > > > MyTest.java throws "SchemaParseException: Undefined name: MyInstruction" exception when calling Schema.parse() given the string created by Schema.toString(). The schema is created from the test1.avpr. The output of the Schema.toString() is in MyTestOutput.txt. > If you could take a look at the MyTestOutput.txt, you will see Schema.parse assumes "MyInstruction" is in "com.foo.bar" namespace, but it should be in "com.foo.basic" namespace from the model definition (test1.avpr). Changing Schema.getQualified(String defaultSpace) to always return full (fully qualified name) fixes the issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.