We are trying to deploy Agent.jar from Java agent 10.8 [2023.5.1.13 (Build 990013)] and we have noticed that the agent is unable to connect to the APM EM 10.8.
We can see the below error in the EM log. We don't have any issue when using Agent.jar from previous versions (10.7, 10.5)
...
[DEBUG] [IntroscopeAgent.IncomingMessageDeliveryTask] Unrecoverable exception while reading from Socket Transport connected with Socket[addr=...
java.lang.ClassCastException: com.wily.isengard.postoffice.Address (loaded by com.wily.introscope.agent.util.AgentResourceClassLoader@74905) cannot be cast to com.wily.isengard.postoffice.Address (loaded by com.sap.smd.agent.loader.FileClassLoader@8872)
at com.wily.isengard.postofficehub.link.v1.IncomingMessageDeliveryTask.deliverNextMessage(IncomingMessageDeliveryTask.java:76)
at com.wily.isengard.postofficehub.link.v1.IncomingRouteConnector.receiveIncomingMessages(IncomingRouteConnector.java:170)
at com.wily.isengard.postofficehub.link.v1.IncomingRouteConnector.doTask(IncomingRouteConnector.java:89)
at com.wily.isengard.util.thread.AThreadedExecutable.run(AThreadedExecutable.java:192)
at java.lang.Thread.run(Thread.java:836)
**This issue is specific for APM SAP environments only**
The problem is related to defect DE602872, a defect during ClassLoaders
The fix for this issue will be in next 24.7 post java agent releases.