We are using Spring boot and Spring Data gemfire , We have configured a ClientCache (PROXY one) and trying to connect to our local region , When i do a region.put it gives the below error
Caused by: org.apache.geode.cache.client.NoAvailableServersException
at org.apache.geode.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:234)
Running it as a pure java application , Im able to get/put from the cache.
Related
Everything was working until I introduced Webflux into our Sprint Boot application running on external tomcat inside a docker container. This was needed when I wrote an elasticsearch repository using ReactiveCrudRepository to implement asynchronous save/fetch operations. Now, our Spring Boot apps hosted on docker are not able to connect to any of the datastores.
For Redis the exception is -
Caused by: java.net.UnknownHostException: Failed to resolve
'redis1' after 2 queries
For Elasticsearch -
Caused by:
org.springframework.data.elasticsearch.client.NoReachableHostException:
Host 'es_host:9200' not reachable. Cluster state is offline.
The data nodes are all hosted on separate instances.
On researching around a bit, I came across several issues with netty's DNS resolver, but there is no standard fix mentioned anywhere. Please advice.
I'm using Spring Cloud Config server.
In my Spring Boot client application a get an exception:
Caused by: java.lang.IllegalArgumentException: Not enough variable values available to expand 'oauth.auth-server-url'
This exception occurs for every remote JSON properties containing "/" like
"oauth.auth-server-url": "https://tokenmanager.mycompany/auth"
or
"oauth.auth-server-uri": "/openid/token"
Does anyone had the same problem?
I am creating a spring boot application and trying to connect Mongo DB atlas and its giving me below exception :
com.mongodb.MongoSocketReadException: Prematurely reached end of stream
at com.mongodb.internal.connection.SocketStream.read(SocketStream.java:112) ~[mongodb-driver-core-4.0.4.jar:na]
Connection string in application.properties:
spring.data.mongodb.uri=mongodb+srv://<user>:<pass>#abc.mongodb.net/test?ssl=false&connectTimeoutMS=1000&socketTimeoutMS=1000
I have a springboot microservice application, deployed as docker image in a Kubernetes cluster.
This microservice is (also) an Ignite Client.
If for some reason Ignite Bean fails the startup (for example because there is no Ingnite Server service), the overall application is not able to startup.
I would like to make not mandatory the complete startup of Ignite Bean, so my service can be up & running, even if it cannot use Ignite.
Thanks in advance
We have an enterprise web application . The UI is built on the top of flex , middle tier is defined with spring bean and at DAO layer we are using ibatis . Is it possible to use jboss to replicate sessions within cluster nodes for this web application ?
I went through the Jboss documentation and they were just saying that EJBs can be session replicated using jboss , they have no documentation for non ejb objects
I configured Jboss with session replication with my web application and I see following logs all over places in the serve logs .
Caused by: java.lang.RuntimeException: Failure to marshal argument(s)
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.marshallCall(CommandAwareRpcDispatcher.java:281)
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:300)
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:179)
... 79 more
Caused by: java.io.NotActiveException: Fields were never written
at org.jboss.marshalling.river.RiverObjectOutputStream.finish(RiverObjectOutputStream.java:175)
at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1009)
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:680)
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)