java.lang.NullPointerException

Atlassian JIRA | Chin Kim Loong | 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 Copy feature ( using JIRA to JIRA Copy plugin 3.0 ) failed when JIRA integrated with LDAP. The problem is reproducible when the following criterias are met: * JIRA is integrated with LDAP - Delagated LDAP * The user perform the action (COPY) locally from Project A to project B. *Steps to reproduce:* # Setup a new JIRA 5.2.11 and integrate it with LDAP # Install JIRA to JIRA copy plugin 3.0 # Create 2 projects - Project A and Project B. # Create one issue in project A. # Copy the issue by click on Remote Copy {{More Action -> Remote Copy}}. # The following error is shown. {noformat}java.lang.NullPointerException at com.atlassian.crowd.embedded.impl.IdentifierUtils.toLowerCase(IdentifierUtils.java:42) at com.atlassian.cpji.fields.value.CachingUserMapper.getUsersByEmail(CachingUserMapper.java:64) at com.atlassian.cpji.fields.value.CachingUserMapper.mapUser(CachingUserMapper.java:95) at com.atlassian.cpji.fields.system.AssigneeFieldMapper.mapUser(AssigneeFieldMapper.java:101) at com.atlassian.cpji.fields.system.AssigneeFieldMapper.getMappingResult(AssigneeFieldMapper.java:69) at com.atlassian.cpji.fields.permission.SystemFieldMappingChecker.getFieldPermission(SystemFieldMappingChecker.java:83) at com.atlassian.cpji.components.CopyIssueService.checkFieldPermissions(CopyIssueService.java:257) at com.atlassian.cpji.components.remote.LocalJiraProxy.checkPermissions(LocalJiraProxy.java:151) at com.atlassian.cpji.action.CopyIssueToInstanceAction.doDefault(CopyIssueToInstanceAction.java:503) {noformat} *Finding* * This problem happened in both JIRA 5.1.8 and JIRA 5.2.11. * Tested using normal and administor user, same problem occurred. * Testing Remote copy feature without LDAP integration, the problem will be disappear. * This is not happened in older version of JIRA to JIRA copy plugin during my test using version 3.0-rc1 and 3.0-rc2.

    Atlassian JIRA | 4 years ago | John Chin Kim Loong [Atlassian]
    java.lang.NullPointerException
  2. 0

    JIRA Copy feature ( using JIRA to JIRA Copy plugin 3.0 ) failed when JIRA integrated with LDAP. The problem is reproducible when the following criterias are met: * JIRA is integrated with LDAP - Delagated LDAP * The user perform the action (COPY) locally from Project A to project B. *Steps to reproduce:* # Setup a new JIRA 5.2.11 and integrate it with LDAP # Install JIRA to JIRA copy plugin 3.0 # Create 2 projects - Project A and Project B. # Create one issue in project A. # Copy the issue by click on Remote Copy {{More Action -> Remote Copy}}. # The following error is shown. {noformat}java.lang.NullPointerException at com.atlassian.crowd.embedded.impl.IdentifierUtils.toLowerCase(IdentifierUtils.java:42) at com.atlassian.cpji.fields.value.CachingUserMapper.getUsersByEmail(CachingUserMapper.java:64) at com.atlassian.cpji.fields.value.CachingUserMapper.mapUser(CachingUserMapper.java:95) at com.atlassian.cpji.fields.system.AssigneeFieldMapper.mapUser(AssigneeFieldMapper.java:101) at com.atlassian.cpji.fields.system.AssigneeFieldMapper.getMappingResult(AssigneeFieldMapper.java:69) at com.atlassian.cpji.fields.permission.SystemFieldMappingChecker.getFieldPermission(SystemFieldMappingChecker.java:83) at com.atlassian.cpji.components.CopyIssueService.checkFieldPermissions(CopyIssueService.java:257) at com.atlassian.cpji.components.remote.LocalJiraProxy.checkPermissions(LocalJiraProxy.java:151) at com.atlassian.cpji.action.CopyIssueToInstanceAction.doDefault(CopyIssueToInstanceAction.java:503) {noformat} *Finding* * This problem happened in both JIRA 5.1.8 and JIRA 5.2.11. * Tested using normal and administor user, same problem occurred. * Testing Remote copy feature without LDAP integration, the problem will be disappear. * This is not happened in older version of JIRA to JIRA copy plugin during my test using version 3.0-rc1 and 3.0-rc2.

    Atlassian JIRA | 4 years ago | Chin Kim Loong
    java.lang.NullPointerException
  3. 0

    After upgrade to JIRA 6.0 from 5.x version (with licence upgrade as well), I am receiving an error on the main login screen. {code:xml} Exception thrown during upgrade: null java.lang.NullPointerException at com.atlassian.crowd.embedded.impl.IdentifierUtils.toLowerCase(IdentifierUtils.java:42) at com.atlassian.jira.user.ApplicationUserEntity.(ApplicationUserEntity.java:18) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build6040.mapUsername(UpgradeTask_Build6040.java:72) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build6040.doUpgrade(UpgradeTask_Build6040.java:63) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeTaskSuccess(UpgradeManagerImpl.java:673) at com.atlassian.jira.upgrade.UpgradeManagerImpl.runUpgradeTasks(UpgradeManagerImpl.java:526) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:456) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeeded(UpgradeManagerImpl.java:399) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeededAndAllowed(UpgradeManagerImpl.java:333) at com.atlassian.jira.upgrade.UpgradeLauncher.checkIfUpgradeNeeded(UpgradeLauncher.java:100) at com.atlassian.jira.upgrade.UpgradeLauncher.start(UpgradeLauncher.java:49) at com.atlassian.jira.startup.DefaultJiraLauncher$3.run(DefaultJiraLauncher.java:117) at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:315) at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:209) at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:105) at com.atlassian.jira.startup.DefaultJiraLauncher.access$100(DefaultJiraLauncher.java:30) at com.atlassian.jira.startup.DefaultJiraLauncher$1.run(DefaultJiraLauncher.java:69) at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:33) at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:64) at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:54) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {code}

    Atlassian JIRA | 4 years ago | ugur arpaci
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Greenhopper is unavailable since the ugprade task is failed, see following error: {code}2013-03-21 07:45:07,751 http-apr-8080-exec-15 ERROR vkharisma@awesome.com 465x1147x1 12tabsn 172.21.140.111 /rest/plugins/1.0/com.pyxis.greenhopper.jira-key [sal.core.upgrade.DefaultPluginUpgradeManager] Upgrade error: Unexpected exception caught during plugin upgrade: java.lang.NullPointerException at com.atlassian.crowd.embedded.impl.IdentifierUtils.toLowerCase(IdentifierUtils.java:42) at com.atlassian.greenhopper.upgrade.GhUpgradeTask032DaoImpl.processCardColor(GhUpgradeTask032DaoImpl.java:67) at com.atlassian.greenhopper.upgrade.GhUpgradeTask032DaoImpl.access$100(GhUpgradeTask032DaoImpl.java:15) at com.atlassian.greenhopper.upgrade.GhUpgradeTask032DaoImpl$2.onRowRead(GhUpgradeTask032DaoImpl.java:55) at com.atlassian.greenhopper.upgrade.GhUpgradeTask032DaoImpl$2.onRowRead(GhUpgradeTask032DaoImpl.java:51) at net.java.ao.EntityManager.stream(EntityManager.java:924){code} This is due to the upgrade task is not successfully convert mix-case username hence makes it NULL {code} ... // make it lower case - we hope "unassigned" is already ok... String assignee = cardColorAO.getVal(); String lowercasedAssignee = IdentifierUtils.toLowerCase(assignee); if(!assignee.equals(lowercasedAssignee)) { cardColorAO = ao.get(CardColorAO.class, cardColorAO.getId()); logInfo("Changing card color assignee from '%s' to '%s'", assignee, lowercasedAssignee); cardColorAO.setVal(lowercasedAssignee); cardColorAO.save(); ... {code} There are NULL values in the *"60DB71_CARDCOLOR"* below: |"#cccb6b"|335|1|19|"assignee"|""| |"#8d6811"|336|0|19|"assignee"|""| *Workaround* https://confluence.atlassian.com/display/GHKB/Greenhopper+is+Unavailable+due+to+the+GhUpgradeTask032+failed

    Atlassian JIRA | 4 years ago | Vicky Kharisma [Atlassian]
    java.lang.NullPointerException
  6. 0

    Greenhopper is unavailable since the ugprade task is failed, see following error: {code}2013-03-21 07:45:07,751 http-apr-8080-exec-15 ERROR vkharisma@awesome.com 465x1147x1 12tabsn 172.21.140.111 /rest/plugins/1.0/com.pyxis.greenhopper.jira-key [sal.core.upgrade.DefaultPluginUpgradeManager] Upgrade error: Unexpected exception caught during plugin upgrade: java.lang.NullPointerException at com.atlassian.crowd.embedded.impl.IdentifierUtils.toLowerCase(IdentifierUtils.java:42) at com.atlassian.greenhopper.upgrade.GhUpgradeTask032DaoImpl.processCardColor(GhUpgradeTask032DaoImpl.java:67) at com.atlassian.greenhopper.upgrade.GhUpgradeTask032DaoImpl.access$100(GhUpgradeTask032DaoImpl.java:15) at com.atlassian.greenhopper.upgrade.GhUpgradeTask032DaoImpl$2.onRowRead(GhUpgradeTask032DaoImpl.java:55) at com.atlassian.greenhopper.upgrade.GhUpgradeTask032DaoImpl$2.onRowRead(GhUpgradeTask032DaoImpl.java:51) at net.java.ao.EntityManager.stream(EntityManager.java:924){code} This is due to the upgrade task is not successfully convert mix-case username hence makes it NULL {code} ... // make it lower case - we hope "unassigned" is already ok... String assignee = cardColorAO.getVal(); String lowercasedAssignee = IdentifierUtils.toLowerCase(assignee); if(!assignee.equals(lowercasedAssignee)) { cardColorAO = ao.get(CardColorAO.class, cardColorAO.getId()); logInfo("Changing card color assignee from '%s' to '%s'", assignee, lowercasedAssignee); cardColorAO.setVal(lowercasedAssignee); cardColorAO.save(); ... {code} There are NULL values in the *"60DB71_CARDCOLOR"* below: |"#cccb6b"|335|1|19|"assignee"|""| |"#8d6811"|336|0|19|"assignee"|""| *Workaround* https://confluence.atlassian.com/display/GHKB/Greenhopper+is+Unavailable+due+to+the+GhUpgradeTask032+failed

    Atlassian JIRA | 4 years ago | Vicky Kharisma [Atlassian]
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.crowd.embedded.impl.IdentifierUtils.toLowerCase()
    2. com.atlassian.crowd
      IdentifierUtils.toLowerCase
      1. com.atlassian.crowd.embedded.impl.IdentifierUtils.toLowerCase(IdentifierUtils.java:42)
      1 frame
    3. com.atlassian.cpji
      CopyIssueToInstanceAction.doDefault
      1. com.atlassian.cpji.fields.value.CachingUserMapper.getUsersByEmail(CachingUserMapper.java:64)
      2. com.atlassian.cpji.fields.value.CachingUserMapper.mapUser(CachingUserMapper.java:95)
      3. com.atlassian.cpji.fields.system.AssigneeFieldMapper.mapUser(AssigneeFieldMapper.java:101)
      4. com.atlassian.cpji.fields.system.AssigneeFieldMapper.getMappingResult(AssigneeFieldMapper.java:69)
      5. com.atlassian.cpji.fields.permission.SystemFieldMappingChecker.getFieldPermission(SystemFieldMappingChecker.java:83)
      6. com.atlassian.cpji.components.CopyIssueService.checkFieldPermissions(CopyIssueService.java:257)
      7. com.atlassian.cpji.components.remote.LocalJiraProxy.checkPermissions(LocalJiraProxy.java:151)
      8. com.atlassian.cpji.action.CopyIssueToInstanceAction.doDefault(CopyIssueToInstanceAction.java:503)
      8 frames