[
https://issues.apache.org/jira/browse/SOLR-2362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shalin Shekhar Mangar resolved SOLR-2362.
-----------------------------------------
Resolution: Fixed
I don't know when this was fixed but it is fixed in trunk and branch_4x.
Here's the error:
{code}
Caused by: org.apache.solr.common.SolrException: Plugin init failure for
[schema.xml] fieldType "text_general": Plugin init failure for [schema.xml]
analyzer/filter: Error loading class 'shalin.DoesNotExistFilterFactor'. Schema
file is /home/shalin/work/oss/trunk/solr/example/solr/collection1/schema.xml
at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:601)
at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:172)
at
org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55)
at
org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69)
at
org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:89)
at
org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:62)
... 9 more
Caused by: org.apache.solr.common.SolrException: Plugin init failure for
[schema.xml] fieldType "text_general": Plugin init failure for [schema.xml]
analyzer/filter: Error loading class 'shalin.DoesNotExistFilterFactor'
at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:177)
at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:492)
... 14 more
Caused by: org.apache.solr.common.SolrException: Plugin init failure for
[schema.xml] analyzer/filter: Error loading class
'shalin.DoesNotExistFilterFactor'
at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:177)
at
org.apache.solr.schema.FieldTypePluginLoader.readAnalyzer(FieldTypePluginLoader.java:400)
at
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:95)
at
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:43)
at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:151)
... 15 more
Caused by: org.apache.solr.common.SolrException: Error loading class
'shalin.DoesNotExistFilterFactor'
at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:490)
at
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:593)
at
org.apache.solr.schema.FieldTypePluginLoader$3.create(FieldTypePluginLoader.java:382)
at
org.apache.solr.schema.FieldTypePluginLoader$3.create(FieldTypePluginLoader.java:376)
at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:151)
... 19 more
Caused by: java.lang.ClassNotFoundException: shalin.DoesNotExistFilterFactor
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:789)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:474)
... 23 more
{code}
> Unknown fieldtype error reported incorrectly
> --------------------------------------------
>
> Key: SOLR-2362
> URL: https://issues.apache.org/jira/browse/SOLR-2362
> Project: Solr
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.4.1
> Reporter: Ray Wong
> Priority: Minor
>
> When a self-defined field is defined in schema.xml, the analyzers defined in
> the field type must be present in the lib folder of <SOLR_HOME>, else when
> the server is started, there would be an error saying "Unknown fieldtype".
> This error message should be improved by detecting the analyzers are not
> present instead of saying the fieldtype is unknown
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]