java.lang.NullPointerException: charsetName

Oracle Community | 19023 | 1 decade ago
  1. 0

    Ultrasearch and IMAP

    Oracle Community | 1 decade ago | 19023
    java.lang.NullPointerException: charsetName
  2. 0

    When JIRA receives a malformed email message via the Incoming mail server with the charset specified incorrectly like the following, JIRA creates a ticket and throws a NPE *Steps to Reproduce* Have the JIRA Incoming mail server receive a malformed email message with the charset specified incorrectly like the following {noformat} --CES.Boundary.DACA587499938898 content-type: text/plain;charset=ISO-8859-1 To view the content of this message, please use an HTML enabled mail client. --CES.Boundary.DACA587499938898 content-type: text/html;=ISO-8859-1 {noformat} *Expected Results* JIRA should verify the message is malformed and do the action specified in the Bulk field of the Mail Handler configuration. *Actual Results* JIRA creates a ticket from that email, throws the NPE mentioned below and doesn't remove the message from the mail server, causing it to do the same behaviour every time the mail handler service runs {noformat} 2014-02-18 10:24:44,274 ERROR [Mail handler] QuartzScheduler_Worker-2 ServiceRunner Mail handler From Email Service 2 Mail handler From Email Service 2[10041]: Exception: charsetName java.lang.NullPointerException: charsetName at java.io.InputStreamReader.<init>(Unknown Source) at com.sun.mail.handlers.text_plain.getContent(text_plain.java:107) at javax.activation.DataSourceDataContentHandler.getContent(Unknown Source) at javax.activation.DataHandler.getContent(Unknown Source) at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:637) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:654) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:627) at com.atlassian.jira.plugins.mail.handlers.CreateIssueHandler.handleMessage(CreateIssueHandler.java:274) at com.atlassian.jira.plugins.mail.handlers.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:133) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:400) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:293) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:388) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) {noformat}

    Atlassian JIRA | 3 years ago | Marcus Silveira [Atlassian]
    java.lang.NullPointerException: charsetName
  3. 0

    When JIRA receives a malformed email message via the Incoming mail server with the charset specified incorrectly like the following, JIRA creates a ticket and throws a NPE *Steps to Reproduce* Have the JIRA Incoming mail server receive a malformed email message with the charset specified incorrectly like the following {noformat} --CES.Boundary.DACA587499938898 content-type: text/plain;charset=ISO-8859-1 To view the content of this message, please use an HTML enabled mail client. --CES.Boundary.DACA587499938898 content-type: text/html;=ISO-8859-1 {noformat} *Expected Results* JIRA should verify the message is malformed and do the action specified in the Bulk field of the Mail Handler configuration. *Actual Results* JIRA creates a ticket from that email, throws the NPE mentioned below and doesn't remove the message from the mail server, causing it to do the same behaviour every time the mail handler service runs {noformat} 2014-02-18 10:24:44,274 ERROR [Mail handler] QuartzScheduler_Worker-2 ServiceRunner Mail handler From Email Service 2 Mail handler From Email Service 2[10041]: Exception: charsetName java.lang.NullPointerException: charsetName at java.io.InputStreamReader.<init>(Unknown Source) at com.sun.mail.handlers.text_plain.getContent(text_plain.java:107) at javax.activation.DataSourceDataContentHandler.getContent(Unknown Source) at javax.activation.DataHandler.getContent(Unknown Source) at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:637) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:654) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:627) at com.atlassian.jira.plugins.mail.handlers.CreateIssueHandler.handleMessage(CreateIssueHandler.java:274) at com.atlassian.jira.plugins.mail.handlers.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:133) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:400) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:293) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:388) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) {noformat}

    Atlassian JIRA | 3 years ago | Marcus Silveira [Atlassian]
    java.lang.NullPointerException: charsetName
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    部署到weblogic9.2上出错.

    Google Groups | 9 years ago | kelor
    java.lang.NullPointerException: charsetName

  1. Handemelindo 1 times, last 6 days ago
  2. kid 1 times, last 4 weeks ago
  3. Tahir 8 times, last 2 months ago
  4. rlovtangen 2 times, last 3 months ago
  5. Christopher 3 times, last 4 months ago
5 more registered users
18 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

    charsetName

    at java.io.InputStreamReader.<init>()
  2. Java RT
    InputStreamReader.<init>
    1. java.io.InputStreamReader.<init>(InputStreamReader.java:82)
    1 frame
  3. JavaMail API (compat)
    text_plain.getContent
    1. com.sun.mail.handlers.text_plain.getContent(text_plain.java:65)
    1 frame
  4. Java RT
    DataHandler.getContent
    1. javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:745)
    2. javax.activation.DataHandler.getContent(DataHandler.java:501)
    2 frames
  5. JavaMail API
    MimeBodyPart.getContent
    1. javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:531)
    1 frame
  6. oracle.ultrasearch.crawler
    CrawlingThread.run
    1. oracle.ultrasearch.crawler.URLAccess.processMail(URLAccess.java:3581)
    2. oracle.ultrasearch.crawler.URLAccess.processMail(URLAccess.java:3651)
    3. oracle.ultrasearch.crawler.URLAccess.readMailListURL(URLAccess.java:2508)
    4. oracle.ultrasearch.crawler.URLAccess.read(URLAccess.java:630)
    5. oracle.ultrasearch.crawler.CrawlingThread.crawl(CrawlingThread.java:1206)
    6. oracle.ultrasearch.crawler.CrawlingThread.run(CrawlingThread.java:980)
    6 frames