com.liferay.portal.kernel.json.JSONException: org.json.JSONException: A JSONObject text must begin with '{' at character 1 of DaveVK

Liferay Issues | Daeyoung Song | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [LPS-16916] Exception : A JSONObject text must begin with '{' at character - Liferay Issues

    liferay.com | 1 year ago
    com.liferay.portal.kernel.json.JSONException: org.json.JSONException: A JSONObject text must begin with '{' at character 1 of DaveVK
  2. 0

    Issue: Exception : A JSONObject text must begin with '{' at character Steps to reproduce: 1) Create a custom field value for User. 2) Try retrieving it through webservice client call : http://&lt;server&gt;/tunnel-web/axis/Portlet_Expando_ExpandoValueService?wsdl Operation: getJSONObject. Snippet: expandoValueServiceSoap.getJSONData(10132, "com.liferay.portal.model.User", "CUSTOM_FIELDS", "Preferred Name", 10284); Additional note: It also seems like there is problem in wsdd, JSONObject mapping is not proper, please see below line. <parameter name="allowedMethods" value="addValue getJSONData" /> <typeMapping xmlns:ns="http://model.expando.portlet.liferay.com" qname="ns:ExpandoValueSoap" type="java:com.liferay.portlet.expando.model.ExpandoValueSoap" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"></typeMapping> Below is the server exception log: 15:52:26,890 ERROR [ExpandoValueServiceSoap:112] com.liferay.portal.kernel.json.JSONException: org.json.JSONException: A JSONObject text must begin with '{' at character 1 of DaveVK com.liferay.portal.kernel.json.JSONException: org.json.JSONException: A JSONObject text must begin with '{' at character 1 of DaveVK at com.liferay.portal.json.JSONObjectImpl.<init>(JSONObjectImpl.java:69) at com.liferay.portal.json.JSONFactoryImpl.createJSONObject(JSONFactoryImpl.java:60) at com.liferay.portal.kernel.json.JSONFactoryUtil.createJSONObject(JSONFactoryUtil.java:37)

    Liferay Issues | 6 years ago | Daeyoung Song
    com.liferay.portal.kernel.json.JSONException: org.json.JSONException: A JSONObject text must begin with '{' at character 1 of DaveVK
  3. 0

    Issue: Exception : A JSONObject text must begin with '{' at character Steps to reproduce: 1) Create a custom field value for User. 2) Try retrieving it through webservice client call : http://&lt;server&gt;/tunnel-web/axis/Portlet_Expando_ExpandoValueService?wsdl Operation: getJSONObject. Snippet: expandoValueServiceSoap.getJSONData(10132, "com.liferay.portal.model.User", "CUSTOM_FIELDS", "Preferred Name", 10284); Additional note: It also seems like there is problem in wsdd, JSONObject mapping is not proper, please see below line. <parameter name="allowedMethods" value="addValue getJSONData" /> <typeMapping xmlns:ns="http://model.expando.portlet.liferay.com" qname="ns:ExpandoValueSoap" type="java:com.liferay.portlet.expando.model.ExpandoValueSoap" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"></typeMapping> Below is the server exception log: 15:52:26,890 ERROR [ExpandoValueServiceSoap:112] com.liferay.portal.kernel.json.JSONException: org.json.JSONException: A JSONObject text must begin with '{' at character 1 of DaveVK com.liferay.portal.kernel.json.JSONException: org.json.JSONException: A JSONObject text must begin with '{' at character 1 of DaveVK at com.liferay.portal.json.JSONObjectImpl.<init>(JSONObjectImpl.java:69) at com.liferay.portal.json.JSONFactoryImpl.createJSONObject(JSONFactoryImpl.java:60) at com.liferay.portal.kernel.json.JSONFactoryUtil.createJSONObject(JSONFactoryUtil.java:37)

    Liferay Issues | 6 years ago | Daeyoung Song
    com.liferay.portal.kernel.json.JSONException: org.json.JSONException: A JSONObject text must begin with '{' at character 1 of DaveVK
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Facing problem with addUser() functionality using JSON - Forums | Liferay

    liferay.com | 1 year ago
    com.liferay.portal.kernel.json.JSONException: org.json.JSONException: A JSONObject text must begin with '{' at character 1 of [object Object]

    Root Cause Analysis

    1. com.liferay.portal.kernel.json.JSONException

      org.json.JSONException: A JSONObject text must begin with '{' at character 1 of DaveVK

      at com.liferay.portal.json.JSONObjectImpl.<init>()
    2. Liferay Portal Impl
      JSONFactoryImpl.createJSONObject
      1. com.liferay.portal.json.JSONObjectImpl.<init>(JSONObjectImpl.java:69)
      2. com.liferay.portal.json.JSONFactoryImpl.createJSONObject(JSONFactoryImpl.java:60)
      2 frames
    3. Liferay Portal Service
      JSONFactoryUtil.createJSONObject
      1. com.liferay.portal.kernel.json.JSONFactoryUtil.createJSONObject(JSONFactoryUtil.java:37)
      1 frame