lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario-Leander Reimer <mario-leander.rei...@qaware.de>
Subject NPE Exception when adding documents without UUID
Date Sat, 01 Dec 2012 21:10:37 GMT
Hi Solr users,



when adding documents with SolrJ using the BinaryRequestWriter I get NPEs
(see attached stacktrace). The documents I add do not have the unique key
field initialized, but the schema declares this field as <field name="Id"
type="uuid"  default="NEW" indexed="true" />.

This issues seems to be related to
https://issues.apache.org/jira/browse/SOLR-2615 This does not happen when I
use the “normal” XML based request writer. I am using Solr 3.6.1.



Any suggestions how I can work around this?



Thanks for your help,

Leander



-----------------------------



[#|2012-11-30T19:34:49.763+0100|SEVERE|sun-appserver2.1|org.apache.solr.handler.XmlUpdateRequestHandler|_ThreadID=39;_ThreadName=httpSSLWorkerThread-8080-9;_RequestID=6708df5d-c255-4c52-b89f-4706d95f0598;|Exception
while processing update request

java.lang.NullPointerException

        at
org.apache.solr.update.AddUpdateCommand.getPrintableId(AddUpdateCommand.java:102)

        at
org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:109)

        at
org.apache.solr.handler.BinaryUpdateRequestHandler$2.update(BinaryUpdateRequestHandler.java:89)

        at
org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$2.readOuterMostDocIterator(JavaBinUpdateRequestCodec.java:140)

        at
org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$2.readIterator(JavaBinUpdateRequestCodec.java:129)

        at
org.apache.solr.common.util.JavaBinCodec.readVal(JavaBinCodec.java:211)

        at
org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$2.readNamedList(JavaBinUpdateRequestCodec.java:114)

        at
org.apache.solr.common.util.JavaBinCodec.readVal(JavaBinCodec.java:176)

        at
org.apache.solr.common.util.JavaBinCodec.unmarshal(JavaBinCodec.java:102)

        at
org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec.unmarshal(JavaBinUpdateRequestCodec.java:150)

        at
org.apache.solr.handler.BinaryUpdateRequestHandler.parseAndLoadDocs(BinaryUpdateRequestHandler.java:99)

        at
org.apache.solr.handler.BinaryUpdateRequestHandler.access$000(BinaryUpdateRequestHandler.java:46)

        at
org.apache.solr.handler.BinaryUpdateRequestHandler$1.load(BinaryUpdateRequestHandler.java:57)

        at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58)

        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)

        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)


------------------------------

Mario-Leander Reimer
Softwarearchitekt

QAware GmbH
Aschauer Str. 32
81549 München, Germany
Tel +49 89 6008871-21
Mobil +49 151 61314748
Fax +49 89 6008871-29
mario-leander.reimer@qaware.de
www.qaware.de
------------------------------

Geschäftsführer: Christian Kamm, Bernd Schlüter, Johannes Weigend, Josef
Adersberger
Registergericht: München
Handelsregisternummer: HRB 163761

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message