2 Replies Latest reply on Feb 25, 2015 5:08 AM by galder.zamarreno

    Infinispan 7.1.0Final Java HotRod Client dies on java.net.SocketTimeoutException

    enrico.olivelli

      Hi,

      I'm having some troubles with Infinispan 7.1.0Final hotrod client, when the client receivers a timeout error it starts to behave in a unpredictable way. I'm using the brand-new nearcache (which is an amazing feature!).

      After the error my clients start to receive only byte[] values instead of my Beans, and it never recovers from this situation (only a restart can solve the situation).

       

      I'm using the default Marshaller, and pratically default values for every client-side configuration.

       

      Does anyone know a solution for my problem ?

       

       

      Here follows the error I can see in the logs:

       

      15/02/13 14:51:39 ERROR event.ClientListenerNotifier: ISPN004043: Unrecoverable error reading event from server xxx.xxx.xxx/10.168.10.117:11222, exiting event reader thread

       

      org.infinispan.client.hotrod.exceptions.TransportException:: java.net.SocketTimeoutException

       

            at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:184)

       

            at org.infinispan.client.hotrod.impl.protocol.Codec20.readMagic(Codec20.java:282)

       

            at org.infinispan.client.hotrod.impl.protocol.Codec20.readEvent(Codec20.java:126)

       

            at org.infinispan.client.hotrod.event.ClientListenerNotifier$EventDispatcher.run(ClientListenerNotifier.java:236)

       

            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

       

            at java.util.concurrent.FutureTask.run(FutureTask.java:266)

       

            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

       

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

       

            at java.lang.Thread.run(Thread.java:745)

       

      Caused by: java.net.SocketTimeoutException

       

            at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:211)

       

            at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)

       

            at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)

       

            at java.io.BufferedInputStream.read(BufferedInputStream.java:265)

       

            at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:179)

       

            ... 8 more