Jan Høydahl created SOLR-6643:
---------------------------------

             Summary: Core load silently aborted if missing depenencies
                 Key: SOLR-6643
                 URL: https://issues.apache.org/jira/browse/SOLR-6643
             Project: Solr
          Issue Type: Bug
          Components: Schema and Analysis
    Affects Versions: 4.10.1
            Reporter: Jan Høydahl
            Priority: Minor


*How to reproduce*
# Start with standard collection1 config
# Add a field type to schema using the ICU contrib, no need for a field
{code:XML}
<fieldType name="text_icu" class="solr.TextField">
  <analyzer><tokenizer class="solr.ICUTokenizerFactory"/></analyzer>
</fieldType>
{code}
# {{cd example}}
# {{mkdir solr/lib}}
# {{cp ../contrib/analysis-extras/lucene-libs/lucene-analyzers-icu-4.10.1.jar 
solr/lib/}}
# {{bin/solr -f}}
# Core is not loaded, and no messages in log after this line
{code}
... INFO  org.apache.solr.schema.IndexSchema  – [collection1] Schema 
name=example
{code}

Note that we did *not* add the dependency libs from {{analysis-extras/lib}}, so 
we'd expect a {{ClassNotFoundException}}, but some way the initialization of 
schema aborts silently. The ICUTokenizerFactory is instansiated by reflection 
and I suspect that some exception is swallowed in 
{{AbstractPluginLoader#create()}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to