avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AVRO-598) ArrayIndexOutOfBoundsException after reading past a class that is not found
Date Mon, 23 Aug 2010 22:23:17 GMT

     [ 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.


Mime
View raw message