Revision: 16104 http://gate.svn.sourceforge.net/gate/?rev=16104&view=rev Author: valyt Date: 2012-10-02 16:06:58 +0000 (Tue, 02 Oct 2012) Log Message: ----------- Don't unexceptional exceptions.
Modified Paths: -------------- mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java Modified: mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java =================================================================== --- mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java 2012-10-02 01:18:47 UTC (rev 16103) +++ mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java 2012-10-02 16:06:58 UTC (rev 16104) @@ -243,7 +243,7 @@ "jdbc:h2:file:" + dbDir.getAbsolutePath() + "/" + tableBaseName + ";CACHE_SIZE=" + cacheSizeStr, "sa", ""); dbConnection.close(); - // now open the database in read-only mode, whjich speeds things up + // now open the database in read-only mode, which speeds things up // considerably. dbConnection = DriverManager.getConnection( "jdbc:h2:file:" + dbDir.getAbsolutePath() + @@ -764,7 +764,10 @@ try { Object sqlValue = res.getObject(descriptiveFeatures[i]); if(sqlValue != null) result[i] = sqlValue.toString(); - } catch(Exception e) { + } catch(SQLException e) { + // non-nominal features are not available for level 1 mentions + result[i] = null; + } catch (Exception e) { logger.error("Error while obtaining description feature value.", e); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs