lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: Solr/Lucene unit tests broken?
Date Wed, 05 May 2010 14:04:34 GMT
Erik has committed ant logic to delete old jar files... instead of manually
removing the old files, you should be able to just svn up and go!

On Wed, May 5, 2010 at 10:02 AM, Mattmann, Chris A (388J) <
chris.a.mattmann@jpl.nasa.gov> wrote:

>  Hey Robert,
>
> Thanks so much for the help. I’ll give it a try and report back if there’s
> any issue.
>
> Thanks, again!
>
> Cheers,
> Chris
>
>
>
> On 5/5/10 5:35 AM, "Robert Muir" <rcmuir@gmail.com> wrote:
>
> Hi Chris, I took a very old svn checkout i had, and updated it.
>
> I was able to reproduce your problem (it does not happen on a clean
> checkout!)
>
> The problem is that Solr's velocity contrib compiles stuff into
> solr/contrib/velocity/src/main/solr/lib/apache-solr-velocity-*.jar
> I noticed (doing a diff -r -q --binary across this vs. a clean checkout)
> that my old checkout contained TWO apache-solr-velocity jars:
> * apache-solr-velocity-3.1-dev.jar
> * apache-solr-velocity-4.0-dev.jar
>
> So, the solution is to just do:
> rm solr/contrib/velocity/src/main/solr/lib/apache-solr-velocity*
>
> then you can ant clean test as usual.
>
> (we should separately look into improving the 'ant clean' logic to try to
> prevent this from biting us again whenever version numbers bump)
>
> On Tue, May 4, 2010 at 5:35 PM, Mattmann, Chris A (388J) <
> chris.a.mattmann@jpl.nasa.gov> wrote:
>
> Hey Guys,
>
> With r941046, I get a little further and then it dies on a different test:
>
>     [junit] Testsuite: org.apache.solr.analysis.TestTrimFilterFactory
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.2 sec
>     [junit]
>     [junit] Testsuite:
> org.apache.solr.client.solrj.embedded.JettyWebappTest
>     [junit] Testcase:
> testJSP(org.apache.solr.client.solrj.embedded.JettyWebappTest):    Caused an
> ERROR
>     [junit] Server returned HTTP response code: 500 for URL:
> http://localhost:60745/test/
>     [junit] java.io.IOException: Server returned HTTP response code: 500
> for URL: http://localhost:60745/test/
>     [junit]     at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
>     [junit]     at java.net.URL.openStream(URL.java:1010)
>     [junit]     at
> org.apache.solr.client.solrj.embedded.JettyWebappTest.testJSP(JettyWebappTest.java:82)
>     [junit]
>     [junit]
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 12.581 sec
>     [junit]
>     [junit] ------------- Standard Error -----------------
>     [junit] May 4, 2010 2:32:53 PM org.apache.solr.common.SolrException log
>     [junit] SEVERE: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
>     [junit]     at
> org.apache.solr.response.VelocityResponseWriter.<clinit>(VelocityResponseWriter.java:39)
>     [junit]     at java.lang.Class.forName0(Native Method)
>     [junit]     at java.lang.Class.forName(Class.java:247)
>     [junit]     at
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:369)
>     [junit]     at
> org.apache.solr.core.SolrCore.createInstance(SolrCore.java:418)
>     [junit]     at
> org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:440)
>     [junit]     at
> org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1504)
>     [junit]     at
> org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1498)
>     [junit]     at
> org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1531)
>     [junit]     at
> org.apache.solr.core.SolrCore.initWriters(SolrCore.java:1414)
>     [junit]     at org.apache.solr.core.SolrCore.<init>(SolrCore.java:549)
>     [junit]     at
> org.apache.solr.core.CoreContainer.create(CoreContainer.java:442)
>     [junit]     at
> org.apache.solr.core.CoreContainer.load(CoreContainer.java:293)
>     [junit]     at
> org.apache.solr.core.CoreContainer.load(CoreContainer.java:205)
>     [junit]     at
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:128)
>     [junit]     at
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:86)
>     [junit]     at
> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
>     [junit]     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>     [junit]     at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
>     [junit]     at
> org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>     [junit]     at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
>     [junit]     at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
>     [junit]     at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
>     [junit]     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>     [junit]     at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>     [junit]     at org.mortbay.jetty.Server.doStart(Server.java:224)
>     [junit]     at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>     [junit]     at
> org.apache.solr.client.solrj.embedded.JettyWebappTest.setUp(JettyWebappTest.java:64)
>     [junit]     at junit.framework.TestCase.runBare(TestCase.java:132)
>     [junit]     at
> junit.framework.TestResult$1.protect(TestResult.java:110)
>     [junit]     at
> junit.framework.TestResult.runProtected(TestResult.java:128)
>     [junit]     at junit.framework.TestResult.run(TestResult.java:113)
>     [junit]     at junit.framework.TestCase.run(TestCase.java:124)
>     [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:232)
>     [junit]     at junit.framework.TestSuite.run(TestSuite.java:227)
>     [junit]     at
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
>     [junit]     at
> junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
>     [junit] Caused by: java.lang.ClassNotFoundException:
> org.slf4j.LoggerFactory
>     [junit]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>     [junit]     at java.security.AccessController.doPrivileged(Native
> Method)
>     [junit]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
>     [junit]     at
> java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:592)
>     [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
>     [junit]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
>     [junit]     ... 40 more
>     [junit]
>     [junit] May 4, 2010 2:32:53 PM org.apache.solr.core.SolrCore finalize
>     [junit] SEVERE: REFCOUNT ERROR: unreferenced
> org.apache.solr.core.SolrCore@38bdc9b3 () has a reference count of 1
>     [junit] ------------- ---------------- ---------------
>     [junit] Test org.apache.solr.client.solrj.embedded.JettyWebappTest
> FAILED
>     [junit] Testsuite: org.apache.solr.client.solrj.SolrExceptionTest
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.625 sec
>     [junit]
>     [junit] Testsuite: org.apache.solr.core.TestJmxIntegration
>     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 16.437 sec
>     [junit]
>
>
> Cheers,
> Chris
>
>
>
> On 5/4/10 12:58 PM, "Mattmann, Chris A (388J)" <
> chris.a.mattmann@jpl.nasa.gov <http://chris.a.mattmann@jpl.nasa.gov> >
> wrote:
>
> Hey Guys,
>
> Checked out the latest Solr build, r941013, and unit tests aren't passing
> for me:
>
>     [junit]
>     [junit] Testsuite: org.apache.lucene.util.automaton.TestBasicOperations
>     [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.428 sec
>     [junit]
>
> BUILD FAILED
> /Users/mattmann/src/solrcene/build.xml:23: The following error occurred
> while executing this line:
> /Users/mattmann/src/solrcene/lucene/common-build.xml:493:
> The following error occurred while executing this line:
> /Users/mattmann/src/solrcene/lucene/common-build.xml:476: Tests failed!
> The following error occurred while executing this line:
> /Users/mattmann/src/solrcene/lucene/common-build.xml:476: Tests failed!
> The following error occurred while executing this line:
> /Users/mattmann/src/solrcene/lucene/common-build.xml:476: Tests failed!
> The following error occurred while executing this line:
> /Users/mattmann/src/solrcene/lucene/common-build.xml:476: Tests failed!
> The following error occurred while executing this line:
> /Users/mattmann/src/solrcene/lucene/common-build.xml:476: Tests failed!
> The following error occurred while executing this line:
> /Users/mattmann/src/solrcene/lucene/common-build.xml:476: Tests failed!
> The following error occurred while executing this line:
> /Users/mattmann/src/solrcene/lucene/common-build.xml:476: Tests failed!
>
> I'm on Darwin, Mac OS X 10.5.6, with JDK 1.6.0. Any ideas?
>
> Cheers,
> Chris
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Chris Mattmann, Ph.D.
> Senior Computer Scientist
> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> Office: 171-266B, Mailstop: 171-246
> Email: Chris.Mattmann@jpl.nasa.gov <http://Chris.Mattmann@jpl.nasa.gov>
> WWW:   http://sunset.usc.edu/~mattmann/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Assistant Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org <
> http://dev-unsubscribe@lucene.apache.org>
> For additional commands, e-mail: dev-help@lucene.apache.org <
> http://dev-help@lucene.apache.org>
>
>
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Chris Mattmann, Ph.D.
> Senior Computer Scientist
> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> Office: 171-266B, Mailstop: 171-246
> Email: *Chris.Mattmann@jpl.nasa.gov <http://Chris.Mattmann@jpl.nasa.gov>
> *
> WWW:   *http://sunset.usc.edu/~mattmann/
> *++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Assistant Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
>
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Chris Mattmann, Ph.D.
> Senior Computer Scientist
> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> Office: 171-266B, Mailstop: 171-246
> Email: *Chris.Mattmann@jpl.nasa.gov
> *WWW:   *http://sunset.usc.edu/~mattmann/
> *++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Assistant Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>


-- 
Robert Muir
rcmuir@gmail.com

Mime
View raw message