Invalid class file errors occur in agent logs when the class file name contains an invalid character.

Document ID : KB000048154
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

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

Solution:

The details on the Java specification class naming are available here:

http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#40625

  • oracle/security/jps/internal/keystore/config/jaxb/Password$JaxbAccessorM_get
    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