You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org> on 2010/07/01 22:01:50 UTC

[jira] Assigned: (AVRO-589) ClassCastException: org.apache.avro.io.parsing.Symbol$Alternative cannot be cast to org.apache.avro.io.parsing.Symbol$UnionAdjustAction

     [ https://issues.apache.org/jira/browse/AVRO-589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thiruvalluvan M. G. reassigned AVRO-589:
----------------------------------------

    Assignee: Thiruvalluvan M. G.

> 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.3.3
>            Reporter: Christopher Cooper
>            Assignee: Thiruvalluvan M. G.
>             Fix For: 1.3.3
>
>
> 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.