Results 1 to 3 of 3

Thread: "XML Parsing Error: not well-formed" on app.json load on Firefox

  1. #1
    Sencha User
    Join Date
    Oct 2017
    Posts
    54
    Vote Rating
    0
      0  

    Default "XML Parsing Error: not well-formed" on app.json load on Firefox

    Hi,
    As the title says, I get this error "XML Parsing Error: not well-formed Location: http://...../app.json Line Number 1, Column 1:" on Firefox on loading app.json. Anyone knows how to solve this?

  2. #2
    Ext JS Premium Member dtex-lab's Avatar
    Join Date
    Sep 2009
    Location
    Italy
    Posts
    399
    Vote Rating
    7
      0  

    Default

    hi
    without know your response, it is hard to help you
    but that error can be due different reason
    one can be because you are not sending as response the content-type to "application/json"
    e.g. if it is a JSP creating the json results you should have
    <%@ page language="java" contentType="application/json; charset=UTF-8" ...%>
    another reason can be if you will not set key on json in double quote
    e.g.
    { yourkey: 8 }
    it should be
    { "yourkey": 8 }

    regards
    we make IT work for you

  3. #3
    Sencha User
    Join Date
    Oct 2017
    Posts
    54
    Vote Rating
    0
      0  

    Default

    Thank you dtex-lab for your reply. I could solve the problem by adding:
    <mime-mapping>
    <extension>json</extension>
    <mime-type>application/json</mime-type>
    </mime-mapping>

    to the web.xml file of my server.

Similar Threads

  1. Replies: 11
    Last Post: 17 Sep 2014, 2:24 PM
  2. Replies: 2
    Last Post: 22 Oct 2013, 3:29 PM
  3. Replies: 1
    Last Post: 1 Oct 2013, 9:48 PM
  4. Replies: 4
    Last Post: 9 Apr 2012, 5:46 AM
  5. Error parsing json response: always "null"
    By Max_nl in forum Ext 3.x: Bugs
    Replies: 1
    Last Post: 2 Dec 2011, 12:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •