java.lang.NullPointerException

Atlassian JIRA | Matheus Fernandes | 4 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

    JIRA allows users to be created with line breaks through the JIRA Importers Plugin (and possibly other plugins), but does not handle these users correctly. h3. Steps to replicate: # Import a user, containing a line break in the username, through the CSV importer ([JIM-1001|https://ecosystem.atlassian.net/browse/JIM-1001]); # Try to edit or delete these users. h3. Expected Behavior: The administrator would be able to edit or delete the broken users. h3. Actual Behavior: It is not possible to edit or delete this user. The following appears on the logs: {noformat:borderStyle=dashed| borderColor=#6A8EB3 |bgColor=#F8F8F8} 2013-07-01 17:20:32,465 http-bio-8090-exec-4 ERROR [500ErrorPage.jsp] Exception caught in 500 page null java.lang.NullPointerException at com.atlassian.jira.web.action.admin.user.EditUser.buildNewUser(EditUser.java:106) at com.atlassian.jira.web.action.admin.user.EditUser.doValidation(EditUser.java:57) at webwork.action.ActionSupport.validate(ActionSupport.java:391) ... {noformat} h3. Workaround: # Create a backup of JIRA; # Unzip the backup; # Open the XML backups in a text editor; # Use the 'Find and Replace' feature of the text editor to replace e.g. 'Matheus Fernandes' with 'matheusfernandes'; # Save the files, zip them together again; # And re-import the backup. ^Reference: ['User does not exist' error when trying to use, edit or delete an user|https://confluence.atlassian.com/display/JIRAKB/%27User+does+not+exist%27+error+when+trying+to+use%2C+edit+or+delete+an+user]^ {panel:borderStyle=solid| bgColor=#FFFFDD| borderColor=#F7DF92} (!) *It is highly recommended to perform this in a test instance before doing so in the production instance!* {panel}

    Atlassian JIRA | 4 years ago | Matheus Fernandes
    java.lang.NullPointerException
  2. 0

    JIRA allows users to be created with line breaks through the JIRA Importers Plugin (and possibly other plugins), but does not handle these users correctly. h3. Steps to replicate: # Import a user, containing a line break in the username, through the CSV importer ([JIM-1001|https://ecosystem.atlassian.net/browse/JIM-1001]); # Try to edit or delete these users. h3. Expected Behavior: The administrator would be able to edit or delete the broken users. h3. Actual Behavior: It is not possible to edit or delete this user. The following appears on the logs: {noformat:borderStyle=dashed| borderColor=#6A8EB3 |bgColor=#F8F8F8} 2013-07-01 17:20:32,465 http-bio-8090-exec-4 ERROR [500ErrorPage.jsp] Exception caught in 500 page null java.lang.NullPointerException at com.atlassian.jira.web.action.admin.user.EditUser.buildNewUser(EditUser.java:106) at com.atlassian.jira.web.action.admin.user.EditUser.doValidation(EditUser.java:57) at webwork.action.ActionSupport.validate(ActionSupport.java:391) ... {noformat} h3. Workaround: # Create a backup of JIRA; # Unzip the backup; # Open the XML backups in a text editor; # Use the 'Find and Replace' feature of the text editor to replace e.g. 'Matheus Fernandes' with 'matheusfernandes'; # Save the files, zip them together again; # And re-import the backup. ^Reference: ['User does not exist' error when trying to use, edit or delete an user|https://confluence.atlassian.com/display/JIRAKB/%27User+does+not+exist%27+error+when+trying+to+use%2C+edit+or+delete+an+user]^ {panel:borderStyle=solid| bgColor=#FFFFDD| borderColor=#F7DF92} (!) *It is highly recommended to perform this in a test instance before doing so in the production instance!* {panel}

    Atlassian JIRA | 4 years ago | Matheus Fernandes
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.web.action.admin.user.EditUser.buildNewUser()
    2. com.atlassian.jira
      EditUser.doValidation
      1. com.atlassian.jira.web.action.admin.user.EditUser.buildNewUser(EditUser.java:106)
      2. com.atlassian.jira.web.action.admin.user.EditUser.doValidation(EditUser.java:57)
      2 frames
    3. webwork.action
      ActionSupport.validate
      1. webwork.action.ActionSupport.validate(ActionSupport.java:391)
      1 frame