jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JCR-3236) Can not instantiate lucene Analyzer in SearchIndex
Date Mon, 20 Feb 2012 20:47:34 GMT

     [ https://issues.apache.org/jira/browse/JCR-3236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jukka Zitting resolved JCR-3236.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.1
         Assignee: Jukka Zitting

This is a regression from JCR-2415 where we updated to Lucene version 3. Analyzers
that have a public empty default constructor still work, but the updated once that in Lucene
3 require a Version argument don't. Note that Jackrabbit already uses the StandardAnalyzer
class as the default when no explicit analyzer is specified, so as a quick workaround you
can just remove that configuration option.

Fixed in revision 1291424 (by providing the Version argument where needed), and merged to
the 2.4 branch in revision 1291437. We'll ship this fix shortly in 2.4.1.
                
> Can not instantiate lucene Analyzer in SearchIndex
> --------------------------------------------------
>
>                 Key: JCR-3236
>                 URL: https://issues.apache.org/jira/browse/JCR-3236
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.4
>            Reporter: YP
>            Assignee: Jukka Zitting
>             Fix For: 2.4.1
>
>
> In the Lucene 3, the there is no default constructor anymore in Analyzer classes
> 11:46:45.946 [main] WARN  o.a.j.core.query.lucene.SearchIndex - Invalid Analyzer class:
org.apache.lucene.analysis.standard.StandardAnalyzer
> java.lang.InstantiationException: org.apache.lucene.analysis.standard.StandardAnalyzer
>         at java.lang.Class.newInstance0(Class.java:340) ~[na:1.6.0_26]
>         at java.lang.Class.newInstance(Class.java:308) ~[na:1.6.0_26]
>         at org.apache.jackrabbit.core.query.lucene.SearchIndex.setAnalyzer(SearchIndex.java:1892)
~[jackrabbit-core-2.4.0.jar:2.4.0]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
>         at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
>         at org.apache.jackrabbit.core.config.BeanConfig.setProperty(BeanConfig.java:255)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.java:203)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$1.getQueryHandler(RepositoryConfigurationParser.java:652)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.config.WorkspaceConfig.getQueryHandler(WorkspaceConfig.java:251)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:171)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1855)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doPostInitialize(RepositoryImpl.java:2092)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:1997)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:510)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:318)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:582)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.jndi.BindableRepository.createRepository(BindableRepository.java:141)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableRepository.java:117)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.jndi.BindableRepository.<init>(BindableRepository.java:106)
[jackrabbit-core-2.4.0.jar:2.4.0]
>         at org.apache.jackrabbit.core.jndi.BindableRepositoryFactory.getObjectInstance(BindableRepositoryFactory.java:52)
[jackrabbit-core-2.4.0.jar:2.4.0]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message