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 "Nikhil Chhaochharia (JIRA)" <ji...@apache.org> on 2008/08/28 11:39:44 UTC
[jira] Created: (SOLR-734) NPE in SolrCore
NPE in SolrCore
---------------
Key: SOLR-734
URL: https://issues.apache.org/jira/browse/SOLR-734
Project: Solr
Issue Type: Bug
Affects Versions: 1.3
Reporter: Nikhil Chhaochharia
Fix For: 1.3
SolrCore.getStatistics() calls getCoreDescriptor().getCoreContainer().getCoreNames(this) without checking if the CoreDescriptor is null.
--
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-734) NPE in SolrCore
Posted by Henrib <hb...@gmail.com>.
No, it's not a bug.
Yes, the pb is solved.
Grant Ingersoll-6 wrote:
>
> So, is this a bug or not? It sounds like it was resolved, right?
>
> On Aug 28, 2008, at 8:31 AM, Henri Biestro (JIRA) wrote:
>
>>
>> [
>> https://issues.apache.org/jira/browse/SOLR-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626540
>> #action_12626540 ]
>>
>> Henri Biestro commented on SOLR-734:
>> ------------------------------------
>>
>> Seen the thread as
>> http://www.nabble.com/CoreDescriptor-explanation-and-possible-bug-to19197004.html
>>
>> Hava a look at the org.apache.solr.util.TestHarness initializer ,
>> that should be close to it.
>>
>>
>>> NPE in SolrCore
>>> ---------------
>>>
>>> Key: SOLR-734
>>> URL: https://issues.apache.org/jira/browse/SOLR-734
>>> Project: Solr
>>> Issue Type: Bug
>>> Affects Versions: 1.3
>>> Reporter: Nikhil Chhaochharia
>>> Fix For: 1.3
>>>
>>>
>>> SolrCore.getStatistics() calls
>>> getCoreDescriptor().getCoreContainer().getCoreNames(this) without
>>> checking if the CoreDescriptor is null.
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>
>
>
--
View this message in context: http://www.nabble.com/-jira--Created%3A-%28SOLR-734%29-NPE-in-SolrCore-tp19197298p19207987.html
Sent from the Solr - Dev mailing list archive at Nabble.com.
[jira] Commented: (SOLR-734) NPE in SolrCore
Posted by "Nikhil Chhaochharia (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626537#action_12626537 ]
Nikhil Chhaochharia commented on SOLR-734:
------------------------------------------
I have a SolrConfig object and an IndexSchema object. I was using them to create an instance of SolrCore. Passing null as CoreDescriptor was working atleast till the 14th-Aug nightly.
I want to get an instance of SolrCore and am slightly confused with the CoreDescriptor, CoreContainer etc. that have been recently introduced. The best thing for me would be a code snippet which shows how to create a SolrCore if I have a SolrConfig object and an IndexSchema object.
BTW, I had posted this issue on the mailing list also and it is being discussed there also.
> NPE in SolrCore
> ---------------
>
> Key: SOLR-734
> URL: https://issues.apache.org/jira/browse/SOLR-734
> Project: Solr
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: Nikhil Chhaochharia
> Fix For: 1.3
>
>
> SolrCore.getStatistics() calls getCoreDescriptor().getCoreContainer().getCoreNames(this) without checking if the CoreDescriptor is null.
--
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-734) NPE in SolrCore
Posted by Grant Ingersoll <gs...@apache.org>.
So, is this a bug or not? It sounds like it was resolved, right?
On Aug 28, 2008, at 8:31 AM, Henri Biestro (JIRA) wrote:
>
> [ https://issues.apache.org/jira/browse/SOLR-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626540
> #action_12626540 ]
>
> Henri Biestro commented on SOLR-734:
> ------------------------------------
>
> Seen the thread as http://www.nabble.com/CoreDescriptor-explanation-and-possible-bug-to19197004.html
>
> Hava a look at the org.apache.solr.util.TestHarness initializer ,
> that should be close to it.
>
>
>> NPE in SolrCore
>> ---------------
>>
>> Key: SOLR-734
>> URL: https://issues.apache.org/jira/browse/SOLR-734
>> Project: Solr
>> Issue Type: Bug
>> Affects Versions: 1.3
>> Reporter: Nikhil Chhaochharia
>> Fix For: 1.3
>>
>>
>> SolrCore.getStatistics() calls
>> getCoreDescriptor().getCoreContainer().getCoreNames(this) without
>> checking if the CoreDescriptor is null.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
[jira] Commented: (SOLR-734) NPE in SolrCore
Posted by "Henri Biestro (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626540#action_12626540 ]
Henri Biestro commented on SOLR-734:
------------------------------------
Seen the thread as http://www.nabble.com/CoreDescriptor-explanation-and-possible-bug-to19197004.html
Hava a look at the org.apache.solr.util.TestHarness initializer , that should be close to it.
> NPE in SolrCore
> ---------------
>
> Key: SOLR-734
> URL: https://issues.apache.org/jira/browse/SOLR-734
> Project: Solr
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: Nikhil Chhaochharia
> Fix For: 1.3
>
>
> SolrCore.getStatistics() calls getCoreDescriptor().getCoreContainer().getCoreNames(this) without checking if the CoreDescriptor is null.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SOLR-734) NPE in SolrCore
Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grant Ingersoll resolved SOLR-734.
----------------------------------
Resolution: Won't Fix
> NPE in SolrCore
> ---------------
>
> Key: SOLR-734
> URL: https://issues.apache.org/jira/browse/SOLR-734
> Project: Solr
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: Nikhil Chhaochharia
> Fix For: 1.3
>
>
> SolrCore.getStatistics() calls getCoreDescriptor().getCoreContainer().getCoreNames(this) without checking if the CoreDescriptor is null.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-734) NPE in SolrCore
Posted by "Henri Biestro (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626520#action_12626520 ]
Henri Biestro commented on SOLR-734:
------------------------------------
It should not be possible to build a SolrCore with a null CoreDescriptor (the ctor that explicitly passes a null should never be called).
Could you give a bit more of information on your case?
> NPE in SolrCore
> ---------------
>
> Key: SOLR-734
> URL: https://issues.apache.org/jira/browse/SOLR-734
> Project: Solr
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: Nikhil Chhaochharia
> Fix For: 1.3
>
>
> SolrCore.getStatistics() calls getCoreDescriptor().getCoreContainer().getCoreNames(this) without checking if the CoreDescriptor is null.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.