java.lang.NullPointerException

Atlassian JIRA | Michael Andreacchio | 5 years ago
  1. 0

    This is a problem that causes emails to get stuck in the pop server and arises when there is a splitregex setting in the handler params for mail services and the email has an empty body and attachemnt. h5. The error {code} 2011-11-23 23:42:05,252 QuartzWorker-0 WARN ServiceRunner POP3 Service [com.atlassian.mail.MailUtils] Unable to extract text from MIME part with Content-Type 'application/msword; name="FINAL IDDI Manual September 2010 (2).doc" 2011-11-23 23:42:05,299 QuartzWorker-0 WARN ServiceRunner POP3 Service [service.util.handler.RegexCommentHandler] Failed to split email body. Appending raw content... java.lang.NullPointerException at org.apache.oro.text.regex.PatternMatcherInput.<init>(Unknown Source) at org.apache.oro.text.perl.Perl5Util.split(Unknown Source) at org.apache.oro.text.perl.Perl5Util.split(Unknown Source) at com.atlassian.jira.service.util.handler.RegexCommentHandler.splitMailBody(RegexCommentHandler.java:46) at com.atlassian.jira.service.util.handler.RegexCommentHandler.getEmailBody(RegexCommentHandler.java:35) at com.atlassian.jira.service.util.handler.AbstractCommentHandler.handleMessage(AbstractCommentHandler.java:78) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:186) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:60) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 2011-11-23 23:42:05,314 QuartzWorker-0 WARN ServiceRunner POP3 Service [com.atlassian.mail.MailUtils] Unable to extract text from MIME part with Content-Type 'application/msword; name="FINAL IDDI Manual September 2010 (2).doc" {code} Need a windows client machine. (eg: Windows 7 in testing) And possibly an Exchange server, I'm not sure if other mail servers will have the same fault. They may format the pop3 response differently... h5. Reproduction Method: From Windows 7 # Create a dummy document (eg) test.docx # Right-click test.docx, select Send to | Mail recipient. This should open an email window. # Add the recipient (eg, in our case) Jira # Add the issue tag to the subject line, eg, [JIR-484] # Delete all message content # Send h5. Note: It's the absence of a main message body that causes the problem. Using Outlook and deleting the message body did not produce a blocked email. Presumably, Outlook puts a bit of "empty" html in the message body. Unsure what other mail clients would be able to produce a "bad" message - would need to do plain text, with and empty message and an attachment. The service is configured like this: {code} Our mail set up uses the POP3 service in a comment only mode with the regex comment splitter: usessl: No SSL popserver: DHHS-POP3-jira.issues handler.params: reporterusername=jiraadmin, createusers=false, splitregex="===|\s*_*\s*From: JIRA (by:", bulk=delete forwardEmail: youremailaddress@atlassian.com handler: Regex Comment Handler {code} This basically splits off: # anything after a === character sequence (people put this in their signature at the chop point to remove history, etc) and # the jira notification so people can reply to notifications with a quick comment.

    Atlassian JIRA | 5 years ago | Michael Andreacchio
    java.lang.NullPointerException
  2. 0

    This is a problem that causes emails to get stuck in the pop server and arises when there is a splitregex setting in the handler params for mail services and the email has an empty body and attachemnt. h5. The error {code} 2011-11-23 23:42:05,252 QuartzWorker-0 WARN ServiceRunner POP3 Service [com.atlassian.mail.MailUtils] Unable to extract text from MIME part with Content-Type 'application/msword; name="FINAL IDDI Manual September 2010 (2).doc" 2011-11-23 23:42:05,299 QuartzWorker-0 WARN ServiceRunner POP3 Service [service.util.handler.RegexCommentHandler] Failed to split email body. Appending raw content... java.lang.NullPointerException at org.apache.oro.text.regex.PatternMatcherInput.<init>(Unknown Source) at org.apache.oro.text.perl.Perl5Util.split(Unknown Source) at org.apache.oro.text.perl.Perl5Util.split(Unknown Source) at com.atlassian.jira.service.util.handler.RegexCommentHandler.splitMailBody(RegexCommentHandler.java:46) at com.atlassian.jira.service.util.handler.RegexCommentHandler.getEmailBody(RegexCommentHandler.java:35) at com.atlassian.jira.service.util.handler.AbstractCommentHandler.handleMessage(AbstractCommentHandler.java:78) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:186) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:60) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 2011-11-23 23:42:05,314 QuartzWorker-0 WARN ServiceRunner POP3 Service [com.atlassian.mail.MailUtils] Unable to extract text from MIME part with Content-Type 'application/msword; name="FINAL IDDI Manual September 2010 (2).doc" {code} Need a windows client machine. (eg: Windows 7 in testing) And possibly an Exchange server, I'm not sure if other mail servers will have the same fault. They may format the pop3 response differently... h5. Reproduction Method: From Windows 7 # Create a dummy document (eg) test.docx # Right-click test.docx, select Send to | Mail recipient. This should open an email window. # Add the recipient (eg, in our case) Jira # Add the issue tag to the subject line, eg, [JIR-484] # Delete all message content # Send h5. Note: It's the absence of a main message body that causes the problem. Using Outlook and deleting the message body did not produce a blocked email. Presumably, Outlook puts a bit of "empty" html in the message body. Unsure what other mail clients would be able to produce a "bad" message - would need to do plain text, with and empty message and an attachment. The service is configured like this: {code} Our mail set up uses the POP3 service in a comment only mode with the regex comment splitter: usessl: No SSL popserver: DHHS-POP3-jira.issues handler.params: reporterusername=jiraadmin, createusers=false, splitregex="===|\s*_*\s*From: JIRA (by:", bulk=delete forwardEmail: youremailaddress@atlassian.com handler: Regex Comment Handler {code} This basically splits off: # anything after a === character sequence (people put this in their signature at the chop point to remove history, etc) and # the jira notification so people can reply to notifications with a quick comment.

    Atlassian JIRA | 5 years ago | Michael Andreacchio
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 org.apache.oro.text.regex.PatternMatcherInput.<init>()
    2. org.apache.oro
      Perl5Util.split
      1. org.apache.oro.text.regex.PatternMatcherInput.<init>(Unknown Source)
      2. org.apache.oro.text.perl.Perl5Util.split(Unknown Source)
      3. org.apache.oro.text.perl.Perl5Util.split(Unknown Source)
      3 frames
    3. com.atlassian.jira
      ServiceRunner.execute
      1. com.atlassian.jira.service.util.handler.RegexCommentHandler.splitMailBody(RegexCommentHandler.java:46)
      2. com.atlassian.jira.service.util.handler.RegexCommentHandler.getEmailBody(RegexCommentHandler.java:35)
      3. com.atlassian.jira.service.util.handler.AbstractCommentHandler.handleMessage(AbstractCommentHandler.java:78)
      4. com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:186)
      5. com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:60)
      6. com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47)
      6 frames
    4. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      1 frame
    5. com.atlassian.multitenant
      MultiTenantThreadPool$MultiTenantRunnable.run
      1. com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72)
      1 frame
    6. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      1 frame