From: <ki...@us...> - 2012-06-07 13:57:58
|
Revision: 3727 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3727&view=rev Author: kirdie Date: 2012-06-07 13:57:47 +0000 (Thu, 07 Jun 2012) Log Message: ----------- added missing statement to new extractiondbcache constructor initialising md5. Modified Paths: -------------- trunk/components-core/src/main/java/org/dllearner/kb/sparql/ExtractionDBCache.java Modified: trunk/components-core/src/main/java/org/dllearner/kb/sparql/ExtractionDBCache.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/kb/sparql/ExtractionDBCache.java 2012-06-07 13:48:06 UTC (rev 3726) +++ trunk/components-core/src/main/java/org/dllearner/kb/sparql/ExtractionDBCache.java 2012-06-07 13:57:47 UTC (rev 3727) @@ -72,6 +72,8 @@ public ExtractionDBCache(Connection conn) throws SQLException { this.conn=conn; + try{md5 = MessageDigest.getInstance("MD5");} + catch(NoSuchAlgorithmException e) {throw new RuntimeException("Should never happen - MD5 not found.");} // create cache table if it does not exist Statement stmt = conn.createStatement(); stmt.execute("CREATE TABLE IF NOT EXISTS QUERY_CACHE(QUERYHASH BINARY PRIMARY KEY,QUERY VARCHAR(20000), TRIPLES CLOB, STORE_TIME TIMESTAMP)"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |