[jira] Created: (SOLR-2142) Faceting exception

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SOLR-2142) Faceting exception

JIRA jira@apache.org
Faceting exception
------------------

                 Key: SOLR-2142
                 URL: https://issues.apache.org/jira/browse/SOLR-2142
             Project: Solr
          Issue Type: Bug
          Components: search
    Affects Versions: 4.0
            Reporter: Erik Hatcher
            Priority: Critical


Reported second hand, here's the crash:

{'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
java.lang.NullPointerException
at java.lang.System.arraycopy(Native Method)
at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
'],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2142) Faceting exception

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SOLR-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921169#action_12921169 ]

Fuad Efendi commented on SOLR-2142:
-----------------------------------

I have the same problem; recent trunk version, faceting for multivalued field of type "string" (non-tokenized)
No problems for single-valued fields

> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2142) Faceting exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SOLR-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921181#action_12921181 ]

Yonik Seeley commented on SOLR-2142:
------------------------------------

Any clues for reproducing this?  I haven't been able to myself.

> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2142) Faceting exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SOLR-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921183#action_12921183 ]

Fuad Efendi commented on SOLR-2142:
-----------------------------------

Here is the failing test:

import java.io.IOException;

import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.PagedBytes;

public class TestBytesRef {

        public static void main(String[] args) throws IOException {

                PagedBytes bytes = new PagedBytes(15);
                BytesRef br = new BytesRef("");
                BytesRef out = new BytesRef();
                bytes.copy(br, out);

        }

}


Exception in thread "main" java.lang.NullPointerException
        at java.lang.System.arraycopy(Native Method)
        at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
        at TestBytesRef.main(TestBytesRef.java:16)


> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (SOLR-2142) Faceting exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SOLR-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921183#action_12921183 ]

Fuad Efendi edited comment on SOLR-2142 at 10/14/10 8:07 PM:
-------------------------------------------------------------

Here is the failing test:

{code}
import java.io.IOException;

import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.PagedBytes;

public class TestBytesRef {

        public static void main(String[] args) throws IOException {

                PagedBytes bytes = new PagedBytes(15);
                BytesRef br = new BytesRef("");
                BytesRef out = new BytesRef();
                bytes.copy(br, out);

        }

}


Exception in thread "main" java.lang.NullPointerException
        at java.lang.System.arraycopy(Native Method)
        at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
        at TestBytesRef.main(TestBytesRef.java:16)
{code}

      was (Author: funtick):
    Here is the failing test:

import java.io.IOException;

import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.PagedBytes;

public class TestBytesRef {

        public static void main(String[] args) throws IOException {

                PagedBytes bytes = new PagedBytes(15);
                BytesRef br = new BytesRef("");
                BytesRef out = new BytesRef();
                bytes.copy(br, out);

        }

}


Exception in thread "main" java.lang.NullPointerException
        at java.lang.System.arraycopy(Native Method)
        at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
        at TestBytesRef.main(TestBytesRef.java:16)

 

> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2142) Faceting exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SOLR-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921187#action_12921187 ]

Fuad Efendi commented on SOLR-2142:
-----------------------------------

Related code:

We probably need
{code}
        if (br != null && br.length!=0 && (pos & intervalMask)==0) {
{code}

UnInvertedField.java, lines 1162-1175

{code}
      protected BytesRef setTerm() throws IOException {
        BytesRef br = super.setTerm();
        if (br != null && (pos & intervalMask)==0) {
          sizeOfStrings += br.length;
          if (lst==null) {
            lst = new ArrayList<BytesRef>();
            bytes = new PagedBytes(15);
          }
          BytesRef out = new BytesRef();
          bytes.copy(br, out);
          lst.add(out);
        }
        return br;
      }
{code}

> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2142) Faceting exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SOLR-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921195#action_12921195 ]

Fuad Efendi commented on SOLR-2142:
-----------------------------------

Index contains terms with zero length.
Probaly SOLR should prevent adding not-null empty fields (zero-length strings)...

I am using DataImportHandler, and SQL to import data from a database. I verified some tables: instead of NULL they contain empty strings (which are considered as Terms with size=0).


bq. {code} if (br != null && br.length!=0 && (pos & intervalMask)==0) { {code}
- it won't really fix anything; it will cause another types of  exceptions:
{code}
SEVERE: Exception during facet.field of BusinessKeywords:java.lang.NullPointerException
        at org.apache.solr.util.ByteUtils.UTF8toUTF16(ByteUtils.java:70)
        at org.apache.solr.schema.FieldType.indexedToReadable(FieldType.java:356)
        at org.apache.solr.request.UnInvertedField.getReadableValue(UnInvertedField.java:868)
        at org.apache.solr.request.UnInvertedField.getCounts(UnInvertedField.java:648)
        at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:299)
        at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
        at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
        at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:231)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1325)
{code}




> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-2142) Faceting exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Yonik Seeley updated SOLR-2142:
-------------------------------

    Attachment: SOLR-2142.patch

Here's an addition to SimpleFacetsTest that fails, and a patch to PagedBytes to fix.


> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>         Attachments: SOLR-2142.patch
>
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (SOLR-2142) Faceting exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Yonik Seeley resolved SOLR-2142.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0

Committed.
This was not an issue in any released version of solr.

> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>             Fix For: 4.0
>
>         Attachments: SOLR-2142.patch
>
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-2142) Faceting exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Pradeep Singh updated SOLR-2142:
--------------------------------

    Attachment: solr-home.zip

The issue continues be there. I am not being able to reproduce it in a test case but I am attaching a solr-home with an index of 4 documents.

Query that prints exception -
http://localhost:8080/solr/user/?q=&facet=true&facet.method=fc&facet.field=roles&fl=*

No problems with this query -
http://localhost:8080/solr/user/?q=&facet=true&facet.method=enum&facet.field=roles&fl=*

Dcument with id 103 is the problem indexed with an empty string in the field used for faceting. Facet type enum works but fc throws exception. After you delete the document with id 103, commit and optimize it, both types of faceting work.

Thanks.

> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>             Fix For: 4.0
>
>         Attachments: SOLR-2142.patch, solr-home.zip
>
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2142) Faceting exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SOLR-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927586#action_12927586 ]

Yonik Seeley commented on SOLR-2142:
------------------------------------

Pradeep, I just tried trunk with your solr home, and things work as expected (i.e. I can't reproduce).
Make sure you're running on the latest version of trunk, and that your app server doesn't have a cache of the old exploded solr war somewhere.


> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>             Fix For: 4.0
>
>         Attachments: SOLR-2142.patch, solr-home.zip
>
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-2142) Faceting exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Pradeep Singh updated SOLR-2142:
--------------------------------

    Attachment:     (was: solr-home.zip)

> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>             Fix For: 4.0
>
>         Attachments: SOLR-2142.patch
>
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2142) Faceting exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SOLR-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928067#action_12928067 ]

Pradeep Singh commented on SOLR-2142:
-------------------------------------

Yonik, thanks a lot for your quick response. I rebuilt with the latest trunk version and everything works as expected. I have deleted the zip file I had attached because it serves no purpose now.

> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>             Fix For: 4.0
>
>         Attachments: SOLR-2142.patch
>
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (SOLR-2142) Faceting exception

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SOLR-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927577#action_12927577 ]

Pradeep Singh edited comment on SOLR-2142 at 11/3/10 7:55 PM:
--------------------------------------------------------------

A comment was posted here saying that the problem was still there. Upon rebuilding from trunk everything works.

      was (Author: pksinghus):
    The issue continues be there. I am not being able to reproduce it in a test case but I am attaching a solr-home with an index of 4 documents.

Query that prints exception -
http://localhost:8080/solr/user/?q=&facet=true&facet.method=fc&facet.field=roles&fl=*

No problems with this query -
http://localhost:8080/solr/user/?q=&facet=true&facet.method=enum&facet.field=roles&fl=*

Dcument with id 103 is the problem indexed with an empty string in the field used for faceting. Facet type enum works but fc throws exception. After you delete the document with id 103, commit and optimize it, both types of faceting work.

Thanks.
 

> Faceting exception
> ------------------
>
>                 Key: SOLR-2142
>                 URL: https://issues.apache.org/jira/browse/SOLR-2142
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Erik Hatcher
>            Priority: Critical
>             Fix For: 4.0
>
>         Attachments: SOLR-2142.patch
>
>
> Reported second hand, here's the crash:
> {'responseHeader'=>{'status'=>0,'QTime'=>3,'params'=>{'facet.field'=>'dc.subject','wt'=>'ruby','rows'=>'0'}},'response'=>{'numFound'=>3183,'start'=>0,'maxScore'=>1.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'exception'=>['Exception during facet.field of dc.subject
> java.lang.NullPointerException
> at java.lang.System.arraycopy(Native Method)
> at org.apache.lucene.util.PagedBytes.copy(PagedBytes.java:247)
> at org.apache.solr.request.TermIndex$1.setTerm(UnInvertedField.java:1171)
> at org.apache.solr.request.NumberedTermsEnum.<init>(UnInvertedField.java:962)
> at org.apache.solr.request.TermIndex$1.<init>(UnInvertedField.java:1158)
> at org.apache.solr.request.TermIndex.getEnumerator(UnInvertedField.java:1158)
> at org.apache.solr.request.UnInvertedField.uninvert(UnInvertedField.java:204)
> at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:188)
> at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:913)
> at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:298)
> at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:354)
> at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:190)
> at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:72)
> at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:210)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1324)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> '],'facet_fields'=>{},'facet_dates'=>{},'facet_ranges'=>{}}}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]