Return-Path: Delivered-To: apmail-avro-dev-archive@www.apache.org Received: (qmail 80169 invoked from network); 23 Aug 2010 22:23:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Aug 2010 22:23:39 -0000 Received: (qmail 72310 invoked by uid 500); 23 Aug 2010 22:23:39 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 72231 invoked by uid 500); 23 Aug 2010 22:23:38 -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 72221 invoked by uid 99); 23 Aug 2010 22:23:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Aug 2010 22:23:38 +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, 23 Aug 2010 22:23:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7NMNH5w013014 for ; Mon, 23 Aug 2010 22:23:17 GMT Message-ID: <31939127.519811282602197375.JavaMail.jira@thor> Date: Mon, 23 Aug 2010 18:23:17 -0400 (EDT) From: "Doug Cutting (JIRA)" To: dev@avro.apache.org Subject: [jira] Updated: (AVRO-598) ArrayIndexOutOfBoundsException after reading past a class that is not found In-Reply-To: <21098526.403161279225674920.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-598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doug Cutting updated AVRO-598: ------------------------------ Attachment: AVRO-598.patch Here's a patch that fixes this. This is the equivalent of AVRO-580, but for reflect data. ReflectDatumReader will now use a specific class if one is defined, or a generic record instance if no class matching a schema is found. > ArrayIndexOutOfBoundsException after reading past a class that is not found > --------------------------------------------------------------------------- > > Key: AVRO-598 > URL: https://issues.apache.org/jira/browse/AVRO-598 > Project: Avro > Issue Type: Bug > Components: java > Affects Versions: 1.3.3, 1.4.0 > Reporter: Jon Travis > Fix For: 1.4.0 > > Attachments: AVRO-598.patch, SerializerTest.java > > > I have a use-case where I need to write serialized classes to a stream, and the reader of the stream may not have those classes. In such a case, I would like the reader to be able to invoke DataFileReader#invoke within a try{} block to catch the AvroRuntimeException(ClassNotFoundException) and move on. > This currently does not work, because of an exception thrown when retrieving a Symbol. > I've attached a test which demonstrates this problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.