Connecting to a RHDG server via route from Hot rod client deployed outside OCP via Route

Solution Verified - Updated -

Issue

Error in client logs while connecting to Red Hat Data Grid server.


ERROR 35764 --- [ XNIO-2 task-3] c.a.d.c.c.m.u.RemoteHotRodClient : ### processCacheOperation : named cache = product-from-template invoked for operation = INFINSPAN_OPERATION_GET with key = products for host = datagrid-cache-external-test.apps.com encountered runtime exception = org.infinispan.client.hotrod.exceptions.TransportException:: ISPN004077: Closing channel [id: 0x68fd1895, L:/10.34.204.183:53050 - R:datagrid-cache-external-test.apps.com/10.xx.xx.xx:443] due to error in unknown operation. org.infinispan.client.hotrod.exceptions.TransportException: org.infinispan.client.hotrod.exceptions.TransportException:: ISPN004077: Closing channel [id: 0x68fd1895, L:/10.34.204.183:53050 - R:datagrid-cache-external-test.apps.com/10.xx.xx.xx:443] due to error in unknown operation. ... Caused by: io.netty.handler.codec.DecoderException: org.infinispan.client.hotrod.exceptions.InvalidResponseException:: Invalid magic number. Expected 0xa1 and received 0x48 at org.infinispan.client.hotrod.impl.transport.netty.HintedReplayingDecoder.callDecode(HintedReplayingDecoder.java:129) ~[infinispan-client-hotrod-9.4.18.Final-redhat-00001.jar:9.4.18.Final-redhat-00001] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276) ~[netty-codec-4.1.48.Final-redhat-00001.jar:4.1.48.Final-redhat-00001] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.48.Final-redhat-00001.jar:4.1.48.Final-redhat-00001] ... 29 more Caused by: org.infinispan.client.hotrod.exceptions.InvalidResponseException: Invalid magic number. Expected 0xa1 and received 0x48
  • Unable to connect to RHDG deployed on Openshift via Re-encrypt route for external hot rod client access.

Environment

  • Red hat OpenShift Container Platform (OCP)
    • 4.x
  • Red Hat Data Grid (RHDG)
    • 8.x
    • expose type route

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content