lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <dawid.we...@cs.put.poznan.pl>
Subject Re: clustering unit test failures on ubuntu
Date Wed, 27 May 2009 12:52:30 GMT

We've fixed the 1.5 compilation issue in Carrot2. As for this thing:

<error message="class &quot;junit.framework.JUnit4TestAdapter&quot;&apos;s

signer information does not match signer information of other classes in the 
same package" type="java.lang.SecurityException">    at 
java.lang.ClassLoader.checkCerts(ClassLoader.java:792)
   at java.lang.ClassLoader.preDefineClass(ClassLoader.java:504)

it most likely means classes from within the same package are picked from two 
different locations -- one signed, one unsigned. Do you have junit.jar in ANT's 
classpath, by any chance? Is it signed? Can you pass me the output of this:

ant -diagnostics > ant.diags

(or see if there is any junit JAR that has signatures under META-INF/ inside the 
JAR).

Dawid

Mark Miller wrote:
> Stanislaw Osinski wrote:
>> Hi Mark,
>>
>>
>>  
>>> Weird.  I don't have Ubuntu handy, but it looks like it is having 
>>> problems
>>> with JUnit itself, unless I'm misreading the exception.
>>>     
>>
>>
>> Weird indeed. One thing that randomly springs to my mind is the 
>> reflection
>> magic Carrot2 is using here and there, which might be a problem when you
>> enable the security manager.
>>
>> For a quick test, could you try if Carrot2 tests pass on your machine 
>> (we're
>> using JUnit 4 too):
>>
>> svn co https://carrot2.svn.sourceforge.net/svnroot/carrot2/trunk
>> cd trunk
>> echo "external.api.tests.disabled=true" >local.properties
>> ant test
>>
>> Thanks,
>>
>> Staszek
>>
>>   
> Hmmm - followed directions and couldnt compile. Upgraded Junit to latest 
> 4 and still no dice:
> 
> compile.test:
>    [javac] Compiling 566 source files to /home/mark/test/trunk/tmp/classes
>    [javac] 
> /home/mark/test/trunk/core/carrot2-core/src/org/carrot2/core/test/assertions/Carrot2CoreAssertions.java:73:

> name clash: assertThat(java.util.List<org.carrot2.core.Document>) and 
> assertThat(java.util.List<org.carrot2.core.Cluster>) have the same erasure
>    [javac]     public static DocumentListAssertion 
> assertThat(List<Document> actual)
>    [javac]                                         ^
>    [javac] 
> /home/mark/test/trunk/core/carrot2-core/src/org/carrot2/core/test/assertions/ClusterAssertion.java:66:

> cannot find symbol
>    [javac] symbol  : method 
> isEquivalentTo(java.util.List<org.carrot2.core.Document>)
>    [javac] location: class org.fest.assertions.ListAssert
>    [javac]             assertThat(actualCluster.getDocuments()).as(
>    [javac]                       ^
>    [javac] 
> /home/mark/test/trunk/core/carrot2-util-xsltfilter/src/org/carrot2/util/xsltfilter/XSLTFilterServletResponse.java:528:

> warning: [deprecation] setStatus(int,java.lang.String) in 
> javax.servlet.http.HttpServletResponse has been deprecated
>    [javac]     public void setStatus(int statusCode, String message)
>    [javac]                 ^
>    [javac] 
> /home/mark/test/trunk/core/carrot2-util-xsltfilter/src/org/carrot2/util/xsltfilter/XSLTFilterServletResponse.java:34:

> warning: [deprecation] encodeRedirectUrl(java.lang.String) in 
> javax.servlet.http.HttpServletResponse has been deprecated
>    [javac] final class XSLTFilterServletResponse extends 
> HttpServletResponseWrapper
>    [javac]       ^
>    [javac] 
> /home/mark/test/trunk/core/carrot2-util-xsltfilter/src/org/carrot2/util/xsltfilter/XSLTFilterServletResponse.java:34:

> warning: [deprecation] encodeUrl(java.lang.String) in 
> javax.servlet.http.HttpServletResponse has been deprecated
>    [javac] final class XSLTFilterServletResponse extends 
> HttpServletResponseWrapper
>    [javac]       ^
>    [javac] 
> /home/mark/test/trunk/core/carrot2-core/src-test/org/carrot2/core/ClusterTest.java:314:

> cannot find symbol
>    [javac] symbol  : method 
> isEquivalentTo(java.util.List<org.carrot2.core.Document>)
>    [javac] location: class org.fest.assertions.ListAssert
>    [javac]         
> assertThat(otherTopics.getDocuments()).isEquivalentTo(allDocuments);
>    [javac]                   ^
>    [javac] 
> /home/mark/test/trunk/core/carrot2-core/src-test/org/carrot2/core/ClusterTest.java:334:

> cannot find symbol
>    [javac] symbol  : method 
> isEquivalentTo(java.util.ArrayList<org.carrot2.core.Document>)
>    [javac] location: class org.fest.assertions.ListAssert
>    [javac]         
> assertThat(otherTopics.getDocuments()).isEquivalentTo(Lists.newArrayList(d1, 
> d3));
>    [javac]                   ^
>    [javac] 
> /home/mark/test/trunk/core/carrot2-core/src-test/org/carrot2/core/ClusterTest.java:356:

> cannot find symbol
>    [javac] symbol  : method 
> isEquivalentTo(java.util.ArrayList<org.carrot2.core.Document>)
>    [javac] location: class org.fest.assertions.ListAssert
>    [javac]         assertThat(otherTopics.getDocuments()).isEquivalentTo(
>    [javac]                   ^
>    [javac] 
> /home/mark/test/trunk/core/carrot2-core/src-test/org/carrot2/core/ProcessingResultTest.java:146:

> cannot find symbol
>    [javac] symbol  : method 
> assertThat(java.util.List<org.carrot2.core.Document>)
>    [javac] location: class org.carrot2.core.ProcessingResultTest
>    [javac]         
> assertThat(deserialized.getDocuments()).hasSize(documentCount);
>    [javac]         ^
>    [javac] 
> /home/mark/test/trunk/core/carrot2-core/src-test/org/carrot2/core/ProcessingResultTest.java:305:

> cannot find symbol
>    [javac] symbol  : method 
> assertThat(java.util.List<org.carrot2.core.Document>)
>    [javac] location: class org.carrot2.core.ProcessingResultTest
>    [javac]             
> assertThat(deserialized.getDocuments()).isEquivalentTo(
>    [javac]             ^
>    [javac] Note: Some input files use unchecked or unsafe operations.
>    [javac] Note: Recompile with -Xlint:unchecked for details.
>    [javac] 7 errors
>    [javac] 3 warnings
> 
> BUILD FAILED
> /home/mark/test/trunk/build.xml:225: Compile failed; see the compiler 
> error output for details.
> 
> 

Mime
View raw message