TEC1210346: Java agent 9.7 error: Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to com.sun.xml.ws.transport.Headers

Document created by FrancisLee Employee on May 27, 2016Last modified by J.J. Lovett on May 27, 2016
Version 2Show Document
  • View in full screen mode

Document ID:  TEC1210346

Last Modified Date:  10/30/2015
Authored By: FrancisLee

  • Products
    • CA Application Performance Management
  • Releases
    • CA Application Performance Management:Release:9.7
  • Components
    • APM AGENTS

 

  Question:

  On a 9.7 Java agent instrumenting webservices.pbd, the following error is seen:

  Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to com.sun.xml.ws.transport.Headers

    at com.sun.xml.ws.client.RequestContext.fill(RequestContext.java:363)

   at com.sun.xml.ws.client.Stub.configureRequestPacket(Stub.java:412)

   at com.sun.xml.ws.client.Stub.process(Stub.java:375)

   at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:189)

   at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)

   at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:102)

   at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:172)

 

  This issue should be fixed in 9.7 per 9.7 release note.  Why does it persist?

 

Answer:

  There is a new 9.7 property in the <Agent Home>/core/config/IntroscopeAgent.profile.  This property may need to be uncommented to resolve the issue:

    # SOA property for 2.2.6 or later versions of JAXWS Jar

    # JAXWS jar has changed some methods in 2.2.6 and later versions

    # Uncomment this property if JAXWS version is 2.2.6 or higher

    com.wily.introscope.agent.soa.JAXWSHeadersClassName=com.sun.xml.ws.transport.Headers

 

    Save and exit the profile and restart the Agent.

 

    Note: If the property does not appear in the Agent profile, add it to the bottom.

 

Search the Entire CA APM Knowledge Base

 

search-kb.jpg

Attachments

    Outcomes