Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#160 Mysterious SAXParseException formatting hits

v2.2
closed
mhaye
crossQuery (36)
6
2009-08-21
2009-08-21
mhaye
No

[reported by Creagh Cole and Gary Browne]

...Our april poetry xtf site with sub-docs is riddled with error messages such as the following. Gary and I can’t agree where the problem could be. Can you tell from where we should be looking? Ie., problem in the xml data files (which all parse nicely otherwise) or in the configuration of xtf?...

Servlet Error: Dynamic
An unexpected servlet error has occurred.
Message:

org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
Stack Trace:

Saxon Error on line 5748 column 104 : SXXP0003: Error reported by XML parser: The entity name must immediately follow the '&' in the entity reference.net.sf.saxon.trans.DynamicError: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:308) at net.sf.saxon.event.Sender.send(Sender.java:162) at net.sf.saxon.event.Sender.send(Sender.java:43) at net.sf.saxon.Controller.transform(Controller.java:1504) at org.cdlib.xtf.crossQuery.CrossQuery.formatHits(CrossQuery.java:491) at

Discussion

  • mhaye
    mhaye
    2009-08-21

    • status: open --> closed-fixed
     
  • mhaye
    mhaye
    2009-08-21

    Just checked in a fix. XTF wasn't escaping special XML characters when creating the 'subdoc' attribute of DocHit results.