lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Han Hui Wen (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-2680) NullPointerException when doing a delta-import and no pk is specified on sub-entity
Date Wed, 14 Dec 2011 02:34:30 GMT

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

Han Hui Wen  commented on SOLR-2680:
------------------------------------

Hi,Dan

My sub table has a composite PK,it seems that it can not work
                
> NullPointerException when doing a delta-import and no pk is specified on sub-entity
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-2680
>                 URL: https://issues.apache.org/jira/browse/SOLR-2680
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 4.0
>            Reporter: Daniel Rijkhof
>              Labels: dataimport, dih
>
> my working sub element:
> {code:xml} 
> <entity name="jobexperience" 
> 	pk="ID"
> 	query="select * from jobexperience je where je.PROFESSIONAL_ID = '${user.USERID_FT}'"
> 	deltaQuery="select je.ID as ID from jobexperience je where je.LASTMODIFIEDDATE >
'${dataimporter.last_index_time}'"
> 	parentDeltaQuery="select je.PROFESSIONAL_ID as ID from jobexperience je where je.ID=${jobexperience.ID}"

> />
> {code}
> my failing sub element (resulting in NullPointerException):
> {code:xml} 
> <entity name="jobexperience"
> 	query="select * from jobexperience je where je.PROFESSIONAL_ID = '${user.USERID_FT}'"
> 	deltaQuery="select je.ID as ID from jobexperience je where je.LASTMODIFIEDDATE >
'${dataimporter.last_index_time}'"
> 	parentDeltaQuery="select je.PROFESSIONAL_ID as ID from jobexperience je where je.ID=${jobexperience.ID}"

> />
> {code}
> Stacktrace:
> {code}
> SEVERE: Delta Import Failed
> java.lang.NullPointerException
> 	at org.apache.solr.handler.dataimport.DocBuilder.findMatchingPkColumn(DocBuilder.java:830)
> 	at org.apache.solr.handler.dataimport.DocBuilder.collectDelta(DocBuilder.java:891)
> 	at org.apache.solr.handler.dataimport.DocBuilder.collectDelta(DocBuilder.java:870)
> 	at org.apache.solr.handler.dataimport.DocBuilder.doDelta(DocBuilder.java:284)
> 	at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:178)
> 	at org.apache.solr.handler.dataimport.DataImporter.doDeltaImport(DataImporter.java:374)
> 	at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:413)
> 	at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:392)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message