[ 
https://issues.apache.org/jira/browse/SOLR-4760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13654379#comment-13654379
 ] 

Jan Høydahl commented on SOLR-4760:
-----------------------------------

I get a nullpointer caused by this patch, when running tests for a patch.

{noformat}
[junit4:junit4]   2> NOTE: All tests run in this JVM: [TestMaxScoreQueryParser]
[junit4:junit4]   2> NOTE: reproduce with: ant test  
-Dtestcase=TestMaxScoreQueryParser -Dtests.seed=FFA2D62653D3F0F3 
-Dtests.slow=true -Dtests.locale=nl_BE -Dtests.timezone=America/Shiprock 
-Dtests.file.encoding=UTF-8
[junit4:junit4] ERROR   0.00s | TestMaxScoreQueryParser (suite) <<<
[junit4:junit4]    > Throwable #1: org.apache.solr.common.SolrException: Schema 
Parsing Failed: null
[junit4:junit4]    >    at 
__randomizedtesting.SeedInfo.seed([FFA2D62653D3F0F3]:0)
[junit4:junit4]    >    at 
org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:607)
[junit4:junit4]    >    at 
org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:166)
[junit4:junit4]    >    at 
org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55)
[junit4:junit4]    >    at 
org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69)
[junit4:junit4]    >    at 
org.apache.solr.util.TestHarness.<init>(TestHarness.java:108)
[junit4:junit4]    >    at 
org.apache.solr.SolrTestCaseJ4.createCore(SolrTestCaseJ4.java:393)
[junit4:junit4]    >    at 
org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:385)
[junit4:junit4]    >    at 
org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:197)
[junit4:junit4]    >    at 
org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:184)
[junit4:junit4]    >    at 
org.apache.solr.search.TestMaxScoreQueryParser.beforeClass(TestMaxScoreQueryParser.java:36)
[junit4:junit4]    >    at java.lang.Thread.run(Thread.java:722)
[junit4:junit4]    > Caused by: java.lang.NullPointerException
[junit4:junit4]    >    at 
org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:437)
[junit4:junit4]    >    ... 32 more
[junit4:junit4] Completed in 2.16s, 0 tests, 1 error <<< FAILURES!
{noformat}

The offending line is:
{code:java}
437:      sb.append(loader.getCoreProperties().getProperty(NAME));
{code}

                
> Improve logging messages during startup to better identify core
> ---------------------------------------------------------------
>
>                 Key: SOLR-4760
>                 URL: https://issues.apache.org/jira/browse/SOLR-4760
>             Project: Solr
>          Issue Type: Wish
>          Components: Schema and Analysis
>    Affects Versions: 4.3
>            Reporter: Alexandre Rafalovitch
>            Priority: Minor
>             Fix For: 5.0, 4.4, 4.3.1
>
>         Attachments: SOLR-4760.patch, SOLR-4760.patch
>
>
> Some log messages could be more informative. For example:
> {code}
> 680 [coreLoadExecutor-3-thread-3] WARN org.apache.solr.schema.IndexSchema  – 
> schema has no name!
> {code}
> Would be _very nice_ to know which core this is complaining about.
> Later, once the core is loaded, the core name shows up in the logs,
> but it would be nice to have it earlier without having to
> triangulating it through 'Loading core' messages.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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