Hi there Gabor,

I’ve done some digging.. And I really don’t know what version of SBDG or SDG 
you are using in your client.

In none of the supported versions is there any support for
`ClientCacheApplication(useHttp=true)`

Maybe you are looking for:

`EnableClusterConfiguration(useHttp=true)`

And in case you want to opt-out of using HTTPS

`EnableClusterConfiguration(useHttp=true, requireHttps=false)`

Please let me know what versions of the libraries you are using, so that we can 
try and help you further.

—Udo
On Sep 8, 2020, 6:08 PM +1000, Udo Kohlmeyer <u...@vmware.com>, wrote:
Hi there Gabor.

Can you please elaborate on versions of Geode and Spring Boot Data Geode are 
you using.

You can confirm if you are using compatible versions here. 
https://github.com/spring-projects/spring-boot-data-geode/wiki/Spring-Boot-for-Apache-Geode-and-Pivotal-GemFire-Version-Compatibility-Matrix<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-boot-data-geode%2Fwiki%2FSpring-Boot-for-Apache-Geode-and-Pivotal-GemFire-Version-Compatibility-Matrix&data=02%7C01%7Cudo%40vmware.com%7Cf8577a04f2d9453a173008d853ce57f2%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637351492990187660&sdata=sI%2B8DyDkwN18q9tDp9NKW3%2FhIpPEcE3GQHM0TxYsQoc%3D&reserved=0>

—Udo
On Sep 8, 2020, 6:03 PM +1000, Gábor Kendelényi 
<gabor.kendele...@ericsson.com>, wrote:
Hi Geode Team/Users,

I need your help figuring out why the Apache Geode Java Client is behaving the 
way it does.
Overall my task is simple. I just need to connect to a Geode server running in 
a small Kubernetes test cluster via a Spring Boot application.

Geode Server
On the Geode side I have enabled the REST API by setting the 
“-Dgemfire.start-dev-rest-api” property true.
It’s working properly.
bash-4.4# curl -i -X GET http://localhost:7070/gemfire-api/v1
HTTP/1.1 200 OK
Date: Mon, 07 Sep 2020 12:39:43 GMT
Location: http://localhost:7070/gemfire-api/v1

Spring Boot App
On the App side I’m using the below annotations in order I could do the region 
creation part through the client:
@ClientCacheApplication(useHttp=true)
@EnableClusterConfiguration
@EnableEntityDefinedRegions


Problem
When I check the application log during start app I can see that the client is 
trying to use a slightly different URL for the RegionCreation POST request:
org.springframework.context.ApplicationContextException: Failed to start bean 
'gemfireClusterSchemaObjectInitializer'; nested exception is 
org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not 
Found: [HTTP ERROR 404 Not Found
URI: /gemfire/v1/regions
STATUS: 404
MESSAGE: Not Found
SERVLET: null
]


So instead of “/gemfire-api/v1” or “/geode/v1” it’s trying to access the 
“/gemfire/v1” url.

Could you help me figure out why is that? Is this a bug?

Regards, Gábor

Reply via email to