# HG changeset patch # User Babis Nikolaou # Date 1367172693 -10800 # Node ID f9116bfd4dd20eb46752366f0f82f2673a880d66 # Parent 83f4554eb2aa319fcf0e236f720b729cea200c96 caught MalformedQueryException in QueryOp so as not to print the exception diff -r 83f4554eb2aa -r f9116bfd4dd2 generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java Sun Apr 28 12:04:09 2013 +0300 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java Sun Apr 28 21:11:33 2013 +0300 @@ -1,7 +1,11 @@ -/* - * Copyright Aduna (http://www.aduna-software.com/) (c) 2008. - * - * Licensed under the Aduna BSD-style license. +/** + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * Copyright (C) 2010, 2011, 2012, 2013 Pyravlos Team + * + * http://www.strabon.di.uoa.gr/ */ package org.openrdf.sail.generaldb.evaluation; diff -r 83f4554eb2aa -r f9116bfd4dd2 runtime/src/main/java/eu/earthobservatory/runtime/monetdb/QueryOp.java --- a/runtime/src/main/java/eu/earthobservatory/runtime/monetdb/QueryOp.java Sun Apr 28 12:04:09 2013 +0300 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/monetdb/QueryOp.java Sun Apr 28 21:11:33 2013 +0300 @@ -11,6 +11,7 @@ import eu.earthobservatory.utils.Format; +import org.openrdf.query.MalformedQueryException; import org.openrdf.sail.generaldb.exceptions.UnsupportedExtensionFunctionException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -58,6 +59,9 @@ } catch (UnsupportedExtensionFunctionException e) { logger.error("[Strabon.QueryOp] {}", e.getMessage()); + } catch (MalformedQueryException e) { + logger.error("[Strabon.QueryOp] {}", e.getMessage()); + } catch (Exception e) { logger.error("[Strabon.QueryOp] Error during execution of SPARQL query.", e); diff -r 83f4554eb2aa -r f9116bfd4dd2 runtime/src/main/java/eu/earthobservatory/runtime/postgis/QueryOp.java --- a/runtime/src/main/java/eu/earthobservatory/runtime/postgis/QueryOp.java Sun Apr 28 12:04:09 2013 +0300 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/postgis/QueryOp.java Sun Apr 28 21:11:33 2013 +0300 @@ -9,12 +9,13 @@ */ package eu.earthobservatory.runtime.postgis; -import eu.earthobservatory.utils.Format; - +import org.openrdf.query.MalformedQueryException; import org.openrdf.sail.generaldb.exceptions.UnsupportedExtensionFunctionException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import eu.earthobservatory.utils.Format; + public class QueryOp { private static Logger logger = LoggerFactory.getLogger(eu.earthobservatory.runtime.postgis.QueryOp.class); @@ -58,6 +59,9 @@ } catch (UnsupportedExtensionFunctionException e) { logger.error("[Strabon.QueryOp] {}", e.getMessage()); + } catch (MalformedQueryException e) { + logger.error("[Strabon.QueryOp] {}", e.getMessage()); + } catch (Exception e) { logger.error("[Strabon.QueryOp] Error during execution of SPARQL query.", e);