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





> NPE's occur in various situations related to FIeldable.stringValue when 
> upgrading from 1.3 to 1.4
> -------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1563
>                 URL: https://issues.apache.org/jira/browse/SOLR-1563
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Hoss Man
>            Priority: Critical
>
> Multiple reports of NPEs when using Solr 1.4 - so far these all seem to 
> relate to getting a null returned by Fieldable.stringValue when it isn't 
> expected or accounted for.  Thread where this was initially discussed...
> http://old.nabble.com/NPE-when-trying-to-view-a-specific-document-via-Luke-to26330237.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to