lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Matviychuk (JIRA)" <>
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
             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(
       at org.apache.solr.schema.IndexSchema$1.create(
       at org.apache.solr.util.plugin.AbstractPluginLoader.load(
       at org.apache.solr.schema.IndexSchema.readSchema(
       at org.apache.solr.schema.IndexSchema.<init>(
       at org.apache.solr.core.SolrCore.<init>(
       at org.apache.solr.core.CoreContainer$Initializer.initialize(

solr schema:

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

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:
For additional commands, e-mail:

View raw message