You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/12/11 14:26:13 UTC

[jira] [Commented] (TAJO-1242) Json scanner can not read some case of truncated text

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

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

Github user hyunsik commented on the pull request:

    https://github.com/apache/tajo/pull/296#issuecomment-66618208
  
    +1
    The fix looks straightforward. The unit test is enough to reproduce the problematic case and prove the bug fix.


> Json scanner can not read some case of truncated 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
>            Assignee: Jinho Kim
>             Fix For: 0.9.1
>
>
> 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)