Hi,
I recently came across a bug in the XTF SRU implementation, I know it's officially experimental but I wanted to use it anyway. The explain operation resulted in an IllegalStateException, due to calling a flush() on the outputstream at the end of the TextServlet::service method. I managed to repair this bug locally by calling a flush directly after printing to it. See diff below.
If this is a proper fix, please add:)
Thnxs, Caspar Treijtel
University of Amsterdam
caspar@debian60564:~/share/sandbox/xtf_w_WebContents/src/org/cdlib/xtf/zing$ svn diff -r PREV SRU.java
Index: SRU.java
===================================================================
--- SRU.java (revision 687)
+++ SRU.java (working copy)
@@ -167,6 +167,7 @@
if (name.equals(
node.name())) {
String strVal = XMLWriter.toString(node);
res.getWriter().print(strVal);
+ res.getWriter().flush();
return true;
}
caspar@debian60564:~/share/sandbox/xtf_w_WebContents/src/org/cdlib/xtf/zing$