Hi Dharam-

Good catch and thank you for the feedback.  I am on it.

Cheers,
John


On Wed, Nov 9, 2016 at 2:59 AM, Dharam Thacker <dharamthacke...@gmail.com>
wrote:

> Hi John,
>
> I was trying with Spring data geode (1.0.0.APACHE-GEODE-INCUBATING-M3) as
> well as (1.0.0.APACHE-GEODE-INCUBATING) releases. I found that whenever
> you specify locators property on CacheServerApplication annotation, 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]
>
> Thanks & Regards,
> - Dharam Thacker
>



-- 
-John
503-504-8657
john.blum10101 (skype)

Reply via email to