[Geoserver-devel] [JIRA] (GEOS-9183) Unresolvable Spring circular reference on Solr module

Fernando Miño created an issue

GeoServer / BugGEOS-9183

Unresolvable Spring circular reference on Solr module

Issue Type:

BugBug

Assignee:

Fernando Miño

Components:

SOLR

Created:

13/Apr/19 5:06 PM

Priority:

MediumMedium

Reporter:

Fernando Miño

This issue is reproduced following steps:

  • Creating an app-schema layer with solr index.
  • Delete Default style xml element from related layer.xml file.
  • Restart geoserver.

On Geoserver startup, it will try to load the layer for generating default style, but we’ll get this exception:

2019-02-07 15:03:39,673 DEBUG [geoserver.catalog] -
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrFeatureTypeCallback' defined in URL [jar:file:/applications/tomcat-instances/vmtg79.brgm.fr/webapps/geoserver/WEB-INF/lib/gs-web-solr-2.14-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean 'catalog' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'localWorkspaceCatalog': Requested bean is currently in creation: Is there an unresolvable circular reference?

Looking into the code seems like solrFeatureTypeCallback bean has ‘catalog’ bean as constructor dependency and some business logic in constructor.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100099-sha1:3b16a22)

Atlassian logo