Skip to end of banner
Go to start of banner

Excessive Velocity Logging - "Cannot retrieve method"

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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:

    introspector.restrict.classes = java.lang.Class,java.lang.ClassLoader

    …to this:

    introspector.restrict.classes =
  4. Save changes to velocity.properties.

Filter by label

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

  • No labels