lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cassandra Targett (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SOLR-4293) Solr throws an NPE when extracting update handled called with an empty document
Date Tue, 09 Jan 2018 21:45:00 GMT

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

Cassandra Targett resolved SOLR-4293.
-------------------------------------
    Resolution: Cannot Reproduce

I'm not sure this is a problem anymore, so resolving as Cannot Reproduce. I added an empty
CSV file with update/extract: 

{code}
curl http://localhost:8983/solr/gettingstarted/update/extract?commit=true -F "myfile=@empty.csv"
{code}

I did not see an NPE or any other type of error as the request response nor in the logs. Please
reopen if there are better reproduction steps available.

> Solr throws an NPE when extracting update handled called with an empty document
> -------------------------------------------------------------------------------
>
>                 Key: SOLR-4293
>                 URL: https://issues.apache.org/jira/browse/SOLR-4293
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Karl Wright
>         Attachments: SOLR-4293.patch
>
>
> When you send an empty document to update/extract, you get this:
> {code}
> SEVERE: java.lang.NullPointerException
> 	at org.apache.solr.handler.extraction.SolrContentHandler.addLiterals(SolrContentHandler.java:164)
> 	at org.apache.solr.handler.extraction.SolrContentHandler.newDocument(SolrContentHandler.java:115)
> 	at org.apache.solr.handler.extraction.ExtractingDocumentLoader.doAdd(ExtractingDocumentLoader.java:120)
> 	at org.apache.solr.handler.extraction.ExtractingDocumentLoader.addDoc(ExtractingDocumentLoader.java:126)
> 	at org.apache.solr.handler.extraction.ExtractingDocumentLoader.load(ExtractingDocumentLoader.java:228)
> 	at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)
> 	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
> 	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1699)
> 	at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:455)
> 	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:276)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
> 	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:383)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
> 	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> 	at java.lang.Thread.run(Thread.java:722)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message