Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6BA49106F5 for ; Wed, 22 Jan 2014 06:07:31 +0000 (UTC) Received: (qmail 28679 invoked by uid 500); 22 Jan 2014 06:07:29 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 27827 invoked by uid 500); 22 Jan 2014 06:07:26 -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 27745 invoked by uid 99); 22 Jan 2014 06:07:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jan 2014 06:07:25 +0000 Date: Wed, 22 Jan 2014 06:07:25 +0000 (UTC) From: "Ramana Suvarapu (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AVRO-1444) Unable to reuse JSonDecoder and JSONDecoder crashes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ramana Suvarapu updated AVRO-1444: ---------------------------------- Attachment: AVRO-1444.patch > Unable to reuse JSonDecoder and JSONDecoder crashes > --------------------------------------------------- > > Key: AVRO-1444 > URL: https://issues.apache.org/jira/browse/AVRO-1444 > Project: Avro > Issue Type: Bug > Components: c++ > Reporter: Ramana Suvarapu > Fix For: 1.7.6 > > Attachments: AVRO-1444.patch, JsonEncodingTest.cpp > > > I am trying to re-use the JSONDecoder to decode the JSONText file which contains JSONEncoded Objects. After first item is processed successfully, on the second item, when I tried to re-use the decoder, decoder crashes. > The reason is when jsonDecoder is initialized with new stream, internal stack of jsonDecoder is getting reset and StreamReader of jsonDecoder is also not getting reset. > Attached is the program to re-produce this issue and also I attach patch to fix this issue. But patch works but needs to be reviewed -- This message was sent by Atlassian JIRA (v6.1.5#6160)