Return-Path: Delivered-To: apmail-avro-dev-archive@www.apache.org Received: (qmail 86261 invoked from network); 5 Jul 2010 03:28:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Jul 2010 03:28:47 -0000 Received: (qmail 52211 invoked by uid 500); 5 Jul 2010 03:28:47 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 52055 invoked by uid 500); 5 Jul 2010 03:28:45 -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 52047 invoked by uid 99); 5 Jul 2010 03:28:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 03:28:44 +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, 05 Jul 2010 03:28:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o653KneU002787 for ; Mon, 5 Jul 2010 03:20:49 GMT Message-ID: <30662041.196111278300049305.JavaMail.jira@thor> Date: Sun, 4 Jul 2010 23:20:49 -0400 (EDT) From: "Thiruvalluvan M. G. (JIRA)" To: dev@avro.apache.org Subject: [jira] Updated: (AVRO-589) ClassCastException: org.apache.avro.io.parsing.Symbol$Alternative cannot be cast to org.apache.avro.io.parsing.Symbol$UnionAdjustAction In-Reply-To: <14225077.159481278013309568.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AVRO-589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thiruvalluvan M. G. updated AVRO-589: ------------------------------------- Status: Resolved (was: Patch Available) Hadoop Flags: [Reviewed] Resolution: Fixed Committed revision 960427. Thanks Scott for reviewing the patch. > ClassCastException: org.apache.avro.io.parsing.Symbol$Alternative cannot be cast to org.apache.avro.io.parsing.Symbol$UnionAdjustAction > --------------------------------------------------------------------------------------------------------------------------------------- > > Key: AVRO-589 > URL: https://issues.apache.org/jira/browse/AVRO-589 > Project: Avro > Issue Type: Bug > Components: java > Affects Versions: 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.3.3 > Reporter: Christopher Cooper > Assignee: Thiruvalluvan M. G. > Fix For: 1.4.0 > > Attachments: AVRO-589.patch > > > I've got a complicated schema that when deserializing data gives me the following exception: > java.lang.ClassCastException: org.apache.avro.io.parsing.Symbol$Alternative cannot be cast to org.apache.avro.io.parsing.Symbol$UnionAdjustAction > at org.apache.avro.io.ResolvingDecoder.readIndex(ResolvingDecoder.java:188) > at org.apache.avro.io.ParsingDecoder.skipTopSymbol(ParsingDecoder.java:66) > at org.apache.avro.io.parsing.SkipParser.skipTo(SkipParser.java:71) > at org.apache.avro.io.parsing.SkipParser.skipSymbol(SkipParser.java:93) > at org.apache.avro.io.ResolvingDecoder.doAction(ResolvingDecoder.java:207) > at org.apache.avro.io.parsing.Parser.processImplicitActions(Parser.java:116) > at org.apache.avro.io.ResolvingDecoder.drain(ResolvingDecoder.java:141) > at org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:72) > at org.apache.avro.file.DataFileStream.next(DataFileStream.java:195) > at org.apache.avro.file.DataFileStream.next(DataFileStream.java:182) > If I go into ResolvingDecoder.readIndex and modify the code to use an instanceof check, my data deserializes perfectly fine. > I can send all files and unit tests needed to duplicate the error to whomever is working this ticket -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.