[ 
https://issues.apache.org/jira/browse/SOLR-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Høydahl closed SOLR-2196.
-----------------------------

    Resolution: Cannot Reproduce

Closing ancient bug which probably is no bug. Alex, please re-open if you still 
face issues and have more info.
                
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to