java.lang.NullPointerException

Atlassian JIRA | Thong Bui [Atlassian] | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    {code} [INFO] [talledLocalContainer] 2015-04-21 00:48:37,435 atlassian-scheduler-quartz1.clustered_Worker-1 ERROR ServiceRunner [mail.incoming.jepp.processor] MailJobRunner Failed [INFO] [talledLocalContainer] java.lang.NullPointerException [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.feature.audit.mailrun.MailRunAuditManager.doesLastAuditRemainTheSame(MailRunAuditManager.java:100) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.feature.audit.mailrun.MailRunAuditManager.saveMailRunAudit(MailRunAuditManager.java:41) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.feature.puller.MailPullerWorker.pullEmailForConnection(MailPullerWorker.java:153) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.feature.puller.MailPullerWorker.execute(MailPullerWorker.java:69) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.feature.puller.MailPullerService.run(MailPullerService.java:30) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.services.MailPullerExecutor.run(MailPullerExecutor.java:34) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.services.AbstractMailExecutor.execute(AbstractMailExecutor.java:48) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.services.MailJobRunner.runJob(MailJobRunner.java:38) [INFO] [talledLocalContainer] at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:136) [INFO] [talledLocalContainer] at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101) [INFO] [talledLocalContainer] at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80) [INFO] [talledLocalContainer] at com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32) [INFO] [talledLocalContainer] at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [INFO] [talledLocalContainer] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) {code} This issue happens in the background after created an email channel in JSD project. It only happens on BTF customer that are using Oracle DB system. Because Oracle treats empty string as NULL, therefore the check for last status change in Audit feature is blown up. (at MailRunAuditManager.java:100)

    Atlassian JIRA | 2 years ago | Thong Bui [Atlassian]
    java.lang.NullPointerException
  2. 0

    {code} [INFO] [talledLocalContainer] 2015-04-21 00:48:37,435 atlassian-scheduler-quartz1.clustered_Worker-1 ERROR ServiceRunner [mail.incoming.jepp.processor] MailJobRunner Failed [INFO] [talledLocalContainer] java.lang.NullPointerException [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.feature.audit.mailrun.MailRunAuditManager.doesLastAuditRemainTheSame(MailRunAuditManager.java:100) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.feature.audit.mailrun.MailRunAuditManager.saveMailRunAudit(MailRunAuditManager.java:41) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.feature.puller.MailPullerWorker.pullEmailForConnection(MailPullerWorker.java:153) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.feature.puller.MailPullerWorker.execute(MailPullerWorker.java:69) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.feature.puller.MailPullerService.run(MailPullerService.java:30) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.services.MailPullerExecutor.run(MailPullerExecutor.java:34) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.services.AbstractMailExecutor.execute(AbstractMailExecutor.java:48) [INFO] [talledLocalContainer] at com.atlassian.jira.internal.mail.processor.services.MailJobRunner.runJob(MailJobRunner.java:38) [INFO] [talledLocalContainer] at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:136) [INFO] [talledLocalContainer] at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101) [INFO] [talledLocalContainer] at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80) [INFO] [talledLocalContainer] at com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32) [INFO] [talledLocalContainer] at org.quartz.core.JobRunShell.run(JobRunShell.java:223) [INFO] [talledLocalContainer] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) {code} This issue happens in the background after created an email channel in JSD project. It only happens on BTF customer that are using Oracle DB system. Because Oracle treats empty string as NULL, therefore the check for last status change in Audit feature is blown up. (at MailRunAuditManager.java:100)

    Atlassian JIRA | 2 years ago | Thong Bui [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.internal.mail.processor.feature.audit.mailrun.MailRunAuditManager.doesLastAuditRemainTheSame()
    2. com.atlassian.jira
      MailJobRunner.runJob
      1. com.atlassian.jira.internal.mail.processor.feature.audit.mailrun.MailRunAuditManager.doesLastAuditRemainTheSame(MailRunAuditManager.java:100)
      2. com.atlassian.jira.internal.mail.processor.feature.audit.mailrun.MailRunAuditManager.saveMailRunAudit(MailRunAuditManager.java:41)
      3. com.atlassian.jira.internal.mail.processor.feature.puller.MailPullerWorker.pullEmailForConnection(MailPullerWorker.java:153)
      4. com.atlassian.jira.internal.mail.processor.feature.puller.MailPullerWorker.execute(MailPullerWorker.java:69)
      5. com.atlassian.jira.internal.mail.processor.feature.puller.MailPullerService.run(MailPullerService.java:30)
      6. com.atlassian.jira.internal.mail.processor.services.MailPullerExecutor.run(MailPullerExecutor.java:34)
      7. com.atlassian.jira.internal.mail.processor.services.AbstractMailExecutor.execute(AbstractMailExecutor.java:48)
      8. com.atlassian.jira.internal.mail.processor.services.MailJobRunner.runJob(MailJobRunner.java:38)
      8 frames
    3. com.atlassian.scheduler
      Quartz1Job.execute
      1. com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:136)
      2. com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101)
      3. com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80)
      4. com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32)
      4 frames
    4. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:223)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      2 frames