lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: Test failure: contrib/xml-query-parser: TestQueryTemplateManager.testFormTransforms()
Date Mon, 04 Oct 2010 13:06:07 GMT
nice catch... tr_TR strikes again! lets open a jira? something is calling
String.toLowerCase() incorrectly:

*Note:* This method is locale sensitive, and may produce unexpected results
if used for strings that are intended to be interpreted locale
independently. Examples are programming language identifiers, protocol keys,
and HTML tags. For instance,"TITLE".toLowerCase() in a Turkish locale
returns "t?tle", where '?' is the LATIN SMALL LETTER DOTLESS I character. To
obtain correct results for locale insensitive strings, use
toLowerCase(Locale.ENGLISH).

http://download.oracle.com/javase/6/docs/api/java/lang/String.html#toLowerCase()
<http://download.oracle.com/javase/6/docs/api/java/lang/String.html#toLowerCase()>
On Mon, Oct 4, 2010 at 9:00 AM, Steven A Rowe <sarowe@syr.edu> wrote:

> I initially got the following error from the Maven build (LUCENE-2657) and
> reproduced it with Ant:
>
>    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 3.031 sec
>    [junit]
>    [junit] ------------- Standard Output ---------------
>    [junit] NOTE: reproduce with: ant test
> -Dtestcase=TestQueryTemplateManager -Dtestmethod=testFormTransforms
> -Dtests.seed=-3178590569335578120:-7726718235997875276
>    [junit] NOTE: test params are: codec=SimpleText, locale=tr_TR,
> timezone=America/Rainy_River
>    [junit] ------------- ---------------- ---------------
>    [junit] ------------- Standard Error -----------------
>    [junit] java.lang.RuntimeException: Instruction unknown: load?nstruction
>    [junit]     at
> com.sun.org.apache.bcel.internal.util.InstructionFinder.mapName(InstructionFinder.java:138)
>    [junit]     at
> com.sun.org.apache.bcel.internal.util.InstructionFinder.compilePattern(InstructionFinder.java:170)
>    [junit]     at
> com.sun.org.apache.bcel.internal.util.InstructionFinder.search(InstructionFinder.java:218)
>    [junit]     at
> com.sun.org.apache.bcel.internal.util.InstructionFinder.search(InstructionFinder.java:264)
>    [junit]     at
> com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.peepHoleOptimization(Mode.java:1444)
>    [junit]     at
> com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:1058)
>    [junit]     at
> com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:615)
>    [junit]     at
> com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.translate(Stylesheet.java:730)
>    [junit]     at
> com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:354)
>    [junit]     at
> com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:429)
>    [junit]     at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:797)
>    [junit]     at
> org.apache.lucene.xmlparser.QueryTemplateManager.getTemplates(QueryTemplateManager.java:208)
>    [junit]     at
> org.apache.lucene.xmlparser.QueryTemplateManager.addQueryTemplate(QueryTemplateManager.java:75)
>    [junit]     at
> org.apache.lucene.xmlparser.TestQueryTemplateManager.testFormTransforms(TestQueryTemplateManager.java:74)
>    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>    [junit]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    [junit]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    [junit]     at java.lang.reflect.Method.invoke(Method.java:592)
>    [junit]     at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>    [junit]     at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>    [junit]     at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>    [junit]     at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>    [junit]     at
> org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
>    [junit]     at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>    [junit]     at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>    [junit]     at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>    [junit]     at
> org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:795)
>    [junit]     at
> org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:768)
>    [junit]     at
> org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>    [junit]     at
> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>    [junit]     at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>    [junit]     at
> org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>    [junit]     at
> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>    [junit]     at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>    [junit]     at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>    [junit]     at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>    [junit]     at
> junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
>    [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
>    [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
>    [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
>    [junit] ERROR:  'Instruction unknown: load?nstruction'
>    [junit] FATAL ERROR:  'Could not compile stylesheet'
>    [junit] ------------- ---------------- ---------------
>    [junit] Test org.apache.lucene.xmlparser.TestQueryTemplateManager FAILED
>



-- 
Robert Muir
rcmuir@gmail.com

Mime
View raw message