You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2009/11/14 02:09:39 UTC

[jira] Created: (SOLR-1563) NPE's occur in various situations related to FIeldable.stringValue when upgrading from 1.3 to 1.4

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.


[jira] Resolved: (SOLR-1563) binary fields caused a null pointer exception in the luke request handler

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley resolved SOLR-1563.
--------------------------------

    Resolution: Fixed

committed.

> binary fields caused a null pointer exception in the luke request handler
> -------------------------------------------------------------------------
>
>                 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
>             Fix For: 1.5
>
>         Attachments: SOLR-1563.patch
>
>
> 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.


[jira] Commented: (SOLR-1563) NPE's occur in various situations related to FIeldable.stringValue when upgrading from 1.3 to 1.4

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777786#action_12777786 ] 

Hoss Man commented on SOLR-1563:
--------------------------------

Second anecdotal exception reported by Solr Trey, also while using luke to look at a specific document id.  no details about schema...

{noformat}
HTTP Status 500 - null java.lang.NullPointerException at
org.apache.lucene.index.Term.compareTo(Term.java:119) at
org.apache.lucene.index.TermInfosReader.getIndexOffset(TermInfosReader.java:160)
at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:231) at
org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:179) at
org.apache.lucene.index.SegmentReader.docFreq(SegmentReader.java:975) at
org.apache.lucene.index.DirectoryReader.docFreq(DirectoryReader.java:627) at
org.apache.solr.search.SolrIndexReader.docFreq(SolrIndexReader.java:308) at
org.apache.solr.handler.admin.LukeRequestHandler.getDocumentFieldsInfo(LukeRequestHandler.java:248)
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) at
{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.


[jira] Commented: (SOLR-1563) NPE's occur in various situations related to FIeldable.stringValue when upgrading from 1.3 to 1.4

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777792#action_12777792 ] 

Hoss Man commented on SOLR-1563:
--------------------------------

In all of the stack traces listed above, the NPE seems to be orriginating from an attempt to derefrence a string value that was returned by Fieldable.stringValue higher up in the call stack.

Given the number of different code paths involved (some of which haven't changed from Solr 1.3 to Solr 1.4) I can't help but think something changed deep in lucene to cause null to be returned in cases where it wasn't returned in older versions of Lucene.  So far i haven't been able to figure out where.

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


[jira] Issue Comment Edited: (SOLR-1563) binary fields caused a null pointer exception in the luke request handler

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777790#action_12777790 ] 

Hoss Man edited comment on SOLR-1563 at 11/23/09 6:27 PM:
----------------------------------------------------------


I've deleted this comment, because the error case it describes is based on a completley faulty testing method ... i wasn't paying close enough attention to what data dir was getting used.

      was (Author: hossman):
    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}




  
> binary fields caused a null pointer exception in the luke request handler
> -------------------------------------------------------------------------
>
>                 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
>             Fix For: 1.5
>
>         Attachments: SOLR-1563.patch
>
>
> 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.


Re: [jira] Commented: (SOLR-1563) NPE's occur in various situations related to FIeldable.stringValue when upgrading from 1.3 to 1.4

Posted by Chris Hostetter <ho...@fucit.org>.
Am i seriously the only person who can reproduce this so easily when 
upgrading from 1.3 to 1.4? 

It seems like it should be a serious bug biting lots of people in the ass.

: Date: Mon, 16 Nov 2009 12:21:38 -0800 (PST)
: From: Chris Hostetter <ho...@fucit.org>
: Reply-To: solr-dev@lucene.apache.org
: To: solr-dev@lucene.apache.org
: Subject: Re: [jira] Commented: (SOLR-1563) NPE's occur in various situations
:     related to FIeldable.stringValue when upgrading from 1.3 to 1.4
: 
: 
: 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
: 



-Hoss


Re: [jira] Commented: (SOLR-1563) NPE's occur in various situations related to FIeldable.stringValue when upgrading from 1.3 to 1.4

Posted by Chris Hostetter <ho...@fucit.org>.
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


[jira] Commented: (SOLR-1563) NPE's occur in various situations related to FIeldable.stringValue when upgrading from 1.3 to 1.4

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (SOLR-1563) binary fields caused a null pointer exception in the luke request handler

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley updated SOLR-1563:
-------------------------------

    Fix Version/s: 1.5
          Summary: binary fields caused a null pointer exception in the luke request handler  (was: NPE's occur in various situations related to FIeldable.stringValue when upgrading from 1.3 to 1.4)

> binary fields caused a null pointer exception in the luke request handler
> -------------------------------------------------------------------------
>
>                 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
>             Fix For: 1.5
>
>         Attachments: SOLR-1563.patch
>
>
> 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.


[jira] Updated: (SOLR-1563) NPE's occur in various situations related to FIeldable.stringValue when upgrading from 1.3 to 1.4

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley updated SOLR-1563:
-------------------------------

    Attachment: SOLR-1563.patch

Attaching patch that fixes luke, and adds support for binary fields.


> 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
>             Fix For: 1.5
>
>         Attachments: SOLR-1563.patch
>
>
> 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.


[jira] Commented: (SOLR-1563) NPE's occur in various situations related to FIeldable.stringValue when upgrading from 1.3 to 1.4

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777785#action_12777785 ] 

Hoss Man commented on SOLR-1563:
--------------------------------


First anecdotal NPE stack trace reported by Jake Brownell when using LukeRequestHandler to look at a specific document id when using 1.4.  No details about schema provided../

{noformat}
/admin/luke?id=1

1. java.lang.NullPointerException
2.         at org.apache.lucene.index.TermBuffer.set(TermBuffer.java:95)
3.         at org.apache.lucene.index.SegmentTermEnum.scanTo(SegmentTermEnum.java:158)
4.         at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:232)
5.         at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:179)
6.         at org.apache.lucene.index.SegmentReader.docFreq(SegmentReader.java:975)
7.         at org.apache.lucene.index.DirectoryReader.docFreq(DirectoryReader.java:627)
8.         at org.apache.solr.search.SolrIndexReader.docFreq(SolrIndexReader.java:308)
9.         at org.apache.solr.handler.admin.LukeRequestHandler.getDocumentFieldsInfo(LukeRequestHandler.java:248)
10.        at org.apache.solr.handler.admin.LukeRequestHandler.handleRequestBody(LukeRequestHandler.java:124)
11.        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
12.        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.


[jira] Commented: (SOLR-1563) NPE's occur in various situations related to FIeldable.stringValue when upgrading from 1.3 to 1.4

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777788#action_12777788 ] 

Hoss Man commented on SOLR-1563:
--------------------------------

The following stack trace was generated using Solr 1.4, and the "example" configs provided with Solr 1.4.

Steps to reproduce...
# cd example && java -jar start.jar
# cd example/exampledocs && java -jar post.jar  *.xml
# open in browser: http://localhost:8983/solr/select/?q=SP2514N (this works fine)
# open in browser: http://localhost:8983/solr/admin/luke?id=SP2514N (this fails with stack trace below)

{noformat}
java.lang.NullPointerException
	at org.apache.lucene.index.TermBuffer.set(TermBuffer.java:95)
	at org.apache.lucene.index.SegmentTermEnum.scanTo(SegmentTermEnum.java:158)
	at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:232)
	at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:179)
	at org.apache.lucene.index.SegmentReader.docFreq(SegmentReader.java:975)
	at org.apache.lucene.index.DirectoryReader.docFreq(DirectoryReader.java:627)
	at org.apache.solr.search.SolrIndexReader.docFreq(SolrIndexReader.java:308)
	at org.apache.solr.handler.admin.LukeRequestHandler.getDocumentFieldsInfo(LukeRequestHandler.java:248)
	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.