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

James Dyer commented on SOLR-3478:
----------------------------------

Actually I think for 4.0 we should break backwards-compatibility with this one 
and require all DIH entities to have a name.  (In 3.6 and prior, it logs a 
warning and assigns a name based on the system clock.)  In SOLR-3422 I fixed 
any unit tests that didn't use "name" but missed the examples.
                
> DataImportHandler's Entity must have a name
> -------------------------------------------
>
>                 Key: SOLR-3478
>                 URL: https://issues.apache.org/jira/browse/SOLR-3478
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.0
>         Environment: r1341454, {code}java 
> -Dsolr.solr.home="./example-DIH/solr/" -jar start.jar{code}
>            Reporter: Stefan Matheis (steffkes)
>             Fix For: 4.0
>
>         Attachments: SOLR-3478.patch
>
>
> Using trunk and trying to start the {{example-DIH}} version, throws the 
> following Exception:
> {code}May 22, 2012 8:17:45 PM org.apache.solr.common.SolrException log
> SEVERE: null:org.apache.solr.common.SolrException
>   at org.apache.solr.core.SolrCore.<init>(SolrCore.java:614)
>   [...]
> Caused by: org.apache.solr.handler.dataimport.DataImportHandlerException: 
> Entity must have a name.
>   at org.apache.solr.handler.dataimport.config.Entity.<init>(Entity.java:54)
>   at 
> org.apache.solr.handler.dataimport.config.DIHConfiguration.<init>(DIHConfiguration.java:61)
>   at 
> org.apache.solr.handler.dataimport.DataImporter.readFromXml(DataImporter.java:249)
>   at 
> org.apache.solr.handler.dataimport.DataImporter.loadDataConfig(DataImporter.java:187)
>   ... 49 more{code}

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