cosmosdb-server icon indicating copy to clipboard operation
cosmosdb-server copied to clipboard

Support for Java client

Open nkzawa opened this issue 4 years ago • 3 comments

Seems java client is stricter than node one and doesn't work properly. Maybe we want to add integration tests with the client and ensure it works.

https://github.com/zeit/cosmosdb-server/issues/7#issuecomment-531734111

nkzawa avatar Sep 16 '19 12:09 nkzawa

I am successfully conected with java but when I try to list items in collection error is shown: java.lang.IllegalStateException: com.microsoft.azure.documentdb.DocumentClientException: null, StatusCode: NotFound

enverbisevac avatar Nov 28 '19 21:11 enverbisevac

Thanks for the information. I tried to fix this once but it's still ongoing. Java client sends unexpected requests to the server and don't get why yet.

nkzawa avatar Nov 29 '19 01:11 nkzawa

using spring data, encountering this error, it seems like the client tries to get the defaultconsistency level from cosmos, which is missing in this server

Caused by: java.lang.NullPointerException: Name is null at java.base/java.lang.Enum.valueOf(Enum.java:238) at com.azure.data.cosmos.ConsistencyLevel.valueOf(ConsistencyLevel.java:15) at com.azure.data.cosmos.ConsistencyPolicy.defaultConsistencyLevel(ConsistencyPolicy.java:45) at com.azure.data.cosmos.internal.directconnectivity.GatewayServiceConfigurationReader.lambda$initializeReaderAsync$1(GatewayServiceConfigurationReader.java:146)

chrisgolle avatar Apr 17 '20 13:04 chrisgolle