java.lang.NullPointerException

Atlassian JIRA | Zulfadli Noor Sazali [Atlassian] | 2 years ago
  1. 0

    h4. Summary Service Desk Mail Channel fails to process mail to add comment to an existing issue. Creating new issue via Service Desk Mail Channel works as expected. The following NPE can be found in the logs: {noformat}2014-10-29 13:35:56,636 atlassian-scheduler-quartz1.clustered_Worker-2 ERROR anonymous Mail handler used by JIRA Service Desk. Do not modify or delete. 10,600 [atlassian.jira.service.ServiceRunner] An error occurred while trying to run service 'Mail handler used by JIRA Service Desk. Do not modify or delete. 10,600'. null java.lang.NullPointerException at java.io.File.createTempFile(Unknown Source) at java.io.File.createTempFile(Unknown Source) at com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService.com$atlassian$servicedesk$internal$comment$ServiceDeskCommentService$$createTempFile(ServiceDeskCommentService.scala:111) at com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService$$anonfun$9.apply(ServiceDeskCommentService.scala:173) at com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService$$anonfun$9.apply(ServiceDeskCommentService.scala:171) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.immutable.List.foreach(List.scala:318) at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at scala.collection.AbstractTraversable.map(Traversable.scala:105) at com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService.validateMailAttachment(ServiceDeskCommentService.scala:170) at com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService.addCommentWithMessageAttachments(ServiceDeskCommentService.scala:139) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager.com$atlassian$servicedesk$internal$feature$incomingemail$IncomingEmailManager$$addCommentAndAttachments(IncomingEmailManager.scala:147) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17$$anonfun$apply$18.apply(IncomingEmailManager.scala:112) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17$$anonfun$apply$18.apply(IncomingEmailManager.scala:112) at scala.util.Either$.cond(Either.scala:593) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17.apply(IncomingEmailManager.scala:112) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17.apply(IncomingEmailManager.scala:111) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16.apply(IncomingEmailManager.scala:111) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16.apply(IncomingEmailManager.scala:110) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15.apply(IncomingEmailManager.scala:110) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15.apply(IncomingEmailManager.scala:109) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13$$anonfun$apply$14.apply(IncomingEmailManager.scala:109) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13$$anonfun$apply$14.apply(IncomingEmailManager.scala:108) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13.apply(IncomingEmailManager.scala:108) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13.apply(IncomingEmailManager.scala:107) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11.apply(IncomingEmailManager.scala:107) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11.apply(IncomingEmailManager.scala:106) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10.apply(IncomingEmailManager.scala:106) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10.apply(IncomingEmailManager.scala:105) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1.apply(IncomingEmailManager.scala:105) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1.apply(IncomingEmailManager.scala:104) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager.createIssueInJiraContext(IncomingEmailManager.scala:104) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager.createIssueFromEmail(IncomingEmailManager.scala:74) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4$$anonfun$apply$5.apply(IncomingEmailService.scala:66) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4$$anonfun$apply$5.apply(IncomingEmailService.scala:66) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$com$$$$$b964c765cf7c52d46b2e78e0cf72fae$$$$inEmailContext$1$$anonfun$apply$15.apply(IncomingEmailService.scala:119) at com.atlassian.servicedesk.internal.utils.context.PortalContextUtil$.inPortalContextWithParam(PortalContextUtil.scala:32) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$com$atlassian$servicedesk$internal$feature$incomingemail$IncomingEmailService$$inEmailContext$1.apply(IncomingEmailService.scala:118) at com.atlassian.servicedesk.internal.utils.context.AuthenticationContextUtil$.runAsUser(AuthenticationContextUtil.scala:15) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService.com$atlassian$servicedesk$internal$feature$incomingemail$IncomingEmailService$$inEmailContext(IncomingEmailService.scala:116) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4.apply(IncomingEmailService.scala:64) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4.apply(IncomingEmailService.scala:63) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3.apply(IncomingEmailService.scala:63) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3.apply(IncomingEmailService.scala:62) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2.apply(IncomingEmailService.scala:62) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2.apply(IncomingEmailService.scala:61) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1.apply(IncomingEmailService.scala:61) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1.apply(IncomingEmailService.scala:60) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService.createIssueFromEmail(IncomingEmailService.scala:60) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService.processEmail(IncomingEmailService.scala:48) at com.atlassian.servicedesk.internal.email.SDMailHandler.processMessage(SDMailHandler.java:36) at com.atlassian.servicedesk.squalor.email.AbstractMailHandler.handleMessage(AbstractMailHandler.java:100) at com.atlassian.servicedesk.squalor.email.SDMessageProcessor.execute(SDMessageProcessor.java:77) at com.atlassian.servicedesk.squalor.email.ServiceDeskMailFetcherService.runImpl(ServiceDeskMailFetcherService.java:71) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:261) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:66) at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:75) at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:53) at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:36) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:135) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80) at com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32) at org.quartz.core.JobRunShell.run(JobRunShell.java:223){noformat} h4. Expected Results Adding comment via Service Desk Mail channel should work and processed properly without any problem.

    Atlassian JIRA | 2 years ago | Zulfadli Noor Sazali [Atlassian]
    java.lang.NullPointerException
  2. 0

    h4. Summary Service Desk Mail Channel fails to process mail to add comment to an existing issue. Creating new issue via Service Desk Mail Channel works as expected. The following NPE can be found in the logs: {noformat}2014-10-29 13:35:56,636 atlassian-scheduler-quartz1.clustered_Worker-2 ERROR anonymous Mail handler used by JIRA Service Desk. Do not modify or delete. 10,600 [atlassian.jira.service.ServiceRunner] An error occurred while trying to run service 'Mail handler used by JIRA Service Desk. Do not modify or delete. 10,600'. null java.lang.NullPointerException at java.io.File.createTempFile(Unknown Source) at java.io.File.createTempFile(Unknown Source) at com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService.com$atlassian$servicedesk$internal$comment$ServiceDeskCommentService$$createTempFile(ServiceDeskCommentService.scala:111) at com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService$$anonfun$9.apply(ServiceDeskCommentService.scala:173) at com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService$$anonfun$9.apply(ServiceDeskCommentService.scala:171) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.immutable.List.foreach(List.scala:318) at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at scala.collection.AbstractTraversable.map(Traversable.scala:105) at com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService.validateMailAttachment(ServiceDeskCommentService.scala:170) at com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService.addCommentWithMessageAttachments(ServiceDeskCommentService.scala:139) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager.com$atlassian$servicedesk$internal$feature$incomingemail$IncomingEmailManager$$addCommentAndAttachments(IncomingEmailManager.scala:147) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17$$anonfun$apply$18.apply(IncomingEmailManager.scala:112) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17$$anonfun$apply$18.apply(IncomingEmailManager.scala:112) at scala.util.Either$.cond(Either.scala:593) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17.apply(IncomingEmailManager.scala:112) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17.apply(IncomingEmailManager.scala:111) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16.apply(IncomingEmailManager.scala:111) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16.apply(IncomingEmailManager.scala:110) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15.apply(IncomingEmailManager.scala:110) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15.apply(IncomingEmailManager.scala:109) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13$$anonfun$apply$14.apply(IncomingEmailManager.scala:109) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13$$anonfun$apply$14.apply(IncomingEmailManager.scala:108) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13.apply(IncomingEmailManager.scala:108) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13.apply(IncomingEmailManager.scala:107) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11.apply(IncomingEmailManager.scala:107) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11.apply(IncomingEmailManager.scala:106) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10.apply(IncomingEmailManager.scala:106) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10.apply(IncomingEmailManager.scala:105) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1.apply(IncomingEmailManager.scala:105) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1.apply(IncomingEmailManager.scala:104) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager.createIssueInJiraContext(IncomingEmailManager.scala:104) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager.createIssueFromEmail(IncomingEmailManager.scala:74) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4$$anonfun$apply$5.apply(IncomingEmailService.scala:66) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4$$anonfun$apply$5.apply(IncomingEmailService.scala:66) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$com$$$$$b964c765cf7c52d46b2e78e0cf72fae$$$$inEmailContext$1$$anonfun$apply$15.apply(IncomingEmailService.scala:119) at com.atlassian.servicedesk.internal.utils.context.PortalContextUtil$.inPortalContextWithParam(PortalContextUtil.scala:32) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$com$atlassian$servicedesk$internal$feature$incomingemail$IncomingEmailService$$inEmailContext$1.apply(IncomingEmailService.scala:118) at com.atlassian.servicedesk.internal.utils.context.AuthenticationContextUtil$.runAsUser(AuthenticationContextUtil.scala:15) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService.com$atlassian$servicedesk$internal$feature$incomingemail$IncomingEmailService$$inEmailContext(IncomingEmailService.scala:116) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4.apply(IncomingEmailService.scala:64) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4.apply(IncomingEmailService.scala:63) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3.apply(IncomingEmailService.scala:63) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3.apply(IncomingEmailService.scala:62) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2.apply(IncomingEmailService.scala:62) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2.apply(IncomingEmailService.scala:61) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1.apply(IncomingEmailService.scala:61) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1.apply(IncomingEmailService.scala:60) at scala.util.Either$RightProjection.flatMap(Either.scala:523) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService.createIssueFromEmail(IncomingEmailService.scala:60) at com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService.processEmail(IncomingEmailService.scala:48) at com.atlassian.servicedesk.internal.email.SDMailHandler.processMessage(SDMailHandler.java:36) at com.atlassian.servicedesk.squalor.email.AbstractMailHandler.handleMessage(AbstractMailHandler.java:100) at com.atlassian.servicedesk.squalor.email.SDMessageProcessor.execute(SDMessageProcessor.java:77) at com.atlassian.servicedesk.squalor.email.ServiceDeskMailFetcherService.runImpl(ServiceDeskMailFetcherService.java:71) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:261) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:66) at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:75) at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:53) at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:36) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:135) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80) at com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32) at org.quartz.core.JobRunShell.run(JobRunShell.java:223){noformat} h4. Expected Results Adding comment via Service Desk Mail channel should work and processed properly without any problem.

    Atlassian JIRA | 2 years ago | Zulfadli Noor Sazali [Atlassian]
    java.lang.NullPointerException
  3. 0

    Java File.createTempFile() throws NullPointerException

    Stack Overflow | 2 months ago | mbmast
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FATAL EXCEPTION: Unable to start activity ComponentInfo{...}: java.lang.NullPointerException

    Stack Overflow | 3 years ago | Lohit
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tg_db1/com.example.tg_db1.add_company}: java.lang.NullPointerException
  6. 0

    NullPointerException when building with IBM JDK (RSA 8/WebSphere 8)

    YouTrack | 3 years ago
    org.jetbrains.jps.incremental.ProjectBuildException: java.lang.NullPointerException

    1 unregistered visitors
    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 java.io.File.createTempFile()
    2. Java RT
      File.createTempFile
      1. java.io.File.createTempFile(Unknown Source)
      2. java.io.File.createTempFile(Unknown Source)
      2 frames
    3. com.atlassian.servicedesk
      ServiceDeskCommentService$$anonfun$9.apply
      1. com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService.com$atlassian$servicedesk$internal$comment$ServiceDeskCommentService$$createTempFile(ServiceDeskCommentService.scala:111)
      2. com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService$$anonfun$9.apply(ServiceDeskCommentService.scala:173)
      3. com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService$$anonfun$9.apply(ServiceDeskCommentService.scala:171)
      3 frames
    4. Scala
      AbstractTraversable.map
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      3. scala.collection.immutable.List.foreach(List.scala:318)
      4. scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
      5. scala.collection.AbstractTraversable.map(Traversable.scala:105)
      5 frames
    5. com.atlassian.servicedesk
      IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17$$anonfun$apply$18.apply
      1. com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService.validateMailAttachment(ServiceDeskCommentService.scala:170)
      2. com.atlassian.servicedesk.internal.comment.ServiceDeskCommentService.addCommentWithMessageAttachments(ServiceDeskCommentService.scala:139)
      3. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager.com$atlassian$servicedesk$internal$feature$incomingemail$IncomingEmailManager$$addCommentAndAttachments(IncomingEmailManager.scala:147)
      4. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17$$anonfun$apply$18.apply(IncomingEmailManager.scala:112)
      5. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17$$anonfun$apply$18.apply(IncomingEmailManager.scala:112)
      5 frames
    6. Scala
      Either$.cond
      1. scala.util.Either$.cond(Either.scala:593)
      1 frame
    7. com.atlassian.servicedesk
      IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17.apply
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17.apply(IncomingEmailManager.scala:112)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$45e8b6ac75ec78b1fe055b228f4dd69$$$$anonfun$apply$16$$anonfun$apply$17.apply(IncomingEmailManager.scala:111)
      2 frames
    8. Scala
      Either$RightProjection.flatMap
      1. scala.util.Either$RightProjection.flatMap(Either.scala:523)
      1 frame
    9. com.atlassian.servicedesk
      IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16.apply
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16.apply(IncomingEmailManager.scala:111)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16.apply(IncomingEmailManager.scala:110)
      2 frames
    10. Scala
      Either$RightProjection.flatMap
      1. scala.util.Either$RightProjection.flatMap(Either.scala:523)
      1 frame
    11. com.atlassian.servicedesk
      IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15.apply
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15.apply(IncomingEmailManager.scala:110)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$crea$$$$ae31c5227827865ce7b4a4d45d71348e$$$$anonfun$apply$14$$anonfun$apply$15.apply(IncomingEmailManager.scala:109)
      2 frames
    12. Scala
      Either$RightProjection.flatMap
      1. scala.util.Either$RightProjection.flatMap(Either.scala:523)
      1 frame
    13. com.atlassian.servicedesk
      IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13$$anonfun$apply$14.apply
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13$$anonfun$apply$14.apply(IncomingEmailManager.scala:109)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13$$anonfun$apply$14.apply(IncomingEmailManager.scala:108)
      2 frames
    14. Scala
      Either$RightProjection.flatMap
      1. scala.util.Either$RightProjection.flatMap(Either.scala:523)
      1 frame
    15. com.atlassian.servicedesk
      IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13.apply
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13.apply(IncomingEmailManager.scala:108)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$13.apply(IncomingEmailManager.scala:107)
      2 frames
    16. Scala
      Either$RightProjection.flatMap
      1. scala.util.Either$RightProjection.flatMap(Either.scala:523)
      1 frame
    17. com.atlassian.servicedesk
      IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11.apply
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11.apply(IncomingEmailManager.scala:107)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10$$anonfun$apply$11.apply(IncomingEmailManager.scala:106)
      2 frames
    18. Scala
      Either$RightProjection.flatMap
      1. scala.util.Either$RightProjection.flatMap(Either.scala:523)
      1 frame
    19. com.atlassian.servicedesk
      IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10.apply
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10.apply(IncomingEmailManager.scala:106)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1$$anonfun$apply$10.apply(IncomingEmailManager.scala:105)
      2 frames
    20. Scala
      Either$RightProjection.flatMap
      1. scala.util.Either$RightProjection.flatMap(Either.scala:523)
      1 frame
    21. com.atlassian.servicedesk
      IncomingEmailManager$$anonfun$createIssueInJiraContext$1.apply
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1.apply(IncomingEmailManager.scala:105)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager$$anonfun$createIssueInJiraContext$1.apply(IncomingEmailManager.scala:104)
      2 frames
    22. Scala
      Either$RightProjection.flatMap
      1. scala.util.Either$RightProjection.flatMap(Either.scala:523)
      1 frame
    23. com.atlassian.servicedesk
      IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4.apply
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager.createIssueInJiraContext(IncomingEmailManager.scala:104)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailManager.createIssueFromEmail(IncomingEmailManager.scala:74)
      3. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4$$anonfun$apply$5.apply(IncomingEmailService.scala:66)
      4. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4$$anonfun$apply$5.apply(IncomingEmailService.scala:66)
      5. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$com$$$$$b964c765cf7c52d46b2e78e0cf72fae$$$$inEmailContext$1$$anonfun$apply$15.apply(IncomingEmailService.scala:119)
      6. com.atlassian.servicedesk.internal.utils.context.PortalContextUtil$.inPortalContextWithParam(PortalContextUtil.scala:32)
      7. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$com$atlassian$servicedesk$internal$feature$incomingemail$IncomingEmailService$$inEmailContext$1.apply(IncomingEmailService.scala:118)
      8. com.atlassian.servicedesk.internal.utils.context.AuthenticationContextUtil$.runAsUser(AuthenticationContextUtil.scala:15)
      9. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService.com$atlassian$servicedesk$internal$feature$incomingemail$IncomingEmailService$$inEmailContext(IncomingEmailService.scala:116)
      10. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4.apply(IncomingEmailService.scala:64)
      11. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3$$anonfun$apply$4.apply(IncomingEmailService.scala:63)
      11 frames
    24. Scala
      Either$RightProjection.flatMap
      1. scala.util.Either$RightProjection.flatMap(Either.scala:523)
      1 frame
    25. com.atlassian.servicedesk
      IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3.apply
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3.apply(IncomingEmailService.scala:63)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2$$anonfun$apply$3.apply(IncomingEmailService.scala:62)
      2 frames
    26. Scala
      Either$RightProjection.flatMap
      1. scala.util.Either$RightProjection.flatMap(Either.scala:523)
      1 frame
    27. com.atlassian.servicedesk
      IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2.apply
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2.apply(IncomingEmailService.scala:62)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1$$anonfun$apply$2.apply(IncomingEmailService.scala:61)
      2 frames
    28. Scala
      Either$RightProjection.flatMap
      1. scala.util.Either$RightProjection.flatMap(Either.scala:523)
      1 frame
    29. com.atlassian.servicedesk
      IncomingEmailService$$anonfun$createIssueFromEmail$1.apply
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1.apply(IncomingEmailService.scala:61)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService$$anonfun$createIssueFromEmail$1.apply(IncomingEmailService.scala:60)
      2 frames
    30. Scala
      Either$RightProjection.flatMap
      1. scala.util.Either$RightProjection.flatMap(Either.scala:523)
      1 frame
    31. com.atlassian.servicedesk
      ServiceDeskMailFetcherService.runImpl
      1. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService.createIssueFromEmail(IncomingEmailService.scala:60)
      2. com.atlassian.servicedesk.internal.feature.incomingemail.IncomingEmailService.processEmail(IncomingEmailService.scala:48)
      3. com.atlassian.servicedesk.internal.email.SDMailHandler.processMessage(SDMailHandler.java:36)
      4. com.atlassian.servicedesk.squalor.email.AbstractMailHandler.handleMessage(AbstractMailHandler.java:100)
      5. com.atlassian.servicedesk.squalor.email.SDMessageProcessor.execute(SDMessageProcessor.java:77)
      6. com.atlassian.servicedesk.squalor.email.ServiceDeskMailFetcherService.runImpl(ServiceDeskMailFetcherService.java:71)
      6 frames
    32. com.atlassian.jira
      ServiceRunner.runJob
      1. com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:261)
      2. com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:66)
      3. com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:75)
      4. com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:53)
      5. com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:36)
      5 frames
    33. com.atlassian.scheduler
      Quartz1Job.execute
      1. com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:135)
      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