You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Michael McCandless <lu...@mikemccandless.com> on 2010/10/16 11:44:03 UTC

odd VelocityResponseWriterTest failure...

Does anyone else see this failure?  It must be a JAR classpath issue?
Ie the test is compiled against one JAR but then run against another
that's missing this method...?

ant test-core -Dtestcase=VelocityResponseWriterTest

....

junit-sequential:
    [junit] Testsuite: org.apache.solr.velocity.VelocityResponseWriterTest
    [junit] Testcase:
testTemplateName(org.apache.solr.velocity.VelocityResponseWriterTest):	Caused
an ERROR
    [junit] org.apache.log4j.Logger.setAdditivity(Z)V
    [junit] java.lang.NoSuchMethodError:
org.apache.log4j.Logger.setAdditivity(Z)V
    [junit] 	at
org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:126)
    [junit] 	at
org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85)
    [junit] 	at
org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157)
    [junit] 	at
org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:255)
    [junit] 	at
org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:795)
    [junit] 	at
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:250)
    [junit] 	at
org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:107)
    [junit] 	at
org.apache.solr.response.VelocityResponseWriter.getEngine(VelocityResponseWriter.java:131)
    [junit] 	at
org.apache.solr.response.VelocityResponseWriter.write(VelocityResponseWriter.java:39)
    [junit] 	at
org.apache.solr.velocity.VelocityResponseWriterTest.testTemplateName(VelocityResponseWriterTest.java:22)
    [junit] 	at
org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:811)
    [junit] 	at
org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:776)

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: odd VelocityResponseWriterTest failure...

Posted by Chris Hostetter <ho...@fucit.org>.
FYI: I started seeing this error when Miller committed SolrCloud to trunk 
and included the slf4j log4j bridge jar -- the root cause was that i had 
a very old version of log4j in my classpath (as part of a custom ant 
install)


: Date: Sat, 16 Oct 2010 05:44:03 -0400
: From: Michael McCandless <lu...@mikemccandless.com>
: Reply-To: dev@lucene.apache.org
: To: dev@lucene.apache.org
: Subject: odd VelocityResponseWriterTest failure...
: 
: Does anyone else see this failure?  It must be a JAR classpath issue?
: Ie the test is compiled against one JAR but then run against another
: that's missing this method...?
: 
: ant test-core -Dtestcase=VelocityResponseWriterTest
: 
: ....
: 
: junit-sequential:
:     [junit] Testsuite: org.apache.solr.velocity.VelocityResponseWriterTest
:     [junit] Testcase:
: testTemplateName(org.apache.solr.velocity.VelocityResponseWriterTest):	Caused
: an ERROR
:     [junit] org.apache.log4j.Logger.setAdditivity(Z)V
:     [junit] java.lang.NoSuchMethodError:
: org.apache.log4j.Logger.setAdditivity(Z)V
:     [junit] 	at
: org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:126)
:     [junit] 	at
: org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85)
:     [junit] 	at
: org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157)
:     [junit] 	at
: org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:255)
:     [junit] 	at
: org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:795)
:     [junit] 	at
: org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:250)
:     [junit] 	at
: org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:107)
:     [junit] 	at
: org.apache.solr.response.VelocityResponseWriter.getEngine(VelocityResponseWriter.java:131)
:     [junit] 	at
: org.apache.solr.response.VelocityResponseWriter.write(VelocityResponseWriter.java:39)
:     [junit] 	at
: org.apache.solr.velocity.VelocityResponseWriterTest.testTemplateName(VelocityResponseWriterTest.java:22)
:     [junit] 	at
: org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:811)
:     [junit] 	at
: org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:776)
: 
: Mike
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
: For additional commands, e-mail: dev-help@lucene.apache.org
: 

-Hoss

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org