SAXParseException while trying to select records from Tamino

Hi All,
we are using the below code to execute the select query (for $i in input()/yacht return $i)…

TXMLObjectAccessor tObjectAccessor = connection.getConnection().newXMLObjectAccessor(collectionLocation, TJDOMObjectModel.getInstance());

//exception at this line (TXQueryException caused by SAXParseException)
TResponse response = tObjectAccessor.xquery(TXQuery.newInstance(queryString));

When i delete all the records and then insert new ones, this code works fine.

Any pointers on this issue.

Regards, Aravind

Hi Aravind,

do you know, either from the Exception message text itself or from a database request log what kind of error occurs, in case that there is some failing database request? As you stated, the query itself is correct and works.

Best Regards,

Michael

Hi Michael,
The Exception Message is org.xml.sax.SAXParseException: Content is not allowed in trailing section.

Regards, Aravind

Hi Aravind,

looks like the received result stream contains some characters after the root element had been closed.
I suggest you create an issue with full description of used Tamino version, TAPI4J version, example program and database backup.

Best Regards,

Michael

Will do it. Thanks for your replies Michael.

Regards, Aravind