From cad2882f759ad5e9a2b6de443aad0ac7c901c8a7 Mon Sep 17 00:00:00 2001 From: John Blum Date: Sun, 5 May 2019 17:07:54 -0700 Subject: [PATCH] Add @EnableLocator annotation to the GemFireServerConfiguration class to avoid the IllegalStateException thrown by Apache Geode when registering interests and no Locators are configured and mcast-port is set to 0. --- ...tClientServerHttpSessionAccessIntegrationTests.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/spring-session-data-geode/src/integration-test/java/org/springframework/session/data/gemfire/MultiThreadedHighlyConcurrentClientServerHttpSessionAccessIntegrationTests.java b/spring-session-data-geode/src/integration-test/java/org/springframework/session/data/gemfire/MultiThreadedHighlyConcurrentClientServerHttpSessionAccessIntegrationTests.java index 48057d5..dcc4528 100644 --- a/spring-session-data-geode/src/integration-test/java/org/springframework/session/data/gemfire/MultiThreadedHighlyConcurrentClientServerHttpSessionAccessIntegrationTests.java +++ b/spring-session-data-geode/src/integration-test/java/org/springframework/session/data/gemfire/MultiThreadedHighlyConcurrentClientServerHttpSessionAccessIntegrationTests.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.springframework.session.data.gemfire; import static org.assertj.core.api.Assertions.assertThat; @@ -40,18 +39,17 @@ import java.util.concurrent.Future; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.client.ClientRegionShortcut; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; - -import org.apache.geode.cache.DataPolicy; -import org.apache.geode.cache.client.ClientRegionShortcut; - import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.data.gemfire.config.annotation.CacheServerApplication; import org.springframework.data.gemfire.config.annotation.ClientCacheApplication; +import org.springframework.data.gemfire.config.annotation.EnableLocator; import org.springframework.data.gemfire.tests.util.IdentityHashCodeComparator; import org.springframework.session.Session; import org.springframework.session.data.gemfire.config.annotation.web.http.EnableGemFireHttpSession; @@ -351,7 +349,7 @@ public class MultiThreadedHighlyConcurrentClientServerHttpSessionAccessIntegrati name = "MultiThreadedHighlyConcurrentClientServerHttpSessionAccessIntegrationTests", logLevel = GEMFIRE_LOG_LEVEL ) - //@EnableLogging(logFile = "gemfire.log", logLevel = "debug") + @EnableLocator @EnableGemFireHttpSession( regionName = "Sessions", sessionSerializerBeanName = "spyingSessionSerializer"