You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Leangen (JIRA)" <ji...@apache.org> on 2017/08/10 22:48:00 UTC
[jira] [Created] (FELIX-5675) JSONParser needs a little bit more
context when reporting an error
David Leangen created FELIX-5675:
------------------------------------
Summary: JSONParser needs a little bit more context when reporting an error
Key: FELIX-5675
URL: https://issues.apache.org/jira/browse/FELIX-5675
Project: Felix
Issue Type: Bug
Components: Utils
Reporter: David Leangen
Assignee: David Leangen
Occasionally a Key/Value Pair evaluates to an empty string. In that case, the error message is something like:
{code}
Caused by: java.lang.IllegalArgumentException: Malformatted JSON key-value pair:
at org.apache.felix.serializer.impl.json.JSONParser.parseKeyValue(JSONParser.java:106)
at org.apache.felix.serializer.impl.json.JSONParser.parseObject(JSONParser.java:203)
... 56 more
{code}
This makes it very challenging to find where the error is in the file.
In order to add more context, the previously-parsed Key/Value pair should also be output.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)