I tried looking at this again this morning and i still can't make sense of it ... i tried writting a simple unit test for Lucene-Java that would iterate over the fields from the index produced by the SOlr 1.3 example and call stringValue() on all of them -- it never returned null in 1.4.1 and 2.9.1.
So WTF is going on? ... the basic test i described below seems like a really common, simplistic, upgrade path that fails hard. why aren't we seeing more people running into this problem? am i totally smoking crack? ... can anyone else reporduce this as easily as me... : [ https://issues.apache.org/jira/browse/SOLR-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777790#action_12777790 ] : : Hoss Man commented on SOLR-1563: : -------------------------------- : : These stack traces demonstrate similar NPE exceptions when attempting to upgrade from 1.3 to 1.4 using the example schema provided in 1.3... : : steps to reproduce... : * using 1.3... : *# cd example && java -jar start.jar : *# cd example/exampledocs && java -jar post.jar *.xml : *# note these urls work and return meaningful data... : *#* http://localhost:8983/solr/select/?q=SP2514N : *#* http://localhost:8983/solr/admin/luke?id=SP2514N : *# shutdown the 1.3 port : * using solr 1.4, point it at your 1.3 example solr home dir... : *# cd example && java -Dsolr.solr.home=../../1.3_solr/example/solr/ -jar start.jar : *# note that solr starts cleanly with no errors : *# verify that this URL displays the solr home you expect, in the 1.3 example directory... : *#* http://localhost:8983/solr/admin/ : *# note that these URLs fail with the errors listed below... : *#* http://localhost:8983/solr/select/?q=SP2514N : *#* http://localhost:8983/solr/admin/luke?id=SP2514N : : {noformat} : http://localhost:8983/solr/select/?q=SP2514N : : java.lang.NullPointerException : at org.apache.solr.schema.SortableIntField.write(SortableIntField.java:72) : 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) : {noformat} : : {noformat} : http://localhost:8983/solr/admin/luke?id=SP2514N : : java.lang.NullPointerException : at org.apache.solr.util.NumberUtils.SortableStr2int(NumberUtils.java:127) : at org.apache.solr.util.NumberUtils.SortableStr2float(NumberUtils.java:83) : at org.apache.solr.util.NumberUtils.SortableStr2floatStr(NumberUtils.java:89) : at org.apache.solr.schema.SortableFloatField.indexedToReadable(SortableFloatField.java:62) : at org.apache.solr.schema.SortableFloatField.toExternal(SortableFloatField.java:53) : at org.apache.solr.handler.admin.LukeRequestHandler.getDocumentFieldsInfo(LukeRequestHandler.java:245) : at org.apache.solr.handler.admin.LukeRequestHandler.handleRequestBody(LukeRequestHandler.java:124) : at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) : at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) : {noformat} -Hoss