I'm trying to get a bit more into infispan and, as described in the docs, I cloned the tutorials repo. To get it started easily, I use the official docker images, this time (since I had problems with 13.X) limiting myself to 12.1 - tutorial branch as well as the docker image.
To start the docker image, I tried both ways:
docker run -p 11222:11222 -e USER="Titus Bramble" -e PASS="Shambles" --name infinispan infinispan/server:12.1
docker run --network host -e USER="Titus Bramble" -e PASS="Shambles" --name infinispan infinispan/server:12.1
Both do not work. The client says, a lot of time:
Sep 11, 2021 10:14:24 AM org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory closeChannelPools
INFO: ISPN004016: Server not in cluster anymore(127.0.0.1:11222), removing from the pool.
...until it fails to connect:
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /127.0.0.1:11222
Caused by: java.net.ConnectException: Connection refused: no further information
The basic code is...
ConfigurationBuilder builder = new ConfigurationBuilder();
builder.addServer()
.host("127.0.0.1")
.port(ConfigurationProperties.DEFAULT_HOTROD_PORT)
.security().authentication()
//Add user credentials.
.username("Titus Bramble")
.password("Shambles")
.realm("default")
.saslMechanism("DIGEST-MD5");
// Connect to the server
RemoteCacheManager client = new RemoteCacheManager(builder.build());
While I'm not running a mac, I tried the old workaround...
builder.clientIntelligence(ClientIntelligence.BASIC);
...but this doesn't help either. This only happens with a dockerized infinispan, but not when infinispan is installed "traditionally".
Running Docker for Windows on a Windows 10 machine, Java version is 8. Anyone got an idea what's going on here?