java.lang.NullPointerException

Atlassian JIRA | Chai Ying Chan [Atlassian] | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    *Steps to Reproduce:* # Start your JIRA with Turkish locale (set -Duser.language=tr -Duser.country=TR in setenv.sh) # Navigate to LookAndFeel page and try to update the logo # Exceptions similar to this one will be shown in the log file: {noformat} 2011-10-10 18:37:15,715 http-8080-2 ERROR jiraadmin 1117x509x1 16q309t 10.20.8.1:57649,127.0.0.1 /secure/admin/EditLookAndFeel.jspa [velocity] Method isDefaultFaviconOption threw exception for reference $action in template templates/actions/editlookandfeel.vm at [72,56] 2011-10-10 18:37:15,715 http-8080-2 ERROR jiraadmin 1117x509x1 16q309t 10.20.8.1:57649,127.0.0.1 /secure/admin/EditLookAndFeel.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.NullPointerException java.lang.NullPointerException at com.atlassian.jira.lookandfeel.EditLookAndFeel.isDefaultFaviconOption(EditLookAndFeel.java:497) {noformat} *Finding:* In this case, JIRA tries to upper case the choice made for the favicon, whether it is JIRA (DEFAULT), URL or UPLOAD. Turkish uppercasing makes it fail when trying to convert jira into JIRA, under Turkish it would actually be JİRA. We should always uppercase any text to be used for a programmatic purpose using English rules. We should only uppercase using the user's locale when rendering the uppercased text for the user. *Workaround:* Set {{-Duser.language=en -Duser.country=UK}} into your JVM properties. For more information on how to set this, feel free to refer to: * http://confluence.atlassian.com/display/JIRA/Setting+Properties+and+Options+on+Startup

    Atlassian JIRA | 5 years ago | Chai Ying Chan [Atlassian]
    java.lang.NullPointerException
  2. 0

    *Steps to Reproduce:* # Start your JIRA with Turkish locale (set -Duser.language=tr -Duser.country=TR in setenv.sh) # Navigate to LookAndFeel page and try to update the logo # Exceptions similar to this one will be shown in the log file: {noformat} 2011-10-10 18:37:15,715 http-8080-2 ERROR jiraadmin 1117x509x1 16q309t 10.20.8.1:57649,127.0.0.1 /secure/admin/EditLookAndFeel.jspa [velocity] Method isDefaultFaviconOption threw exception for reference $action in template templates/actions/editlookandfeel.vm at [72,56] 2011-10-10 18:37:15,715 http-8080-2 ERROR jiraadmin 1117x509x1 16q309t 10.20.8.1:57649,127.0.0.1 /secure/admin/EditLookAndFeel.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.NullPointerException java.lang.NullPointerException at com.atlassian.jira.lookandfeel.EditLookAndFeel.isDefaultFaviconOption(EditLookAndFeel.java:497) {noformat} *Finding:* In this case, JIRA tries to upper case the choice made for the favicon, whether it is JIRA (DEFAULT), URL or UPLOAD. Turkish uppercasing makes it fail when trying to convert jira into JIRA, under Turkish it would actually be JİRA. We should always uppercase any text to be used for a programmatic purpose using English rules. We should only uppercase using the user's locale when rendering the uppercased text for the user. *Workaround:* Set {{-Duser.language=en -Duser.country=UK}} into your JVM properties. For more information on how to set this, feel free to refer to: * http://confluence.atlassian.com/display/JIRA/Setting+Properties+and+Options+on+Startup

    Atlassian JIRA | 5 years ago | Chai Ying Chan [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.lookandfeel.EditLookAndFeel.isDefaultFaviconOption()
    2. com.atlassian.jira
      EditLookAndFeel.isDefaultFaviconOption
      1. com.atlassian.jira.lookandfeel.EditLookAndFeel.isDefaultFaviconOption(EditLookAndFeel.java:497)
      1 frame