Using unsupported characters in a Java class name produce "Invalid Class path" errors in the agent log.
search cancel

Using unsupported characters in a Java class name produce "Invalid Class path" errors in the agent log.

book

Article ID: 6665

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction

Agent logs are filled with errors as the following: 

DATE/TIME [ERROR] [IntroscopeAgent.Agent] A problem occurred
while attempting to Introscope-enable
org/jboss/weldx/transaction/UserTransaction$-11111111$Proxy$_$$_Weld$Proxy$:
Invalid class file
 
DATE/TIME [ERROR] [IntroscopeAgent.Agent] A problem occurred
while attempting to Introscope-enable
org/jboss/weld/security/Principal$-11111111$Proxy$_$$_Weld$Proxy$: Invalid
class file

Environment

Introscope Agent from 9.6 onward.Any Java release.

Cause

The "-" (hyphen) is an invalid character for a Java class name.  Per the Java specifications, 
you cannot use an hyphen (-) as part of a Java class file name. In the above error message,
you can see this where it says -11111111.

Resolution

  The solution is removing the - in the monitored Java class names.

Additional Information

https://docs.oracle.com/javase/8/docs/api/java/lang/String.html