On 1/27/2019 1:17 AM, girish wrote:
I have been facing the below issue since yesterday, I get this error when
starting spring boot application using version 2.1.1 release and apache
solr-common 1.3.0. If anyone else has faced this issue please help me out.

I've never heard of a "solr-common" library ... and even if this project did at one point make such a thing, 1.3.0 would be incredibly out of date. Version 1.3.0 of Solr was released over ten years ago. If you're seeing that library in a reasonably modern code project, I suspect it did not come from the Solr project.

Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'solrTemplate' defined in class path resource
[com/myapp/config/SolrConfig.class]: Invocation of init method failed;
nested exception is java.lang.VerifyError: Bad type on operand stack
Exception Details:
   Location:
org/springframework/data/solr/core/convert/MappingSolrConverter.lambda$write$1(Lorg/springframework/data/mapping/PersistentPropertyAccessor;Lorg/apache/solr/common/SolrDocumentBase;Lorg/springframework/data/solr/core/mapping/SolrPersistentProperty;)V

This looks like a problem that you'll need to discuss with Spring. They wrap SolrJ in their own library, one they call spring-data-solr. There can be some very strange problems when trying to use SolrJ with Spring.

Thanks,
Shawn

Reply via email to