Quantcast

Lucene ICUFoldingFilter

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Lucene ICUFoldingFilter

wsalesky
Hi All, 
I have been spending attempting to customize Lucene for our needs. It looks to me like the ICUFoldingFilter will be very useful for our searches, but I am having some trouble getting it to work. 

I am working with the development branch: version 2.2 build 2014915
I have used ./build.sh download-icu4j to include the icu4j library. I then tried dropping the lucene-analyzers-icu-4.4.0.jar onto EXIST-HOME/extensions/indexes/lucene/lib

I then created a custom analyzer (essentially by copying the code from the NoDiacriticsStandardAnalyzer) and switching in the ICUFoldingFilter in place of the  ASCIIFoldingFilter. 

However I get an error when trying to reindex with my new analyzer. It looks like perhaps the icu4j library is not being found? I do not know any java and this is my first foray into customizing the Lucene analyzers, so any help would be greatly appreciated. 

Thanks,
-Winona

Error kicked up:

org.exist.EXistException: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;

at org.exist.storage.BrokerPool.initialize(BrokerPool.java:1073)

at org.exist.storage.BrokerPool.<init>(BrokerPool.java:729)

at org.exist.storage.BrokerPool.configure(BrokerPool.java:248)

at org.exist.storage.BrokerPool.configure(BrokerPool.java:224)

at org.exist.jetty.JettyStart.run(JettyStart.java:165)

at org.exist.jetty.JettyStart.main(JettyStart.java:73)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.exist.start.Main.invokeMain(Main.java:126)

at org.exist.start.Main.run(Main.java:448)

at org.exist.start.Main.main(Main.java:50)

Caused by: java.lang.NoSuchMethodError: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;

at com.ibm.icu.impl.Normalizer2Impl.load(Normalizer2Impl.java:400)

at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:334)

at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:328)

at com.ibm.icu.impl.SoftCache.getInstance(SoftCache.java:55)

at com.ibm.icu.impl.Norm2AllModes.getInstance(Norm2AllModes.java:325)

at com.ibm.icu.text.Normalizer2.getInstance(Normalizer2.java:130)

at org.apache.lucene.analysis.icu.ICUFoldingFilter.<clinit>(ICUFoldingFilter.java:64)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:188)

at org.exist.indexing.lucene.AnalyzerConfig.configureAnalyzer(AnalyzerConfig.java:151)

at org.exist.indexing.lucene.AnalyzerConfig.addAnalyzer(AnalyzerConfig.java:98)

at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:240)

at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:236)

at org.exist.indexing.lucene.LuceneConfig.<init>(LuceneConfig.java:55)

at org.exist.indexing.lucene.LuceneIndexWorker.configure(LuceneIndexWorker.java:140)

at org.exist.indexing.IndexController.configure(IndexController.java:88)

at org.exist.storage.IndexSpec.read(IndexSpec.java:117)

at org.exist.storage.IndexSpec.<init>(IndexSpec.java:75)

at org.exist.collections.CollectionConfiguration.read(CollectionConfiguration.java:151)

at org.exist.collections.CollectionConfigurationManager.loadConfiguration(CollectionConfigurationManager.java:286)

at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260)

at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:268)

at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:268)

at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:268)

at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:252)

at org.exist.collections.CollectionConfigurationManager.<init>(CollectionConfigurationManager.java:85)

at org.exist.storage.BrokerPool.initCollectionConfigurationManager(BrokerPool.java:1380)

at org.exist.storage.BrokerPool.initialize(BrokerPool.java:946)

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Lucene ICUFoldingFilter

Dmitriy Shabanov
Hello Winona,

On Mon, Sep 15, 2014 at 9:34 PM, Winona Salesky <[hidden email]> wrote:
I have been spending attempting to customize Lucene for our needs. It looks to me like the ICUFoldingFilter will be very useful for our searches, but I am having some trouble getting it to work. 

I am working with the development branch: version 2.2 build 2014915
I have used ./build.sh download-icu4j to include the icu4j library. I then tried dropping the lucene-analyzers-icu-4.4.0.jar onto EXIST-HOME/extensions/indexes/lucene/lib

Try to skip "./build.sh download-icu4j" (make sure that jars downloaded that way deleted) and put lucene-analyzers-icu-4.4.0.jar & icu4j-49.1.jar to  EXIST-HOME/extensions/indexes/lucene/lib

--
Dmitriy Shabanov

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Lucene ICUFoldingFilter

wsalesky
Dmitriy, 
Thanks for the tip unfortunately I am still getting the same error.  Any other thoughts? 
Thanks again. 
-Winona

On Mon, Sep 15, 2014 at 4:13 PM, Dmitriy Shabanov <[hidden email]> wrote:
Hello Winona,

On Mon, Sep 15, 2014 at 9:34 PM, Winona Salesky <[hidden email]> wrote:
I have been spending attempting to customize Lucene for our needs. It looks to me like the ICUFoldingFilter will be very useful for our searches, but I am having some trouble getting it to work. 

I am working with the development branch: version 2.2 build 2014915
I have used ./build.sh download-icu4j to include the icu4j library. I then tried dropping the lucene-analyzers-icu-4.4.0.jar onto EXIST-HOME/extensions/indexes/lucene/lib

Try to skip "./build.sh download-icu4j" (make sure that jars downloaded that way deleted) and put lucene-analyzers-icu-4.4.0.jar & icu4j-49.1.jar to  EXIST-HOME/extensions/indexes/lucene/lib

--
Dmitriy Shabanov


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Lucene ICUFoldingFilter

Dmitriy Shabanov
Try it on fresh copy. Looks like you didn't delete downloaded jars. Or/and search for "icu4j*" file.

On Tue, Sep 16, 2014 at 6:11 PM, Winona Salesky <[hidden email]> wrote:
Dmitriy, 
Thanks for the tip unfortunately I am still getting the same error.  Any other thoughts? 
Thanks again. 
-Winona

On Mon, Sep 15, 2014 at 4:13 PM, Dmitriy Shabanov <[hidden email]> wrote:
Hello Winona,

On Mon, Sep 15, 2014 at 9:34 PM, Winona Salesky <[hidden email]> wrote:
I have been spending attempting to customize Lucene for our needs. It looks to me like the ICUFoldingFilter will be very useful for our searches, but I am having some trouble getting it to work. 

I am working with the development branch: version 2.2 build 2014915
I have used ./build.sh download-icu4j to include the icu4j library. I then tried dropping the lucene-analyzers-icu-4.4.0.jar onto EXIST-HOME/extensions/indexes/lucene/lib

Try to skip "./build.sh download-icu4j" (make sure that jars downloaded that way deleted) and put lucene-analyzers-icu-4.4.0.jar & icu4j-49.1.jar to  EXIST-HOME/extensions/indexes/lucene/lib

--
Dmitriy Shabanov




--
Dmitriy Shabanov

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Lucene ICUFoldingFilter

wsalesky
Still getting the same error on a fresh install of eXist.
Not sure what else I should try. 


On Tue, Sep 16, 2014 at 10:42 AM, Dmitriy Shabanov <[hidden email]> wrote:
Try it on fresh copy. Looks like you didn't delete downloaded jars. Or/and search for "icu4j*" file.

On Tue, Sep 16, 2014 at 6:11 PM, Winona Salesky <[hidden email]> wrote:
Dmitriy, 
Thanks for the tip unfortunately I am still getting the same error.  Any other thoughts? 
Thanks again. 
-Winona

On Mon, Sep 15, 2014 at 4:13 PM, Dmitriy Shabanov <[hidden email]> wrote:
Hello Winona,

On Mon, Sep 15, 2014 at 9:34 PM, Winona Salesky <[hidden email]> wrote:
I have been spending attempting to customize Lucene for our needs. It looks to me like the ICUFoldingFilter will be very useful for our searches, but I am having some trouble getting it to work. 

I am working with the development branch: version 2.2 build 2014915
I have used ./build.sh download-icu4j to include the icu4j library. I then tried dropping the lucene-analyzers-icu-4.4.0.jar onto EXIST-HOME/extensions/indexes/lucene/lib

Try to skip "./build.sh download-icu4j" (make sure that jars downloaded that way deleted) and put lucene-analyzers-icu-4.4.0.jar & icu4j-49.1.jar to  EXIST-HOME/extensions/indexes/lucene/lib

--
Dmitriy Shabanov




--
Dmitriy Shabanov


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Lucene ICUFoldingFilter

Dmitriy Shabanov
You didn't search for jar. Do it.

On Tue, Sep 16, 2014 at 9:27 PM, Winona Salesky <[hidden email]> wrote:
Still getting the same error on a fresh install of eXist.
Not sure what else I should try. 


On Tue, Sep 16, 2014 at 10:42 AM, Dmitriy Shabanov <[hidden email]> wrote:
Try it on fresh copy. Looks like you didn't delete downloaded jars. Or/and search for "icu4j*" file.

On Tue, Sep 16, 2014 at 6:11 PM, Winona Salesky <[hidden email]> wrote:
Dmitriy, 
Thanks for the tip unfortunately I am still getting the same error.  Any other thoughts? 
Thanks again. 
-Winona

On Mon, Sep 15, 2014 at 4:13 PM, Dmitriy Shabanov <[hidden email]> wrote:
Hello Winona,

On Mon, Sep 15, 2014 at 9:34 PM, Winona Salesky <[hidden email]> wrote:
I have been spending attempting to customize Lucene for our needs. It looks to me like the ICUFoldingFilter will be very useful for our searches, but I am having some trouble getting it to work. 

I am working with the development branch: version 2.2 build 2014915
I have used ./build.sh download-icu4j to include the icu4j library. I then tried dropping the lucene-analyzers-icu-4.4.0.jar onto EXIST-HOME/extensions/indexes/lucene/lib

Try to skip "./build.sh download-icu4j" (make sure that jars downloaded that way deleted) and put lucene-analyzers-icu-4.4.0.jar & icu4j-49.1.jar to  EXIST-HOME/extensions/indexes/lucene/lib

--
Dmitriy Shabanov




--
Dmitriy Shabanov




--
Dmitriy Shabanov

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Lucene ICUFoldingFilter

wsalesky
Sorry to dredge up an old email, but I never did resolve this. 
My current attempt is on a fresh clone of the develop branch: version 3.0 (develop-fe2fd8e). 
I have dropped icu4j-4_8_1_1.jar and lucene-analyzers-icu-4.10.4.jar into EXIST-HOME/extensions/indexes/lucene/lib and then startup eXist using java -jar start.jar. 

The icu4j jar is not located in any additional locations within EXIST-HOME. 
Any help would be greatly appreciated. I'm stumped. 

Error: 
2017-03-07 13:10:42,755 [Thread-3] ERROR (BrokerPools.java [configure]:187) - Unable to initialize database instance 'exist': com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo; 
org.exist.EXistException: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:669) ~[exist.jar:?]
at org.exist.storage.BrokerPool.initialize(BrokerPool.java:415) ~[exist.jar:?]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:181) [exist.jar:?]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:110) [exist.jar:?]
at org.exist.jetty.JettyStart.run(JettyStart.java:164) [exist-optional.jar:?]
at org.exist.launcher.Launcher$2.run(Launcher.java:177) [exist.jar:?]
Caused by: java.lang.NoSuchMethodError: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at com.ibm.icu.impl.Normalizer2Impl.load(Normalizer2Impl.java:425) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:349) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:343) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.SoftCache.getInstance(SoftCache.java:58) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes.getInstance(Norm2AllModes.java:340) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.text.Normalizer2.getInstance(Normalizer2.java:185) ~[icu4j-53.1.jar:53.1.0]
at org.apache.lucene.analysis.icu.ICUFoldingFilter.<clinit>(ICUFoldingFilter.java:64) ~[lucene-analyzers-icu-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:59]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_60]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_60]
at org.exist.indexing.lucene.AnalyzerConfig.configureAnalyzer(AnalyzerConfig.java:168) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.AnalyzerConfig.addAnalyzer(AnalyzerConfig.java:115) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:260) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:256) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.<init>(LuceneConfig.java:75) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneIndexWorker.configure(LuceneIndexWorker.java:153) ~[exist-index-lucene.jar:?]
at org.exist.indexing.IndexController.configure(IndexController.java:82) ~[exist.jar:?]
at org.exist.storage.IndexSpec.read(IndexSpec.java:107) ~[exist.jar:?]
at org.exist.storage.IndexSpec.<init>(IndexSpec.java:68) ~[exist.jar:?]
at org.exist.collections.CollectionConfiguration.read(CollectionConfiguration.java:152) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadConfiguration(CollectionConfigurationManager.java:278) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:252) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:244) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.startSystem(CollectionConfigurationManager.java:88) ~[exist.jar:?]
at org.exist.storage.BrokerPoolServicesManager.startSystemServices(BrokerPoolServicesManager.java:165) ~[exist.jar:?]
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:578) ~[exist.jar:?]
... 5 more
2017-03-07 13:10:42,758 [Thread-3] ERROR (JettyStart.java [run]:172) - configuration error: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo; 
org.exist.EXistException: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:669) ~[exist.jar:?]
at org.exist.storage.BrokerPool.initialize(BrokerPool.java:415) ~[exist.jar:?]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:181) ~[exist.jar:?]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:110) ~[exist.jar:?]
at org.exist.jetty.JettyStart.run(JettyStart.java:164) [exist-optional.jar:?]
at org.exist.launcher.Launcher$2.run(Launcher.java:177) [exist.jar:?]
Caused by: java.lang.NoSuchMethodError: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at com.ibm.icu.impl.Normalizer2Impl.load(Normalizer2Impl.java:425) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:349) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:343) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.SoftCache.getInstance(SoftCache.java:58) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes.getInstance(Norm2AllModes.java:340) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.text.Normalizer2.getInstance(Normalizer2.java:185) ~[icu4j-53.1.jar:53.1.0]
at org.apache.lucene.analysis.icu.ICUFoldingFilter.<clinit>(ICUFoldingFilter.java:64) ~[lucene-analyzers-icu-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:59]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_60]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_60]
at org.exist.indexing.lucene.AnalyzerConfig.configureAnalyzer(AnalyzerConfig.java:168) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.AnalyzerConfig.addAnalyzer(AnalyzerConfig.java:115) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:260) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:256) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.<init>(LuceneConfig.java:75) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneIndexWorker.configure(LuceneIndexWorker.java:153) ~[exist-index-lucene.jar:?]
at org.exist.indexing.IndexController.configure(IndexController.java:82) ~[exist.jar:?]
at org.exist.storage.IndexSpec.read(IndexSpec.java:107) ~[exist.jar:?]
at org.exist.storage.IndexSpec.<init>(IndexSpec.java:68) ~[exist.jar:?]
at org.exist.collections.CollectionConfiguration.read(CollectionConfiguration.java:152) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadConfiguration(CollectionConfigurationManager.java:278) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:252) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:244) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.startSystem(CollectionConfigurationManager.java:88) ~[exist.jar:?]
at org.exist.storage.BrokerPoolServicesManager.startSystemServices(BrokerPoolServicesManager.java:165) ~[exist.jar:?]
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:578) ~[exist.jar:?]
... 5 more

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Lucene ICUFoldingFilter

Dmitriy Shabanov


On Tue, Mar 7, 2017 at 9:14 PM, Winona Salesky <[hidden email]> wrote:
Sorry to dredge up an old email, but I never did resolve this. 
My current attempt is on a fresh clone of the develop branch: version 3.0 (develop-fe2fd8e). 
I have dropped icu4j-4_8_1_1.jar and lucene-analyzers-icu-4.10.4.jar into EXIST-HOME/extensions/indexes/lucene/lib and then startup eXist using java -jar start.jar. 

Your icu4j-4_8_1_1.jar looks a bit strange for me. Where did you get it from?

I think you need icu4j-53.1.jar, you can download it from here.


The icu4j jar is not located in any additional locations within EXIST-HOME. 
Any help would be greatly appreciated. I'm stumped. 

Error: 
2017-03-07 13:10:42,755 [Thread-3] ERROR (BrokerPools.java [configure]:187) - Unable to initialize database instance 'exist': com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo; 
org.exist.EXistException: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:669) ~[exist.jar:?]
at org.exist.storage.BrokerPool.initialize(BrokerPool.java:415) ~[exist.jar:?]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:181) [exist.jar:?]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:110) [exist.jar:?]
at org.exist.jetty.JettyStart.run(JettyStart.java:164) [exist-optional.jar:?]
at org.exist.launcher.Launcher$2.run(Launcher.java:177) [exist.jar:?]
Caused by: java.lang.NoSuchMethodError: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at com.ibm.icu.impl.Normalizer2Impl.load(Normalizer2Impl.java:425) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:349) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:343) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.SoftCache.getInstance(SoftCache.java:58) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes.getInstance(Norm2AllModes.java:340) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.text.Normalizer2.getInstance(Normalizer2.java:185) ~[icu4j-53.1.jar:53.1.0]
at org.apache.lucene.analysis.icu.ICUFoldingFilter.<clinit>(ICUFoldingFilter.java:64) ~[lucene-analyzers-icu-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:59]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_60]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_60]
at org.exist.indexing.lucene.AnalyzerConfig.configureAnalyzer(AnalyzerConfig.java:168) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.AnalyzerConfig.addAnalyzer(AnalyzerConfig.java:115) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:260) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:256) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.<init>(LuceneConfig.java:75) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneIndexWorker.configure(LuceneIndexWorker.java:153) ~[exist-index-lucene.jar:?]
at org.exist.indexing.IndexController.configure(IndexController.java:82) ~[exist.jar:?]
at org.exist.storage.IndexSpec.read(IndexSpec.java:107) ~[exist.jar:?]
at org.exist.storage.IndexSpec.<init>(IndexSpec.java:68) ~[exist.jar:?]
at org.exist.collections.CollectionConfiguration.read(CollectionConfiguration.java:152) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadConfiguration(CollectionConfigurationManager.java:278) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:252) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:244) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.startSystem(CollectionConfigurationManager.java:88) ~[exist.jar:?]
at org.exist.storage.BrokerPoolServicesManager.startSystemServices(BrokerPoolServicesManager.java:165) ~[exist.jar:?]
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:578) ~[exist.jar:?]
... 5 more
2017-03-07 13:10:42,758 [Thread-3] ERROR (JettyStart.java [run]:172) - configuration error: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo; 
org.exist.EXistException: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:669) ~[exist.jar:?]
at org.exist.storage.BrokerPool.initialize(BrokerPool.java:415) ~[exist.jar:?]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:181) ~[exist.jar:?]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:110) ~[exist.jar:?]
at org.exist.jetty.JettyStart.run(JettyStart.java:164) [exist-optional.jar:?]
at org.exist.launcher.Launcher$2.run(Launcher.java:177) [exist.jar:?]
Caused by: java.lang.NoSuchMethodError: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at com.ibm.icu.impl.Normalizer2Impl.load(Normalizer2Impl.java:425) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:349) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:343) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.SoftCache.getInstance(SoftCache.java:58) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes.getInstance(Norm2AllModes.java:340) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.text.Normalizer2.getInstance(Normalizer2.java:185) ~[icu4j-53.1.jar:53.1.0]
at org.apache.lucene.analysis.icu.ICUFoldingFilter.<clinit>(ICUFoldingFilter.java:64) ~[lucene-analyzers-icu-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:59]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_60]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_60]
at org.exist.indexing.lucene.AnalyzerConfig.configureAnalyzer(AnalyzerConfig.java:168) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.AnalyzerConfig.addAnalyzer(AnalyzerConfig.java:115) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:260) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:256) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.<init>(LuceneConfig.java:75) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneIndexWorker.configure(LuceneIndexWorker.java:153) ~[exist-index-lucene.jar:?]
at org.exist.indexing.IndexController.configure(IndexController.java:82) ~[exist.jar:?]
at org.exist.storage.IndexSpec.read(IndexSpec.java:107) ~[exist.jar:?]
at org.exist.storage.IndexSpec.<init>(IndexSpec.java:68) ~[exist.jar:?]
at org.exist.collections.CollectionConfiguration.read(CollectionConfiguration.java:152) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadConfiguration(CollectionConfigurationManager.java:278) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:252) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:244) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.startSystem(CollectionConfigurationManager.java:88) ~[exist.jar:?]
at org.exist.storage.BrokerPoolServicesManager.startSystemServices(BrokerPoolServicesManager.java:165) ~[exist.jar:?]
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:578) ~[exist.jar:?]
... 5 more

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open




--
Dmitriy Shabanov

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Lucene ICUFoldingFilter

wsalesky
Still hoping to solve this. The new icu4j-53.1.jar installed in 
EXIST-HOME/extensions/indexes/lucene/lib 

no longer gives me any erros, but I get an error in eXide when I try to save my collection.xconf file:

Failed to Save Document
Could not initialize class org.apache.lucene.analysis.icu.ICUFoldingFilter

When I try to use it in my collection.xconf file:

    <index xmlns:tei="http://www.tei-c.org/ns/1.0">
        <fulltext default="none" attributes="no"/>
        <!-- Full text search configuration  -->
        <lucene>
        <analyzer class="org.apache.lucene.analysis.icu.ICUFoldingFilter"/>
            <text qname="tei:body"/>
        </lucene>
    </index>
</collection>

Is there an additional step that needs to be taken in order to get eXist to "see" new analyzer classes? It would be really useful to be able to easily create and plugin new analyzers. 

Thanks for the help, 
-Winona


 

On Tue, Mar 7, 2017 at 4:31 PM, Dmitriy Shabanov <[hidden email]> wrote:


On Tue, Mar 7, 2017 at 9:14 PM, Winona Salesky <[hidden email]> wrote:
Sorry to dredge up an old email, but I never did resolve this. 
My current attempt is on a fresh clone of the develop branch: version 3.0 (develop-fe2fd8e). 
I have dropped icu4j-4_8_1_1.jar and lucene-analyzers-icu-4.10.4.jar into EXIST-HOME/extensions/indexes/lucene/lib and then startup eXist using java -jar start.jar. 

Your icu4j-4_8_1_1.jar looks a bit strange for me. Where did you get it from?

I think you need icu4j-53.1.jar, you can download it from here.


The icu4j jar is not located in any additional locations within EXIST-HOME. 
Any help would be greatly appreciated. I'm stumped. 

Error: 
2017-03-07 13:10:42,755 [Thread-3] ERROR (BrokerPools.java [configure]:187) - Unable to initialize database instance 'exist': com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo; 
org.exist.EXistException: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:669) ~[exist.jar:?]
at org.exist.storage.BrokerPool.initialize(BrokerPool.java:415) ~[exist.jar:?]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:181) [exist.jar:?]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:110) [exist.jar:?]
at org.exist.jetty.JettyStart.run(JettyStart.java:164) [exist-optional.jar:?]
at org.exist.launcher.Launcher$2.run(Launcher.java:177) [exist.jar:?]
Caused by: java.lang.NoSuchMethodError: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at com.ibm.icu.impl.Normalizer2Impl.load(Normalizer2Impl.java:425) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:349) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:343) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.SoftCache.getInstance(SoftCache.java:58) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes.getInstance(Norm2AllModes.java:340) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.text.Normalizer2.getInstance(Normalizer2.java:185) ~[icu4j-53.1.jar:53.1.0]
at org.apache.lucene.analysis.icu.ICUFoldingFilter.<clinit>(ICUFoldingFilter.java:64) ~[lucene-analyzers-icu-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:59]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_60]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_60]
at org.exist.indexing.lucene.AnalyzerConfig.configureAnalyzer(AnalyzerConfig.java:168) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.AnalyzerConfig.addAnalyzer(AnalyzerConfig.java:115) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:260) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:256) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.<init>(LuceneConfig.java:75) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneIndexWorker.configure(LuceneIndexWorker.java:153) ~[exist-index-lucene.jar:?]
at org.exist.indexing.IndexController.configure(IndexController.java:82) ~[exist.jar:?]
at org.exist.storage.IndexSpec.read(IndexSpec.java:107) ~[exist.jar:?]
at org.exist.storage.IndexSpec.<init>(IndexSpec.java:68) ~[exist.jar:?]
at org.exist.collections.CollectionConfiguration.read(CollectionConfiguration.java:152) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadConfiguration(CollectionConfigurationManager.java:278) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:252) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:244) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.startSystem(CollectionConfigurationManager.java:88) ~[exist.jar:?]
at org.exist.storage.BrokerPoolServicesManager.startSystemServices(BrokerPoolServicesManager.java:165) ~[exist.jar:?]
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:578) ~[exist.jar:?]
... 5 more
2017-03-07 13:10:42,758 [Thread-3] ERROR (JettyStart.java [run]:172) - configuration error: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo; 
org.exist.EXistException: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:669) ~[exist.jar:?]
at org.exist.storage.BrokerPool.initialize(BrokerPool.java:415) ~[exist.jar:?]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:181) ~[exist.jar:?]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:110) ~[exist.jar:?]
at org.exist.jetty.JettyStart.run(JettyStart.java:164) [exist-optional.jar:?]
at org.exist.launcher.Launcher$2.run(Launcher.java:177) [exist.jar:?]
Caused by: java.lang.NoSuchMethodError: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at com.ibm.icu.impl.Normalizer2Impl.load(Normalizer2Impl.java:425) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:349) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:343) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.SoftCache.getInstance(SoftCache.java:58) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes.getInstance(Norm2AllModes.java:340) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.text.Normalizer2.getInstance(Normalizer2.java:185) ~[icu4j-53.1.jar:53.1.0]
at org.apache.lucene.analysis.icu.ICUFoldingFilter.<clinit>(ICUFoldingFilter.java:64) ~[lucene-analyzers-icu-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:59]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_60]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_60]
at org.exist.indexing.lucene.AnalyzerConfig.configureAnalyzer(AnalyzerConfig.java:168) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.AnalyzerConfig.addAnalyzer(AnalyzerConfig.java:115) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:260) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:256) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneConfig.<init>(LuceneConfig.java:75) ~[exist-index-lucene.jar:?]
at org.exist.indexing.lucene.LuceneIndexWorker.configure(LuceneIndexWorker.java:153) ~[exist-index-lucene.jar:?]
at org.exist.indexing.IndexController.configure(IndexController.java:82) ~[exist.jar:?]
at org.exist.storage.IndexSpec.read(IndexSpec.java:107) ~[exist.jar:?]
at org.exist.storage.IndexSpec.<init>(IndexSpec.java:68) ~[exist.jar:?]
at org.exist.collections.CollectionConfiguration.read(CollectionConfiguration.java:152) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadConfiguration(CollectionConfigurationManager.java:278) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:252) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:244) ~[exist.jar:?]
at org.exist.collections.CollectionConfigurationManager.startSystem(CollectionConfigurationManager.java:88) ~[exist.jar:?]
at org.exist.storage.BrokerPoolServicesManager.startSystemServices(BrokerPoolServicesManager.java:165) ~[exist.jar:?]
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:578) ~[exist.jar:?]
... 5 more

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open




--
Dmitriy Shabanov


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Lucene ICUFoldingFilter

Dannes Wessels-3
On 23 Mar 2017, at 21:53 , Winona Salesky <[hidden email]> wrote:

Is there an additional step that needs to be taken in order to get eXist to "see" new analyzer classes? It would be really useful to be able to easily create and plugin new analyzers. 

Please could you check exist.log ? We need to have a few more clues, I expect a stacktrace is logged in this file….

cheers

Dannes


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Lucene ICUFoldingFilter

wsalesky
Yes, with eXist 3.1.0 I am getting the following (and the database is no longer starting up.):

2017-03-24 18:40:23,050 [Thread-3] ERROR (BrokerPools.java [configure]:187) - Unable to initialize database instance 'exist': com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo; 
org.exist.EXistException: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:669) ~[exist.jar:3.1.0]
at org.exist.storage.BrokerPool.initialize(BrokerPool.java:415) ~[exist.jar:3.1.0]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:181) [exist.jar:3.1.0]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:110) [exist.jar:3.1.0]
at org.exist.jetty.JettyStart.run(JettyStart.java:164) [exist-optional.jar:3.1.0]
at org.exist.launcher.Launcher$2.run(Launcher.java:177) [exist.jar:3.1.0]
Caused by: java.lang.NoSuchMethodError: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at com.ibm.icu.impl.Normalizer2Impl.load(Normalizer2Impl.java:425) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:349) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:343) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.SoftCache.getInstance(SoftCache.java:58) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes.getInstance(Norm2AllModes.java:340) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.text.Normalizer2.getInstance(Normalizer2.java:185) ~[icu4j-53.1.jar:53.1.0]
at org.apache.lucene.analysis.icu.ICUFoldingFilter.<clinit>(ICUFoldingFilter.java:64) ~[lucene-analyzers-icu-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:59]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_60]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_60]
at org.exist.indexing.lucene.AnalyzerConfig.configureAnalyzer(AnalyzerConfig.java:168) ~[exist-index-lucene.jar:3.1.0]
at org.exist.indexing.lucene.AnalyzerConfig.addAnalyzer(AnalyzerConfig.java:115) ~[exist-index-lucene.jar:3.1.0]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:260) ~[exist-index-lucene.jar:3.1.0]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:256) ~[exist-index-lucene.jar:3.1.0]
at org.exist.indexing.lucene.LuceneConfig.<init>(LuceneConfig.java:75) ~[exist-index-lucene.jar:3.1.0]
at org.exist.indexing.lucene.LuceneIndexWorker.configure(LuceneIndexWorker.java:153) ~[exist-index-lucene.jar:3.1.0]
at org.exist.indexing.IndexController.configure(IndexController.java:82) ~[exist.jar:3.1.0]
at org.exist.storage.IndexSpec.read(IndexSpec.java:107) ~[exist.jar:3.1.0]
at org.exist.storage.IndexSpec.<init>(IndexSpec.java:68) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfiguration.read(CollectionConfiguration.java:152) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.loadConfiguration(CollectionConfigurationManager.java:278) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:252) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:244) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.startSystem(CollectionConfigurationManager.java:88) ~[exist.jar:3.1.0]
at org.exist.storage.BrokerPoolServicesManager.startSystemServices(BrokerPoolServicesManager.java:165) ~[exist.jar:3.1.0]
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:578) ~[exist.jar:3.1.0]
... 5 more
2017-03-24 18:40:23,053 [Thread-3] ERROR (JettyStart.java [run]:172) - configuration error: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo; 
org.exist.EXistException: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:669) ~[exist.jar:3.1.0]
at org.exist.storage.BrokerPool.initialize(BrokerPool.java:415) ~[exist.jar:3.1.0]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:181) ~[exist.jar:3.1.0]
at org.exist.storage.BrokerPools.configure(BrokerPools.java:110) ~[exist.jar:3.1.0]
at org.exist.jetty.JettyStart.run(JettyStart.java:164) [exist-optional.jar:3.1.0]
at org.exist.launcher.Launcher$2.run(Launcher.java:177) [exist.jar:3.1.0]
Caused by: java.lang.NoSuchMethodError: com.ibm.icu.impl.ICUBinary.readHeaderAndDataVersion(Ljava/io/InputStream;[BLcom/ibm/icu/impl/ICUBinary$Authenticate;)Lcom/ibm/icu/util/VersionInfo;
at com.ibm.icu.impl.Normalizer2Impl.load(Normalizer2Impl.java:425) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:349) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes$1.createInstance(Norm2AllModes.java:343) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.SoftCache.getInstance(SoftCache.java:58) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.impl.Norm2AllModes.getInstance(Norm2AllModes.java:340) ~[icu4j-53.1.jar:53.1.0]
at com.ibm.icu.text.Normalizer2.getInstance(Normalizer2.java:185) ~[icu4j-53.1.jar:53.1.0]
at org.apache.lucene.analysis.icu.ICUFoldingFilter.<clinit>(ICUFoldingFilter.java:64) ~[lucene-analyzers-icu-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:59]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_60]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_60]
at org.exist.indexing.lucene.AnalyzerConfig.configureAnalyzer(AnalyzerConfig.java:168) ~[exist-index-lucene.jar:3.1.0]
at org.exist.indexing.lucene.AnalyzerConfig.addAnalyzer(AnalyzerConfig.java:115) ~[exist-index-lucene.jar:3.1.0]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:260) ~[exist-index-lucene.jar:3.1.0]
at org.exist.indexing.lucene.LuceneConfig.parseConfig(LuceneConfig.java:256) ~[exist-index-lucene.jar:3.1.0]
at org.exist.indexing.lucene.LuceneConfig.<init>(LuceneConfig.java:75) ~[exist-index-lucene.jar:3.1.0]
at org.exist.indexing.lucene.LuceneIndexWorker.configure(LuceneIndexWorker.java:153) ~[exist-index-lucene.jar:3.1.0]
at org.exist.indexing.IndexController.configure(IndexController.java:82) ~[exist.jar:3.1.0]
at org.exist.storage.IndexSpec.read(IndexSpec.java:107) ~[exist.jar:3.1.0]
at org.exist.storage.IndexSpec.<init>(IndexSpec.java:68) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfiguration.read(CollectionConfiguration.java:152) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.loadConfiguration(CollectionConfigurationManager.java:278) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:252) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:260) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.loadAllConfigurations(CollectionConfigurationManager.java:244) ~[exist.jar:3.1.0]
at org.exist.collections.CollectionConfigurationManager.startSystem(CollectionConfigurationManager.java:88) ~[exist.jar:3.1.0]
at org.exist.storage.BrokerPoolServicesManager.startSystemServices(BrokerPoolServicesManager.java:165) ~[exist.jar:3.1.0]
at org.exist.storage.BrokerPool._initialize(BrokerPool.java:578) ~[exist.jar:3.1.0]
... 5 more


On Fri, Mar 24, 2017 at 6:04 PM, Dannes Wessels <[hidden email]> wrote:
On 23 Mar 2017, at 21:53 , Winona Salesky <[hidden email]> wrote:

Is there an additional step that needs to be taken in order to get eXist to "see" new analyzer classes? It would be really useful to be able to easily create and plugin new analyzers. 

Please could you check exist.log ? We need to have a few more clues, I expect a stacktrace is logged in this file….

cheers

Dannes



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Loading...