You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "michael elbaz (JIRA)" <ji...@apache.org> on 2019/07/08 13:26:00 UTC

[jira] [Updated] (CAMEL-13737) [AVRO] java.lang.ArrayIndexOutOfBoundsException: -40

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

michael elbaz updated CAMEL-13737:
----------------------------------
    Description: 
When i try to deserialize some avro file like provided i got java.lang.ArrayIndexOutOfBoundsException: -40, i also didn't understand the camel component it doesn't put the schema in the generated avro file it should not ?

This code work for transforming the provided avro file to json

{code:java}

private static Iterator<?> toJsonIterator(File file) throws IOException {
        return new DataFileReader<>(file, new GenericDatumReader<>());
    }
{code}


  was:When i try to deserialize some avro file like provided i got java.lang.ArrayIndexOutOfBoundsException: -40, i also didn't understand the camel component it doesn't put the schema in the generated avro file it should not ?


> [AVRO] java.lang.ArrayIndexOutOfBoundsException: -40
> ----------------------------------------------------
>
>                 Key: CAMEL-13737
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13737
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-avro
>    Affects Versions: 2.24.1
>            Reporter: michael elbaz
>            Priority: Major
>         Attachments: avro1.avro
>
>
> When i try to deserialize some avro file like provided i got java.lang.ArrayIndexOutOfBoundsException: -40, i also didn't understand the camel component it doesn't put the schema in the generated avro file it should not ?
> This code work for transforming the provided avro file to json
> {code:java}
> private static Iterator<?> toJsonIterator(File file) throws IOException {
>         return new DataFileReader<>(file, new GenericDatumReader<>());
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)