Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-6930

ERROR logged when consuming events with SSL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 9.0.0.Beta1, 9.0.0.Final
    • None
    • None
    • None

    Description

      When closing the remote cache manager that has an event listener and connects via SSL, the Hot Rod client logs an ERROR

      2016-08-05 12:14:53 [Client-Listener-org.infinispan.spark.suites.JavaStreamApiSecureSuite-3219f3f2007a4ba4] ERROR ClientListenerNotifier:278 - ISPN004043: Unrecoverable error reading event from server localhost/127.0.0.1:11222, exiting event reader thread
      org.infinispan.client.hotrod.exceptions.TransportException:: java.net.SocketException: Socket closed
      	at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:207)
      	at org.infinispan.client.hotrod.impl.protocol.Codec20.readMagic(Codec20.java:305)
      	at org.infinispan.client.hotrod.impl.protocol.Codec20.readEvent(Codec20.java:147)
      	at org.infinispan.client.hotrod.event.ClientListenerNotifier$EventDispatcher.run(ClientListenerNotifier.java:262)
      	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 org.infinispan.client.hotrod.event.ClientListenerNotifier.lambda$null$0(ClientListenerNotifier.java:78)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.net.SocketException: Socket closed
      	at java.net.SocketInputStream.read(SocketInputStream.java:203)
      	at java.net.SocketInputStream.read(SocketInputStream.java:141)
      	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
      	at sun.security.ssl.InputRecord.read(InputRecord.java:503)
      	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
      	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930)
      	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
      	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:202)
      	... 9 more
      
      

      The error is not throw when not using SSL.

      Attachments

        Activity

          People

            gfernand@redhat.com Gustavo Fernandes (Inactive)
            gfernand@redhat.com Gustavo Fernandes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: