lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Endele (JIRA)" <>
Subject [jira] [Created] (SOLR-5249) ClassNotFoundException due to white-spaces in solrconfig.xml
Date Wed, 18 Sep 2013 15:25:51 GMT
Simon Endele created SOLR-5249:

             Summary: ClassNotFoundException due to white-spaces in solrconfig.xml
                 Key: SOLR-5249
             Project: Solr
          Issue Type: Bug
          Components: SearchComponents - other
            Reporter: Simon Endele
            Priority: Minor

Due to auto-formatting by an text editor/IDE there may be line-breaks after class names in
the solrconfig.xml, for example:

{code:xml}<searchComponent class="solr.SpellCheckComponent" name="suggest">
	<lst name="spellchecker">
		<str name="name">suggest</str>
		<str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
		<str name="lookupImpl">org.apache.solr.spelling.suggest.fst.WFSTLookupFactory

This will raise an exception in SolrResourceLoader as the white-spaces are not stripped from
the class name:
{code}Caused by: org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.spelling.suggest.fst.WFSTLookupFactory
	at org.apache.solr.core.SolrResourceLoader.findClass(
	at org.apache.solr.core.SolrResourceLoader.newInstance(
	at org.apache.solr.core.SolrResourceLoader.newInstance(
	at org.apache.solr.spelling.suggest.Suggester.init(
	at org.apache.solr.handler.component.SpellCheckComponent.inform(
	at org.apache.solr.core.SolrResourceLoader.inform(
	at org.apache.solr.core.SolrCore.<init>(
	... 13 more
Caused by: java.lang.ClassNotFoundException: org.apache.solr.spelling.suggest.fst.WFSTLookupFactory
	at Method)
	at java.lang.ClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(
	at org.apache.solr.core.SolrResourceLoader.findClass(
	... 19 more{code}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message