: I am getting the following error from Solr when my application is deployed : on Tomcat on Redhat, but everything works well on Tomcat on XP. Can anyone : point me in a direction of the cause?
FYI: leting us know what action you were performing when an error is triggered is helpful. based on my reading of the stack trace, you are "updating" a document and the problem is that the document you are sending to the Solr server does not have a uniqueKey field in it. there is some error checking in UpdateHandler.getIndexedId(Document) that is suppose to check for this and throw a more useful error message ("Document is missing uniqueKey field " + idField.getName()) ... but based on your stack trace it looks like there's an NPE before that check (doc.getField probably returning null) Can you double check that you have a value for your uniqueKey field in the document you are trying to add ... if that really is the cause of hte problem, then it would be great it you could file a bug to improve the error handling/reporting. -Hoss