lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ankur.168" <ankur.15...@gmail.com>
Subject Re: Getting error while excuting full import
Date Tue, 18 Apr 2017 09:24:42 GMT
Hi Mikhail,

Thanks for replying,

I am currently trying to use zipper join but getting null pointer exception
as given below stacktrace

2017-04-18 09:11:51.154 INFO  (qtp1348949648-13) [   x:sample_content]
o.a.s.u.p.LogUpdateProcessorFactory [sample_content]  webapp=/solr
path=/dataimport
params={debug=true&indent=on&commit=true&start=0&clean=true&rows=10&command=full-import&verbose=false&core=sample_content&optimize=false&name=dataimport&wt=json&_=1492506703156}{deleteByQuery=*:*
(-1565006716610805760)} 0 615
2017-04-18 09:11:51.173 ERROR (qtp1348949648-13) [   x:sample_content]
o.a.s.h.d.DataImporter Full Import failed:java.lang.RuntimeException:
java.lang.RuntimeException:
org.apache.solr.handler.dataimport.DataImportHandlerException:
java.lang.NullPointerException
	at
org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:270)
	at
org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:416)
	at
org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:475)
	at
org.apache.solr.handler.dataimport.DataImportHandler.handleRequestBody(DataImportHandler.java:180)
	at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:166)
	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2306)
	at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:658)
	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:464)
	at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345)
	at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:296)
	at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1691)
	at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
	at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
	at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
	at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
	at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
	at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
	at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
	at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
	at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
	at org.eclipse.jetty.server.Server.handle(Server.java:534)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
	at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
	at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
	at
org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
	at
org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
	at
org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
	at
org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
	at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
	at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException:
org.apache.solr.handler.dataimport.DataImportHandlerException:
java.lang.NullPointerException
	at
org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:416)
	at
org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:329)
	at
org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:232)
	... 34 more
Caused by: org.apache.solr.handler.dataimport.DataImportHandlerException:
java.lang.NullPointerException
	at
org.apache.solr.handler.dataimport.DataImportHandlerException.wrapAndThrow(DataImportHandlerException.java:61)
	at
org.apache.solr.handler.dataimport.EntityProcessorWrapper.nextRow(EntityProcessorWrapper.java:247)
	at
org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:475)
	at
org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:516)
	at
org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:414)
	... 36 more
Caused by: java.lang.NullPointerException
	at
org.apache.solr.handler.dataimport.Zipper.supplyNextChild(Zipper.java:73)
	at
org.apache.solr.handler.dataimport.EntityProcessorBase.getNext(EntityProcessorBase.java:127)
	at
org.apache.solr.handler.dataimport.SqlEntityProcessor.nextRow(SqlEntityProcessor.java:75)
	at
org.apache.solr.handler.dataimport.EntityProcessorWrapper.nextRow(EntityProcessorWrapper.java:244)
	... 39 more

here is my data-config file entry

<document name="sampleProperties">
	<entity name="propertiesList" processor="SqlEntityProcessor" query="SELECT
PROPERTY_ID FROM property order by PROPERTY_ID">
		
		<field column="PROPERTY_ID" name="propertyId" />

		<entity name="description" processor="SqlEntityProcessor"
transformer="TemplateTransformer" where="pt.TEXT_ID = t.text_id AND
pt.PROPERTY_ID = '${propertiesList.PROPERTY_ID}' AND t.text_id in (SELECT
TEXT_ID FROM TEXT) AND pt.DIST_CHANNEL_ID = 'X' AND pt.TEXT_TYPE != 'ACCOM'
AND t.TEXT_TYPE != 'ACCOM'" query="SELECT pt.text_format_id, t.text_id,
pt.TEXT FROM property_text pt, text t ORDER BY pt.PROPERTY_id"
join="zipper">	
			<field column="TEXT_ID" name="textId" />
			<field column="TEXT" name="freeText" />
			<field column="custom_type" name="customType"
template="shortDescription"/>
		</entity>
	</entity>
</document>



--
View this message in context: http://lucene.472066.n3.nabble.com/Getting-error-while-excuting-full-import-tp4329153p4330458.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message