[jira] [Commented] (AVRO-1198) Malformed Avro data may cause confusing ArrayIndexOutOfBoundsException
[ https://issues.apache.org/jira/browse/AVRO-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13577058#comment-13577058 ] Hudson commented on AVRO-1198: -- Integrated in AvroJava #348 (See [https://builds.apache.org/job/AvroJava/348/]) AVRO-1198. Java: Improve error message for malformed data. (Revision 1445325) Result = SUCCESS cutting : Files : * /avro/trunk/CHANGES.txt * /avro/trunk/lang/java/avro/src/main/java/org/apache/avro/io/BinaryDecoder.java * /avro/trunk/lang/java/avro/src/test/java/org/apache/avro/io/TestBinaryDecoder.java > Malformed Avro data may cause confusing ArrayIndexOutOfBoundsException > -- > > Key: AVRO-1198 > URL: https://issues.apache.org/jira/browse/AVRO-1198 > Project: Avro > Issue Type: Bug > Components: java >Affects Versions: 1.7.2 >Reporter: Mike Percy >Assignee: Mike Percy > Fix For: 1.7.4 > > Attachments: AVRO-1198-1.patch, AVRO-1198.patch > > > I am currently debugging an issue where I am getting an > ArrayIndexOutOfBoundsException from the decoder while reading some Avro data. > Turns out that the integer indicating number of bytes to read next is > negative. It would be better if a more helpful error message were provided. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AVRO-1198) Malformed Avro data may cause confusing ArrayIndexOutOfBoundsException
[ https://issues.apache.org/jira/browse/AVRO-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13573843#comment-13573843 ] Doug Cutting commented on AVRO-1198: Unless there are objections I'll commit this soon. > Malformed Avro data may cause confusing ArrayIndexOutOfBoundsException > -- > > Key: AVRO-1198 > URL: https://issues.apache.org/jira/browse/AVRO-1198 > Project: Avro > Issue Type: Bug > Components: java >Affects Versions: 1.7.2 >Reporter: Mike Percy >Assignee: Mike Percy > Fix For: 1.7.4 > > Attachments: AVRO-1198-1.patch, AVRO-1198.patch > > > I am currently debugging an issue where I am getting an > ArrayIndexOutOfBoundsException from the decoder while reading some Avro data. > Turns out that the integer indicating number of bytes to read next is > negative. It would be better if a more helpful error message were provided. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AVRO-1198) Malformed Avro data may cause confusing ArrayIndexOutOfBoundsException
[ https://issues.apache.org/jira/browse/AVRO-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493803#comment-13493803 ] Mike Percy commented on AVRO-1198: -- Doug, this looks good to me. I suppose we should add a unit test for this scenario as well. > Malformed Avro data may cause confusing ArrayIndexOutOfBoundsException > -- > > Key: AVRO-1198 > URL: https://issues.apache.org/jira/browse/AVRO-1198 > Project: Avro > Issue Type: Bug > Components: java >Affects Versions: 1.7.2 >Reporter: Mike Percy >Assignee: Mike Percy > Fix For: 1.7.3 > > Attachments: AVRO-1198-1.patch, AVRO-1198.patch > > > I am currently debugging an issue where I am getting an > ArrayIndexOutOfBoundsException from the decoder while reading some Avro data. > Turns out that the integer indicating number of bytes to read next is > negative. It would be better if a more helpful error message were provided. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira