[ 
https://issues.apache.org/jira/browse/TAJO-1242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14242162#comment-14242162
 ] 

ASF GitHub Bot commented on TAJO-1242:
--------------------------------------

GitHub user jinossy opened a pull request:

    https://github.com/apache/tajo/pull/296

    TAJO-1242: Json scanner can not read some case of trucated text.

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jinossy/tajo TAJO-1242

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tajo/pull/296.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #296
    
----
commit f65eb0f4b27c3b8e13e0a90744cc2ff4501b2cde
Author: jhkim <[email protected]>
Date:   2014-12-11T05:11:24Z

    TAJO-1242: Json scanner can not read some case of trucated text.

commit 95ee7b09dc1b1be0f200a1d68428902891fc9479
Author: jhkim <[email protected]>
Date:   2014-12-11T05:14:26Z

    fix the typo

----


> Json scanner can not read some case of trucated text
> ----------------------------------------------------
>
>                 Key: TAJO-1242
>                 URL: https://issues.apache.org/jira/browse/TAJO-1242
>             Project: Tajo
>          Issue Type: Bug
>          Components: storage
>    Affects Versions: 0.9.1
>            Reporter: Jinho Kim
>
> This error caused by complex type of truncated json.
> {noformat}
> sample test : {"id":[{"text":"json test
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 25
>       at 
> net.minidev.json.parser.JSONParserByteArray.indexOf(JSONParserByteArray.java:78)
>       at 
> net.minidev.json.parser.JSONParserMemory.readString(JSONParserMemory.java:120)
>       at 
> net.minidev.json.parser.JSONParserBase.readMain(JSONParserBase.java:394)
>       at 
> net.minidev.json.parser.JSONParserBase.readObject(JSONParserBase.java:530)
>       at 
> net.minidev.json.parser.JSONParserBase.readMain(JSONParserBase.java:387)
>       at 
> net.minidev.json.parser.JSONParserBase.readArray(JSONParserBase.java:257)
>       at 
> net.minidev.json.parser.JSONParserBase.readMain(JSONParserBase.java:390)
>       at 
> net.minidev.json.parser.JSONParserBase.readObject(JSONParserBase.java:530)
>       at 
> net.minidev.json.parser.JSONParserBase.readFirst(JSONParserBase.java:285)
>       at net.minidev.json.parser.JSONParserBase.parse(JSONParserBase.java:150)
>       at 
> net.minidev.json.parser.JSONParserByteArray.parse(JSONParserByteArray.java:57)
>       at 
> net.minidev.json.parser.JSONParserByteArray.parse(JSONParserByteArray.java:39)
>       at net.minidev.json.parser.JSONParser.parse(JSONParser.java:173)
>       at 
> org.apache.tajo.storage.json.JsonLineDeserializer.deserialize(JsonLineDeserializer.java:66)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to