Hi there Gabor,

Yes, the selected versions are correct.

I’m just creating my own example to double check if / where the error could be 
occurring.

—Udo
On Sep 8, 2020, 6:57 PM +1000, Gábor Kendelényi 
<gabor.kendele...@ericsson.com>, wrote:
I checked the matrix and based ont that the components should be compatible 
with each other:
SBDG
Latest
Spring Boot
SDG
SSDG
STDG
Spring Framework
Apache Geode
Pivotal GemFire
1.3.x
1.3.3.RELEASE
2.3.3.RELEASE<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-boot-data-geode%2Fblob%2F1.3.3.RELEASE%2Fgradle.properties%23L11&data=02%7C01%7Cudo%40vmware.com%7Cbb29eac8c35c485b271108d853d53764%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637351522573905961&sdata=0aq6OkYl8dAp6lMs8WS8WbZDmwWbF3ny8dcfZhmX6k4%3D&reserved=0>
2.3.3.RELEASE<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-boot-data-geode%2Fblob%2F1.3.3.RELEASE%2Fgradle.properties%23L13&data=02%7C01%7Cudo%40vmware.com%7Cbb29eac8c35c485b271108d853d53764%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637351522573915959&sdata=iMsBuE1vI5NybnjPdcF8zB%2FhYQNY9BRIlK%2F84mOMTVQ%3D&reserved=0>
2.3.0.RELEASE<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-boot-data-geode%2Fblob%2F1.3.3.RELEASE%2Fgradle.properties%23L17&data=02%7C01%7Cudo%40vmware.com%7Cbb29eac8c35c485b271108d853d53764%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637351522573915959&sdata=CDkEz9bMSO6Pk%2FFYGH9aqBPRqFkT%2FnlLvCD7dFzsgDA%3D&reserved=0>
0.0.18.RELEASE<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-boot-data-geode%2Fblob%2F1.3.3.RELEASE%2Fgradle.properties%23L14&data=02%7C01%7Cudo%40vmware.com%7Cbb29eac8c35c485b271108d853d53764%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637351522573925950&sdata=wUF4BoUX3PK2Id2wjhtubU%2F5ntMXZQDbvD5lIwVLg34%3D&reserved=0>
5.2.8.RELEASE<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-boot-data-geode%2Fblob%2F1.3.3.RELEASE%2Fgradle.properties%23L10&data=02%7C01%7Cudo%40vmware.com%7Cbb29eac8c35c485b271108d853d53764%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637351522573935946&sdata=ss%2F%2Bh52p%2FkPnAJg3YCDS1KNkjqg2vptFPXeZTvfBB8U%3D&reserved=0>
1.12.0<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-boot-data-geode%2Fblob%2F1.3.3.RELEASE%2Fgradle.properties%23L3&data=02%7C01%7Cudo%40vmware.com%7Cbb29eac8c35c485b271108d853d53764%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637351522573935946&sdata=FjnYbg%2BOwWRyrLvl7m6D2ZTZ5TR56ro0OZwIpJhmlOs%3D&reserved=0>
9.10.2<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-boot-data-geode%2Fblob%2F1.3.3.RELEASE%2Fgradle.properties%23L9&data=02%7C01%7Cudo%40vmware.com%7Cbb29eac8c35c485b271108d853d53764%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637351522573945941&sdata=yQw6u9%2B9XwAj8F%2Bpmm%2Br4BjFY9Wl7q0aZ%2BNC3fcwpgU%3D&reserved=0>

From: Gábor Kendelényi
Sent: Tuesday, September 8, 2020 10:25 AM
To: user@geode.apache.org
Subject: RE: Geode REST API - Question

You are right It’s my mistake I was trying to simplify my code for the mail and 
I put the useHttp to the wrong annotation:
    @EnableGemfireRepositories(basePackages = "com.ericsson.eea.privacy.dao")
    @EnableEntityDefinedRegions(basePackages = 
"com.ericsson.eea.privacy.entity")
    @EnablePdx
    @EnableIndexing
    @ClientCacheApplication(locators = { @ClientCacheApplication.Locator(host = 
"eric-data-kvdb-ag-locator", port = 10334) }, logLevel = "debug")
    @EnableClusterConfiguration(
            useHttp=true,
            host="eric-data-kvdb-ag-server",
            port=7070,
            requireHttps=false
    )

Lib: 'org.springframework.geode:spring-geode-starter:1.3.3.RELEASE'
Server: Product-Version: 1.12.0.9-NORDIX.202008170838

From: Udo Kohlmeyer <u...@vmware.com<mailto:u...@vmware.com>>
Sent: Tuesday, September 8, 2020 10:20 AM
To: user@geode.apache.org<mailto:user@geode.apache.org>
Subject: Re: Geode REST API - Question

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<mailto: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%2Fprotect2.fireeye.com%2Fv1%2Furl%3Fk%3D8bdcd0ff-d56c4d65-8bdc9064-867b36d1634c-e7df90ff1c0652f3%26q%3D1%26e%3D30d4a48f-50ea-4de6-8a21-b9b72218bea2%26u%3Dhttps%253A%252F%252Fnam04.safelinks.protection.outlook.com%252F%253Furl%253Dhttps%25253A%25252F%25252Fgithub.com%25252Fspring-projects%25252Fspring-boot-data-geode%25252Fwiki%25252FSpring-Boot-for-Apache-Geode-and-Pivotal-GemFire-Version-Compatibility-Matrix%2526data%253D02%25257C01%25257Cudo%252540vmware.com%25257Cf8577a04f2d9453a173008d853ce57f2%25257Cb39138ca3cee4b4aa4d6cd83d9dd62f0%25257C0%25257C0%25257C637351492990187660%2526sdata%253DsI%25252B8DyDkwN18q9tDp9NKW3%25252FhIpPEcE3GQHM0TxYsQoc%25253D%2526reserved%253D0&data=02%7C01%7Cudo%40vmware.com%7Cbb29eac8c35c485b271108d853d53764%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637351522573945941&sdata=%2FXfMkNiA8albVBzveTwD7Qn59nicaf%2BJQ7b7XB6%2BwT8%3D&reserved=0>

—Udo
On Sep 8, 2020, 6:03 PM +1000, Gábor Kendelényi 
<gabor.kendele...@ericsson.com<mailto: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