lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lance Norskog (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-2212) NoMergePolicy class does not load
Date Tue, 02 Nov 2010 05:47:23 GMT

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

Lance Norskog commented on SOLR-2212:
-------------------------------------

This test is in trunk/solr/example and branch_3x/solr/example.
I set the MergePolicy in solrconfig.xml to the NoMergePolicy class with this line:
{code}
  <mergePolicy class="org.apache.lucene.index.NoMergePolicy"/>
{code}

When I start solr I get the following stack trace.
{code}
Nov 1, 2010 10:43:40 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: Error instantiating class: 'org.apache.lucene.index.NoMergePolicy'
	at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:432)
	at org.apache.solr.update.SolrIndexWriter.init(SolrIndexWriter.java:83)
	at org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:197)
	at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:399)
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:550)
	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:660)
	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:412)
	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:294)
	at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:243)
	at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:86)
	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
	at org.mortbay.jetty.Server.doStart(Server.java:224)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.mortbay.start.Main.invokeMain(Main.java:194)
	at org.mortbay.start.Main.start(Main.java:534)
	at org.mortbay.start.Main.start(Main.java:441)
	at org.mortbay.start.Main.main(Main.java:119)
Caused by: java.lang.InstantiationException: org.apache.lucene.index.NoMergePolicy
	at java.lang.Class.newInstance0(Class.java:340)
	at java.lang.Class.newInstance(Class.java:308)
	at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:429)
	... 34 more

{code}





> NoMergePolicy class does not load
> ---------------------------------
>
>                 Key: SOLR-2212
>                 URL: https://issues.apache.org/jira/browse/SOLR-2212
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 3.1, 4.0
>            Reporter: Lance Norskog
>
> Solr cannot use the Lucene NoMergePolicy class. It will not instantiate correctly when
loading the core.
> Other MergePolicy classes work, including the BalancedSegmentMergePolicy.
> This is in trunk and 3.x.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message