Hi!
This is the runQuery method:
static Context context = new Context();
static LocalSession session = new LocalSession(context);
public DBResult runQuery(String query) throws QueryException {
try {
LocalQuery lq = session.query(query);
DBResult db = new DBResult(lq);
return db;
} catch (Exception e) {
PPLogger.getInstance().error("Error in runQuery: " + e.getMessage(), e);
throw e;
}
}
and this is the relevant part of the DBResult class:
************************************************************************************************
private LocalQuery results;
public DBResult(LocalQuery results) {
Assertion.assertNotNull(results, "Results are null");
this.results = results;
}
public LocalQuery getXmlResults() {
return results;
}
************************************************************************************************
As I mention, I am not able to give an example that will reproduce the error every time, but it seems to occur randomly, and not very often :-(
Ketill