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

Jan Høydahl closed SOLR-1903.
-----------------------------
    Resolution: Incomplete

Closing ancient issue which most probably has been fixed since 2010. If anyone 
encounters a real bug in this area in a recent version of Solr, feel free to 
open a new JIRA.

> Null pointer exception when you remove and old date field type and old data 
> still has field
> -------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1903
>                 URL: https://issues.apache.org/jira/browse/SOLR-1903
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.4
>         Environment: linux, windows server and windows 7
>            Reporter: Stephen Schwenker
>         Attachments: removedatefieldexception.patch
>
>
> We removed an old date field from our date search because it's not needed 
> anymore.  After which we started seeing these errors with old data in the 
> index that contained the field.  there are too many records to re-index right 
> now so I created this patch.  Also, here is the exception that was thrown.
> null java.lang.NullPointerException at 
> org.apache.solr.request.XMLWriter.writePrim(XMLWriter.java:761) at 
> org.apache.solr.request.XMLWriter.writeStr(XMLWriter.java:619) at 
> org.apache.solr.schema.TextField.write(TextField.java:45) at 
> org.apache.solr.schema.SchemaField.write(SchemaField.java:108) at 
> org.apache.solr.request.XMLWriter.writeDoc(XMLWriter.java:311) at 
> org.apache.solr.request.XMLWriter$3.writeDocs(XMLWriter.java:483) at 
> org.apache.solr.request.XMLWriter.writeDocuments(XMLWriter.java:420) at 
> org.apache.solr.request.XMLWriter.writeDocList(XMLWriter.java:457) at 
> org.apache.solr.request.XMLWriter.writeVal(XMLWriter.java:520) at 
> org.apache.solr.request.XMLWriter.writeResponse(XMLWriter.java:130) at 
> org.apache.solr.request.XMLResponseWriter.write(XMLResponseWriter.java:34) at 
> org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:325)
>  at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>  at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>  at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>  at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>  at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) 
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) 
> at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) 
> at java.lang.Thread.run(Unknown Source) 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to