Menu

#6 Error encountered parsing the settings file

v1.0 (example)
closed
None
5
2016-05-02
2011-07-06
XingWang
No

the error promotion is as follow:

Error encountered parsing the settings file
The mytestconfig.xml file must be of type save_settings.
It is in reality of the type [].

I find the problem may be in the file ParseSaveSettings.java

public void startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException {
if (count == 0) {
if (!localName.equals("save_settings")&&!qName.equals("name")) {
throw new SAXException("\n\nIt is in reality of the type ["
+ localName + "].");
}
}

localName is the local name (without prefix), or the empty string if Namespace processing is not being performed
qName is the qualified name (with prefix), or the empty string if qualified names are not available

During the debug, the localName has value "" and qName has value "save_settings" thus resulting in the exception.

Discussion

  • XingWang

    XingWang - 2011-07-06
    • milestone: --> v1.0 (example)
    • assigned_to: nobody --> mcennis
     
  • Daniel McEnnis

    Daniel McEnnis - 2016-05-02

    The bug has been fixed. It was a hacker attack on the sourcecode base.

     
  • Daniel McEnnis

    Daniel McEnnis - 2016-05-02
    • status: open --> closed
     

Log in to post a comment.

Auth0 Logo