cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ERROR [localhost-startStop-1] [DefaultSolrServerService] de.hybris.platform.solrserver.SolrServerException: Error while executing Solr start command for instance [name: default, hostname: localhost, port: 8983]

VinayKumarS
Active Contributor
0 Likes
3,336

On Linux box we are getting below error Hybris version 6.4 B2B is installed

 ERROR [localhost-startStop-1] [DefaultSolrServerService] de.hybris.platform.solrserver.SolrServerException: Error while executing Solr start command for instance [name: default, hostname: localhost, port: 8983]
 WARN  [localhost-startStop-1] [CloseAwareApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultSolrServerService' defined in class path resource [global-solrserver-spring.xml]: Invocation of init method failed; nested exception is de.hybris.platform.solrserver.SolrServerException: Error while executing Solr start command for instance [name: default, hostname: localhost, port: 8983]
 WARN  [localhost-startStop-1] [CloseAwareApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultSolrServerService' defined in class path resource [global-solrserver-spring.xml]: Invocation of init method failed; nested exception is de.hybris.platform.solrserver.SolrServerException: Error while executing Solr start command for instance [name: default, hostname: localhost, port: 8983]
 ERROR [localhost-startStop-1] [HybrisContextFactory] Error initializing global application context!
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultSolrServerService' defined in class path resource [global-solrserver-spring.xml]: Invocation of init method failed; nested exception is de.hybris.platform.solrserver.SolrServerException: Error while executing Solr start command for instance [name: default, hostname: localhost, port: 8983]
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
         at org.spri

Accepted Solutions (1)

Accepted Solutions (1)

VinayKumarS
Active Contributor
0 Likes

i have commented solr related extensions from localextensions.xml and then did the ant clean all.. set the JAVA_HOME path, added below properties

 solrserver.instances.default.autostart=false solrserver.instances.default.mode=standalone solrserver.instances.default.hostname=localhost solrserver.instances.default.port=8983 solrserver.instances.default.memory=512m
 
 

and then started the server..

svintha
Explorer
0 Likes

Hi if we are going to make solrserver.instances.default.autostart=false then solr server will not start by default and search functionality in site will not work . In this case how do we manually run the solr server .

svintha
Explorer
0 Likes

I am receiving the following error in my machine, Any help in resolving this error

ERROR [localhost-startStop-1] [DefaultSolrServerService] de.hybris.platform.solrserver.SolrServerException: Error while executing Solr start command for instance [name: default, hostname: localhost, port: 8983] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultSolrServerService' defined in class path resource [global-solrserver-spring.xml]

Former Member
0 Likes

I just posted a root cause analysis / more suitable workaround here:

https://answers.sap.com/answers/12803813/view.html

Answers (0)