Excessive Velocity Logging - "Cannot retrieve method"

Problem

When Power Database Fields PRO is installed, excessive logging with the following errors are posted in the <JIRA HOME>/log/atlassian-jira.log file.

[velocity] Cannot retrieve method getsimpleName from object of class java.lang.Class due to security restrictions. [velocity] Cannot retrieve method getSimpleName from object of class java.lang.Class due to security restrictions. [velocity] Cannot retrieve method get from object of class java.lang.Class due to security restrictions. [velocity] Cannot retrieve method issimpleName from object of class java.lang.Class due to security restrictions. [velocity] Cannot retrieve method isSimpleName from object of class java.lang.Class due to security restrictions.

Solution

Please note that this workaround is to be implemented at the user’s discretion as it may present a security risk. For more information, see this Atlassian ticket.

  1. Open the velocity.properties file found at: <JIRA_INSTALLATION>atlassian-jira\WEB-INF\classes\velocity.properties

  2. Change the following line:

    introspector.restrict.packages = java.lang.reflect

    …to this:

    introspector.restrict.packages =
  3. You may also need to do the same to this line:

    …to this:

  4. Save changes to velocity.properties.

Related articles

Filter by label

There are no items with the selected labels at this time.