[Mulgara-svn] r1465 - in trunk: jxdata/iTQL/having_queries jxdata/iTQL/standard_queries jxdata/iTQL/transitive src/jar/resolver/java/org/mulgara/resolver

pag at mulgara.org pag at mulgara.org
Fri Jan 30 21:28:53 UTC 2009


Author: pag
Date: 2009-01-30 13:28:52 -0800 (Fri, 30 Jan 2009)
New Revision: 1465

Modified:
   trunk/jxdata/iTQL/having_queries/queryResult10.txt
   trunk/jxdata/iTQL/having_queries/queryResult15-2.txt
   trunk/jxdata/iTQL/having_queries/queryResult15.txt
   trunk/jxdata/iTQL/standard_queries/queryResult17.txt
   trunk/jxdata/iTQL/standard_queries/queryResult18.txt
   trunk/jxdata/iTQL/standard_queries/queryResult3.txt
   trunk/jxdata/iTQL/transitive/result13.txt
   trunk/jxdata/iTQL/transitive/result14.txt
   trunk/src/jar/resolver/java/org/mulgara/resolver/DatabaseOperationContext.java
   trunk/src/jar/resolver/java/org/mulgara/resolver/DatabaseSession.java
Log:
Increased detail in exception messages

Modified: trunk/jxdata/iTQL/having_queries/queryResult10.txt
===================================================================
--- trunk/jxdata/iTQL/having_queries/queryResult10.txt	2009-01-30 21:27:51 UTC (rev 1464)
+++ trunk/jxdata/iTQL/having_queries/queryResult10.txt	2009-01-30 21:28:52 UTC (rev 1465)
@@ -1,4 +1,4 @@
-ItqlInterpreter error - Query failed
+ItqlInterpreter error - Query failed: No such variable $v in tuples [$s, $k0] (class org.mulgara.resolver.AppendAggregateTuples)
 Caused by: (MulgaraTransactionException) Transaction rollback triggered
 Caused by: (QueryException) Failed to resolve query
 Caused by: (TuplesException) No such variable $v in tuples [$s, $k0] (class org.mulgara.resolver.AppendAggregateTuples)

Modified: trunk/jxdata/iTQL/having_queries/queryResult15-2.txt
===================================================================
--- trunk/jxdata/iTQL/having_queries/queryResult15-2.txt	2009-01-30 21:27:51 UTC (rev 1464)
+++ trunk/jxdata/iTQL/having_queries/queryResult15-2.txt	2009-01-30 21:28:52 UTC (rev 1465)
@@ -1,4 +1,4 @@
-ItqlInterpreter error - Query failed
+ItqlInterpreter error - Query failed: No such variable $k0 in tuples [$v, $p, $s] (class org.mulgara.resolver.AppendAggregateTuples)
 Caused by: (MulgaraTransactionException) Transaction rollback triggered
 Caused by: (QueryException) Failed to resolve query
 Caused by: (TuplesException) No such variable $k0 in tuples [$v, $p, $s] (class org.mulgara.resolver.AppendAggregateTuples)

Modified: trunk/jxdata/iTQL/having_queries/queryResult15.txt
===================================================================
--- trunk/jxdata/iTQL/having_queries/queryResult15.txt	2009-01-30 21:27:51 UTC (rev 1464)
+++ trunk/jxdata/iTQL/having_queries/queryResult15.txt	2009-01-30 21:28:52 UTC (rev 1465)
@@ -1,4 +1,4 @@
-ItqlInterpreter error - Query failed
+ItqlInterpreter error - Query failed: No such variable $k0 in tuples [$p, $v, $s] (class org.mulgara.resolver.AppendAggregateTuples)
 Caused by: (MulgaraTransactionException) Transaction rollback triggered
 Caused by: (QueryException) Failed to resolve query
 Caused by: (TuplesException) No such variable $k0 in tuples [$p, $v, $s] (class org.mulgara.resolver.AppendAggregateTuples)

Modified: trunk/jxdata/iTQL/standard_queries/queryResult17.txt
===================================================================
--- trunk/jxdata/iTQL/standard_queries/queryResult17.txt	2009-01-30 21:27:51 UTC (rev 1464)
+++ trunk/jxdata/iTQL/standard_queries/queryResult17.txt	2009-01-30 21:28:52 UTC (rev 1465)
@@ -1,3 +1,3 @@
-ItqlInterpreter error - Could not commit modify
+ItqlInterpreter error - Could not commit modify: rmi://localhost/server1#nographexistswiththisname has a URI indicating the local server, but was not found
 Caused by: (QueryException) org.mulgara.query.MulgaraTransactionException: Transaction rollback triggered
-Caused by: (QueryException) rmi://localhost/server1#nographexistswiththisname is not a Graph
+Caused by: (QueryException) rmi://localhost/server1#nographexistswiththisname has a URI indicating the local server, but was not found

Modified: trunk/jxdata/iTQL/standard_queries/queryResult18.txt
===================================================================
--- trunk/jxdata/iTQL/standard_queries/queryResult18.txt	2009-01-30 21:27:51 UTC (rev 1464)
+++ trunk/jxdata/iTQL/standard_queries/queryResult18.txt	2009-01-30 21:28:52 UTC (rev 1465)
@@ -1,4 +1,4 @@
-ItqlInterpreter error - Query failed
+ItqlInterpreter error - Query failed: Graph not in local storage, and not able to be found with the "mailto" scheme: <mailto:foo at bar.com>
 Caused by: (MulgaraTransactionException) Transaction rollback triggered
 Caused by: (QueryException) Error resolving [$s $p $o $_from] from mailto:foo at bar.com
-Caused by: (QueryException) Unknown graph, and no hostname: mailto:foo at bar.com
+Caused by: (QueryException) Graph not in local storage, and not able to be found with the "mailto" scheme: <mailto:foo at bar.com>

Modified: trunk/jxdata/iTQL/standard_queries/queryResult3.txt
===================================================================
--- trunk/jxdata/iTQL/standard_queries/queryResult3.txt	2009-01-30 21:27:51 UTC (rev 1464)
+++ trunk/jxdata/iTQL/standard_queries/queryResult3.txt	2009-01-30 21:28:52 UTC (rev 1465)
@@ -1,4 +1,4 @@
-ItqlInterpreter error - Query failed
+ItqlInterpreter error - Query failed: rmi://10.0.1.195/server1#badmodel has a URI indicating the local server, but was not found
 Caused by: (MulgaraTransactionException) Transaction rollback triggered
-Caused by: (QueryException) Error resolving [$pmid http://mulgara.org/mulgara/Document#subject "Birds" $_from] from @server@#badmodel
-Caused by: (QueryException) @server@#badmodel is not a Graph
+Caused by: (QueryException) Error resolving [$pmid http://mulgara.org/mulgara/Document#subject "Birds" $_from] from rmi://10.0.1.195/server1#badmodel
+Caused by: (QueryException) rmi://10.0.1.195/server1#badmodel has a URI indicating the local server, but was not found

Modified: trunk/jxdata/iTQL/transitive/result13.txt
===================================================================
--- trunk/jxdata/iTQL/transitive/result13.txt	2009-01-30 21:27:51 UTC (rev 1464)
+++ trunk/jxdata/iTQL/transitive/result13.txt	2009-01-30 21:28:52 UTC (rev 1465)
@@ -1,3 +1,3 @@
-ItqlInterpreter error - Query failed
+ItqlInterpreter error - Query failed: Predicate in transitive function, $p, currently must be bound to a value.
 Caused by: (MulgaraTransactionException) Transaction rollback triggered
 Caused by: (QueryException) Predicate in transitive function, $p, currently must be bound to a value.

Modified: trunk/jxdata/iTQL/transitive/result14.txt
===================================================================
--- trunk/jxdata/iTQL/transitive/result14.txt	2009-01-30 21:27:51 UTC (rev 1464)
+++ trunk/jxdata/iTQL/transitive/result14.txt	2009-01-30 21:28:52 UTC (rev 1465)
@@ -1,3 +1,3 @@
-ItqlInterpreter error - Query failed
+ItqlInterpreter error - Query failed: Predicate in transitive function, $p, currently must be bound to a value.
 Caused by: (MulgaraTransactionException) Transaction rollback triggered
 Caused by: (QueryException) Predicate in transitive function, $p, currently must be bound to a value.

Modified: trunk/src/jar/resolver/java/org/mulgara/resolver/DatabaseOperationContext.java
===================================================================
--- trunk/src/jar/resolver/java/org/mulgara/resolver/DatabaseOperationContext.java	2009-01-30 21:27:51 UTC (rev 1464)
+++ trunk/src/jar/resolver/java/org/mulgara/resolver/DatabaseOperationContext.java	2009-01-30 21:28:52 UTC (rev 1465)
@@ -225,7 +225,7 @@
           // Ensure that the host name can be extracted - in case there's an
           // opaque hostname.
           if (tmpGraphName.isOpaque()) {
-            throw new QueryException("Unknown graph, and no hostname: " + tmpGraphName);
+            throw new QueryException("Graph not in local storage, and not able to be found with the \"" + graphURI.getScheme() + "\" scheme: <" + tmpGraphName + ">");
           }
 
           // Do not test for locality if jar or file protocol
@@ -236,7 +236,8 @@
             if ((metadata.getHostnameAliases().contains(host)) &&
                 (metadata.getServerName().equals(metadata.getServerName(graphURI)))) {
               // should be on the current server, but was not found here
-              throw new QueryException(graphNode.toString() + " is not a Graph");
+              throw new QueryException(graphNode.toString() +
+                  " has a URI indicating the local server, but was not found");
             }
           }
         } catch (URISyntaxException use) {
@@ -253,8 +254,7 @@
         ResolverFactory resolverFactory = externalResolverFactoryMap.get(graphProtocol);
         if (resolverFactory == null) {
           throw new QueryException(
-              "Unsupported protocol for destination graph (" +
-              graphProtocol + ", " + graph + " : '" + graphProtocol + "')");
+              "Graph <" + graph + "> was not found locally, and the \"" + graphProtocol + "\" protocol is unsupported");
         }
 
         // For the moment, not applying caching to any external graphs

Modified: trunk/src/jar/resolver/java/org/mulgara/resolver/DatabaseSession.java
===================================================================
--- trunk/src/jar/resolver/java/org/mulgara/resolver/DatabaseSession.java	2009-01-30 21:27:51 UTC (rev 1464)
+++ trunk/src/jar/resolver/java/org/mulgara/resolver/DatabaseSession.java	2009-01-30 21:28:52 UTC (rev 1465)
@@ -50,6 +50,7 @@
 import org.mulgara.rules.*;
 import org.mulgara.server.Session;
 import org.mulgara.transaction.TransactionManagerFactory;
+import org.mulgara.util.StackTrace;
 
 /**
  * A database session.
@@ -751,7 +752,7 @@
       transaction.execute(operation, metadata);
     } catch (MulgaraTransactionException em) {
       logger.debug("Error executing operation: " + errorString, em);
-      throw new QueryException(errorString, em);
+      throw new QueryException(errorString + ": " + StackTrace.getReasonMessage(em), em);
     }
   }
 




More information about the Mulgara-svn mailing list