[jira] Commented: (SOLR-2271) XSL features fail using turkish locale due to JVM/xalan bug

2010-12-13 Thread Robert Muir (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971065#action_12971065
 ] 

Robert Muir commented on SOLR-2271:
---

Just to correct my previous comment, hossman and I discovered this doesn't only 
apply to contrib: 
there are problems in XSLT problems in solr core too, when using 1.5 jre with 
turkish/azeri locales.

this can be seen with 'ant test-core -Dtests.locale=tr'


> XSL features fail using turkish locale due to JVM/xalan bug
> ---
>
> Key: SOLR-2271
> URL: https://issues.apache.org/jira/browse/SOLR-2271
> Project: Solr
>  Issue Type: Bug
>  Components: contrib - DataImportHandler
>Affects Versions: 3.1
> Environment: Windows Vista 64
> java version "1.5.0_15"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_15-b04, mixed mode)
>Reporter: Steven Rowe
> Fix For: 3.1
>
>
> Reproducible test failure, from {{solr/}} directory:
> {quote}
> ant test -Dtestcase=TestXPathEntityProcessor 
> -Dtestmethod=withDefaultSolrAndXsl 
> -Dtests.seed=7349899226216392650:769123754625466766
> NOTE: test params are: locale=tr_TR, timezone=GB-Eire
> {quote}
> {quote}
> testCore:
> [junit] Testsuite: 
> org.apache.solr.handler.dataimport.TestXPathEntityProcessor
> [junit] Testcase: 
> withDefaultSolrAndXsl(org.apache.solr.handler.dataimport.TestXPathEntityProcessor):
>Caused an ERROR
> [junit] Error initializing XSL 
> [junit] org.apache.solr.handler.dataimport.DataImportHandlerException: 
> Error initializing XSL 
> [junit] at 
> org.apache.solr.handler.dataimport.XPathEntityProcessor.initXpathReader(XPathEntityProcessor.java:117)
> [junit] at 
> org.apache.solr.handler.dataimport.XPathEntityProcessor.init(XPathEntityProcessor.java:87)
> [junit] at 
> org.apache.solr.handler.dataimport.TestXPathEntityProcessor.withDefaultSolrAndXsl(TestXPathEntityProcessor.java:222)
> [junit] at 
> org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:829)
> [junit] at 
> org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:767)
> [junit] Caused by: javax.xml.transform.TransformerConfigurationException: 
> Could not compile stylesheet
> [junit] at 
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:829)
> [junit] at 
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:623)
> [junit] at 
> org.apache.solr.handler.dataimport.XPathEntityProcessor.initXpathReader(XPathEntityProcessor.java:112)
> [junit] 
> [junit] 
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.607 sec
> [junit] 
> [junit] - Standard Output ---
> [junit] NOTE: reproduce with: ant test 
> -Dtestcase=TestXPathEntityProcessor -Dtestmethod=withDefaultSolrAndXsl 
> -Dtests.seed=7349899226216392650:769123754625466766
> [junit] NOTE: test params are: locale=tr_TR, timezone=GB-Eire
> [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:796)
> [junit] at 
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:623)
> [junit] at 

[jira] Commented: (SOLR-2271) XSL features fail using turkish locale due to JVM/xalan bug

2010-12-13 Thread Robert Muir (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971005#action_12971005
 ] 

Robert Muir commented on SOLR-2271:
---

Hoss, the bug is fixed in 1.6 JREs, so the problem only affects 1.5.

(one reason why the issue has Fix Version: 3.1 set, and not 4.0, since 4.0 
requires 1.6 as a minimum).

Worst case we could at least supply a documentation fix for 3.1 telling people 
how to use a newer XSL library: not really something I understand,
and how big of a deal would it be to supply a fixed XSL library with this 
contrib for 3.1? (it wouldnt affect the core solr libs)


> XSL features fail using turkish locale due to JVM/xalan bug
> ---
>
> Key: SOLR-2271
> URL: https://issues.apache.org/jira/browse/SOLR-2271
> Project: Solr
>  Issue Type: Bug
>  Components: contrib - DataImportHandler
>Affects Versions: 3.1
> Environment: Windows Vista 64
> java version "1.5.0_15"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_15-b04, mixed mode)
>Reporter: Steven Rowe
> Fix For: 3.1
>
>
> Reproducible test failure, from {{solr/}} directory:
> {quote}
> ant test -Dtestcase=TestXPathEntityProcessor 
> -Dtestmethod=withDefaultSolrAndXsl 
> -Dtests.seed=7349899226216392650:769123754625466766
> NOTE: test params are: locale=tr_TR, timezone=GB-Eire
> {quote}
> {quote}
> testCore:
> [junit] Testsuite: 
> org.apache.solr.handler.dataimport.TestXPathEntityProcessor
> [junit] Testcase: 
> withDefaultSolrAndXsl(org.apache.solr.handler.dataimport.TestXPathEntityProcessor):
>Caused an ERROR
> [junit] Error initializing XSL 
> [junit] org.apache.solr.handler.dataimport.DataImportHandlerException: 
> Error initializing XSL 
> [junit] at 
> org.apache.solr.handler.dataimport.XPathEntityProcessor.initXpathReader(XPathEntityProcessor.java:117)
> [junit] at 
> org.apache.solr.handler.dataimport.XPathEntityProcessor.init(XPathEntityProcessor.java:87)
> [junit] at 
> org.apache.solr.handler.dataimport.TestXPathEntityProcessor.withDefaultSolrAndXsl(TestXPathEntityProcessor.java:222)
> [junit] at 
> org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:829)
> [junit] at 
> org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:767)
> [junit] Caused by: javax.xml.transform.TransformerConfigurationException: 
> Could not compile stylesheet
> [junit] at 
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:829)
> [junit] at 
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:623)
> [junit] at 
> org.apache.solr.handler.dataimport.XPathEntityProcessor.initXpathReader(XPathEntityProcessor.java:112)
> [junit] 
> [junit] 
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.607 sec
> [junit] 
> [junit] - Standard Output ---
> [junit] NOTE: reproduce with: ant test 
> -Dtestcase=TestXPathEntityProcessor -Dtestmethod=withDefaultSolrAndXsl 
> -Dtests.seed=7349899226216392650:769123754625466766
> [junit] NOTE: test params are: locale=tr_TR, timezone=GB-Eire
> [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(T