I just checked the latest version of Nutch out of SVR, and I noticed
that I was getting an ExceptionInInitializerError whenever Query's
static parse method was called. I isolated the call in a JUnit test
and the problem persisted, leading me to believe that it originated
from the Nutch source. Here's the stack trace:
java.lang.ExceptionInInitializerError
at
org.apache.nutch.analysis.NutchAnalysis.compound(NutchAnalysis.java:259)
at org.apache.nutch.analysis.NutchAnalysis.parse(NutchAnalysis.java:115)
at
org.apache.nutch.analysis.NutchAnalysis.parseQuery(NutchAnalysis.java:39)
at org.apache.nutch.searcher.Query.parse(Query.java:408)
at com.cfind.nutch.searcher.QueryTest.testParse(QueryTest.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194)
Caused by: java.lang.RuntimeException:
org.apache.nutch.searcher.QueryFilter not found.
at org.apache.nutch.searcher.QueryFilters.<clinit>(QueryFilters.java:47)
... 20 more