1 Reply Latest reply on Jan 17, 2014 7:40 AM by Wolf-Dieter Fink

    hotrod client connection fail cause returned private ip address.

    Ted Won Newbie

      Hi, I'm trying to configure ISPN 6.0 hotrod server.

      http://downloads.jboss.org/infinispan/6.0.0.Final/infinispan-server-6.0.0.Final-bin.zip

       

      But I failed to connect with hotrod client from remote.

      Because ISPN hotrod return private ip address list, even though I added hostname binding options.

      It seems JBoss AS 7 resolve it to ip address.

       

      How could I define hostname in hotrod connection configuration?

       

      ISPN logs:

      16:27:28,852 INFO  [org.infinispan.server.endpoint] (MSC service thread 1-10) JDGS010000: HotRodServer starting

      16:27:28,852 INFO  [org.infinispan.server.endpoint] (MSC service thread 1-10) JDGS010001: HotRodServer listening on 172.27.113.64:51222

       

       

      Hotrod Client logs:

      [2014-01-17 16:29:10] [main] DEBUG org.infinispan.client.hotrod.logging.LogFactory.getLog(LogFactory.java:15) - Logging Provider: org.jboss.logging.Log4jLoggerProvider

      [2014-01-17 16:29:10] [main] DEBUG org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.start(TcpTransportFactory.java:86) - Statically configured servers: [daisy-datagrid-16:51222]

      [2014-01-17 16:29:10] [main] DEBUG org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.start(TcpTransportFactory.java:87) - Load balancer class: org.infinispan.client.hotrod.impl.transport.tcp.RoundRobinBalancingStrategy

      [2014-01-17 16:29:10] [main] DEBUG org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.start(TcpTransportFactory.java:88) - Tcp no delay = true; client socket timeout = 60000 ms; connect timeout = 60000 ms

      [2014-01-17 16:29:11] [main] INFO  org.infinispan.client.hotrod.impl.protocol.Codec10.readNewTopologyAndHash(Codec10.java:186) - ISPN004006: daisy-datagrid-16:51222 sent new topology view (id=0) containing 1 addresses: [/172.27.113.64:51222]

      [2014-01-17 16:29:11] [main] INFO  org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.updateServers(TcpTransportFactory.java:244) - ISPN004014: New server added(/172.27.113.64:51222), adding to the pool.

      [2014-01-17 16:30:11] [main] WARN  org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.updateServers(TcpTransportFactory.java:248) - ISPN004015: Failed adding new server /172.27.113.64:51222

      org.infinispan.client.hotrod.exceptions.TransportException:: Could not connect to server: /172.27.113.64:51222

        at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.<init>(TcpTransport.java:74)

        at org.infinispan.client.hotrod.impl.transport.tcp.TransportObjectFactory.makeObject(TransportObjectFactory.java:35)

        at org.infinispan.client.hotrod.impl.transport.tcp.TransportObjectFactory.makeObject(TransportObjectFactory.java:16)

        at org.apache.commons.pool.impl.GenericKeyedObjectPool.addObject(GenericKeyedObjectPool.java:1748)

        at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.updateServers(TcpTransportFactory.java:246)

        at org.infinispan.client.hotrod.impl.protocol.Codec10.readNewTopologyAndHash(Codec10.java:189)

        at org.infinispan.client.hotrod.impl.protocol.Codec10.readNewTopologyIfPresent(Codec10.java:168)

        at org.infinispan.client.hotrod.impl.protocol.Codec10.readHeader(Codec10.java:92)

        at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:56)

        at org.infinispan.client.hotrod.impl.operations.PingOperation.execute(PingOperation.java:44)

        at org.infinispan.client.hotrod.impl.transport.tcp.TransportObjectFactory.ping(TransportObjectFactory.java:52)

       

       

      hotrod-client.properties:

      # hopefully this port is available

      infinispan.client.hotrod.transport_factory = org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory

      infinispan.client.hotrod.server_list = daisy-datagrid-16:51222

      infinispan.client.hotrod.marshaller = org.infinispan.commons.marshall.jboss.GenericJBossMarshaller

      infinispan.client.hotrod.async_executor_factory = org.infinispan.client.hotrod.impl.async.DefaultAsyncExecutorFactory

      infinispan.client.hotrod.default_executor_factory.pool_size = 1

      infinispan.client.hotrod.default_executor_factory.queue_size = 10000

      infinispan.client.hotrod.hash_function_impl.1 = org.infinispan.client.hotrod.impl.consistenthash.ConsistentHashV1

      infinispan.client.hotrod.tcp_no_delay = true

      infinispan.client.hotrod.ping_on_startup = true

      infinispan.client.hotrod.request_balancing_strategy = org.infinispan.client.hotrod.impl.transport.tcp.RoundRobinBalancingStrategy

      infinispan.client.hotrod.key_size_estimate = 64

      infinispan.client.hotrod.value_size_estimate = 512

      infinispan.client.hotrod.force_return_values = false

       

       

      Thanks in advance

      Ted