Invalid class file errors occur when the class file name contains an invalid character such as in the following:
[ERROR] [IntroscopeAgent.Agent] A problem occurred while attempting to Introscope-enable oracle/security/jps/internal/keystore/config/jaxb/Password$JaxbAccessorM_getEncryptedPassword_setEncryptedPassword_[B: Invalid class file
The details on the Java specification class naming are available here:
EncryptedPassword_setEncryptedPassword_[B:Invalid class file
The "[" (square bracket) is an invalid character for a Java class name. Per Java specifications, you cannot use an open
square bracket ([) as part of a Java class file name.
When Introscope encounters classes with invalid class names, it will not instrument them and reports an error message in the agent log.
It is not possible to address this because the name is violating Java specifications.
As a workaround, try adding a skipclass or skippackage statement to the Autoprobe directives:
- Create a PBD file and add the skip directives of the classes for which you are seeing the errors:
- SkipClass: oracle.security.jps.internal.keystore.config.jaxb.Password$JaxbAccessorM_getEncryptedPassword_setEncryptedPassword_[B