Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.0.0.APACHE-GEODE-INCUBATING-RELEASE
-
Fix Version/s: 1.0.0.APACHE-GEODE-INCUBATING-RELEASE
-
Environment:Spring Data (GemFire / Geode) + Pivotal GemFire | Apache Geode
-
Sprint:Kay M1
Description
From user:
With Spring Data Geode 1.0.0.APACHE-GEODE-INCUBATING-M3 as well as 1.0.0.INCUBATING=RELEASE releases, I found that whenever you specify locators property on CacheServerApplication annotation (also applies to PeerCacheApplication), it gives a problem due to recursive calls bug in AbstractCacheConfiguration class.
class AbstractCacheConfiguration { setLocators(Integer mcastPort) { this.mcastPort = mcastPort; setMcastPort(DEFAULT_MCAST_PORT); } ... setMcastPort(String locators) { this.locators = locators; setLocators(DEFAULT_LOCATORS); } }
Example:
@SpringBootApplication @CacheServerApplication(autoStartup=true, locators="localhost[9001]") public class MyCacheServiceMain { // Main method as trivial }
But with that it gives, Stackoverflow error...
at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setLocators(AbstractCacheConfiguration.java:685) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na] at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setMcastPort(AbstractCacheConfiguration.java:712) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na] at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setLocators(AbstractCacheConfiguration.java:685) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na] at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setMcastPort(AbstractCacheConfiguration.java:712) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na] at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setLocators(AbstractCacheConfiguration.java:685) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na] at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setMcastPort(AbstractCacheConfiguration.java:712) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na]at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setLocators(AbstractCacheConfiguration.java:685) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na] at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setMcastPort(AbstractCacheConfiguration.java:712) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na]