lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Matviychuk (JIRA)" <j...@apache.org>
Subject [jira] Created: (SOLR-2196) ClassCastException when parsing schema.xml on startup
Date Tue, 26 Oct 2010 01:42:22 GMT
ClassCastException when parsing schema.xml on startup
-----------------------------------------------------

                 Key: SOLR-2196
                 URL: https://issues.apache.org/jira/browse/SOLR-2196
             Project: Solr
          Issue Type: Bug
          Components: Schema and Analysis
    Affects Versions: 1.4.1
         Environment: Linux x64, Tomcat, EmbeddedSolr
            Reporter: Alex Matviychuk


Getting this when deploying to tomcat:

[INFO][http-4443-exec-3][solr.schema.IndexSchema] readSchema():394
Reading Solr Schema
[INFO][http-4443-exec-3][solr.schema.IndexSchema] readSchema():408
Schema name=tsadmin
[ERROR][http-4443-exec-3][util.plugin.AbstractPluginLoader] log():139
java.lang.ClassCastException: org.apache.solr.schema.StrField cannot
be cast to org.apache.solr.schema.FieldType
       at org.apache.solr.schema.IndexSchema$1.create(IndexSchema.java:419)
       at org.apache.solr.schema.IndexSchema$1.create(IndexSchema.java:447)
       at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:141)
       at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:456)
       at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:95)
       at org.apache.solr.core.SolrCore.<init>(SolrCore.java:520)
       at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)


solr schema:

<?xml version="1.0" encoding="UTF-8" ?>
<schema name="tsadmin" version="1.2">
       <types>
               <fieldType name="string" class="solr.StrField"
sortMissingLast="true" omitNorms="true"/>
               ...
       </types>
       <fields>
          <field name="type" type="string" required="true"/>
          ...
       </fields>
</schema>

-- 
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