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

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

Jinho Kim created TAJO-1242:
-------------------------------

             Summary: 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)