From 4382fe7e2f15a8c205a47ab3cd0e25842e558c30 Mon Sep 17 00:00:00 2001 From: Maxim Kolchin Date: Mon, 30 Jun 2014 12:03:48 +0400 Subject: [PATCH] Reconfigured the logging. Fixed FileException (at ObjectFileStorage.read): Impossibly large object --- pom.xml | 34 +++++++++++++++++++ .../org/deri/cqels/engine/ExecContext.java | 2 +- src/main/resources/log4j.properties | 9 ----- 3 files changed, 35 insertions(+), 10 deletions(-) delete mode 100644 src/main/resources/log4j.properties diff --git a/pom.xml b/pom.xml index 08c94e9..d165638 100644 --- a/pom.xml +++ b/pom.xml @@ -17,6 +17,20 @@ org.apache.jena jena-tdb 0.9.3 + + + log4j + log4j + + + slf4j-api + org.slf4j + + + slf4j-log4j12 + org.slf4j + + com.sleepycat @@ -27,6 +41,16 @@ com.espertech esper 4.2.0 + + + log4j + log4j + + + commons-logging + commons-logging + + junit @@ -40,5 +64,15 @@ 1.6.0 test + + org.slf4j + log4j-over-slf4j + 1.7.7 + + + org.slf4j + jcl-over-slf4j + 1.7.7 + \ No newline at end of file diff --git a/src/main/java/org/deri/cqels/engine/ExecContext.java b/src/main/java/org/deri/cqels/engine/ExecContext.java index 0f9ebe9..1c435e3 100644 --- a/src/main/java/org/deri/cqels/engine/ExecContext.java +++ b/src/main/java/org/deri/cqels/engine/ExecContext.java @@ -60,7 +60,7 @@ public ExecContext(String path, boolean cleanDataset) { //combine cache and disk-based dictionary this.dictionary = new NodeTableNative(IndexBuilder.mem().newIndex(FileSet.mem(), SystemTDB.nodeRecordFactory), - FileFactory.createObjectFileMem(path)); + FileFactory.createObjectFileDisk(path + "/dict")); setEngine(new CQELSEngine(this)); createCache(path + "/cache"); if (cleanDataset) { diff --git a/src/main/resources/log4j.properties b/src/main/resources/log4j.properties deleted file mode 100644 index e4fcb01..0000000 --- a/src/main/resources/log4j.properties +++ /dev/null @@ -1,9 +0,0 @@ -# Set root logger level to DEBUG and its only appender to A1. -log4j.rootLogger=DEBUG, A1 - -# A1 is set to be a ConsoleAppender. -log4j.appender.A1=org.apache.log4j.ConsoleAppender - -# A1 uses PatternLayout. -log4j.appender.A1.layout=org.apache.log4j.PatternLayout -log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n \ No newline at end of file