java.lang.NullPointerException

Atlassian JIRA | ugur arpaci | 3 years ago
  1. 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 | 3 years ago | ugur arpaci
    java.lang.NullPointerException
  2. 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 | 3 years ago | ugur arpaci
    java.lang.NullPointerException
  3. 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
  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.jira
      LauncherContextListener.contextInitialized
      1. com.atlassian.jira.user.ApplicationUserEntity.<init>(ApplicationUserEntity.java:18)
      2. com.atlassian.jira.upgrade.tasks.UpgradeTask_Build6040.mapUsername(UpgradeTask_Build6040.java:72)
      3. com.atlassian.jira.upgrade.tasks.UpgradeTask_Build6040.doUpgrade(UpgradeTask_Build6040.java:63)
      4. com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeTaskSuccess(UpgradeManagerImpl.java:673)
      5. com.atlassian.jira.upgrade.UpgradeManagerImpl.runUpgradeTasks(UpgradeManagerImpl.java:526)
      6. com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:456)
      7. com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeeded(UpgradeManagerImpl.java:399)
      8. com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeededAndAllowed(UpgradeManagerImpl.java:333)
      9. com.atlassian.jira.upgrade.UpgradeLauncher.checkIfUpgradeNeeded(UpgradeLauncher.java:100)
      10. com.atlassian.jira.upgrade.UpgradeLauncher.start(UpgradeLauncher.java:49)
      11. com.atlassian.jira.startup.DefaultJiraLauncher$3.run(DefaultJiraLauncher.java:117)
      12. com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:315)
      13. com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:209)
      14. com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:105)
      15. com.atlassian.jira.startup.DefaultJiraLauncher.access$100(DefaultJiraLauncher.java:30)
      16. com.atlassian.jira.startup.DefaultJiraLauncher$1.run(DefaultJiraLauncher.java:69)
      17. com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:33)
      18. com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:64)
      19. com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:54)
      19 frames
    4. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      4. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      5. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      5 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      5. java.lang.Thread.run(Unknown Source)
      5 frames