1) changed default home directory for zookeeper
2) introduced java_home entry for zookeeper server(s).


git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_lsm_stabilization@1465 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-app/src/test/java/edu/uci/ics/asterix/test/aql/TestsUtils.java b/asterix-app/src/test/java/edu/uci/ics/asterix/test/aql/TestsUtils.java
index c38410a..2602707 100644
--- a/asterix-app/src/test/java/edu/uci/ics/asterix/test/aql/TestsUtils.java
+++ b/asterix-app/src/test/java/edu/uci/ics/asterix/test/aql/TestsUtils.java
@@ -54,6 +54,9 @@
         try {
 
             while ((lineExpected = readerExpected.readLine()) != null) {
+                if (jArray.length() <= 0) {
+                    throw new Exception("No results returned for query.");
+                }
                 JSONArray resultArray = jArray.getJSONArray(chunkCounter);
 
                 if ((lineActual = resultArray.getString(recordCounter)) == null) {