java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 237#199329565
    via GitHub by V3RITAS
    ,
  • 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}
    via by Marcus Silveira [Atlassian],
  • Workflow 2.6.4 - Diagram not displayed
    via by 397224,
  • 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}
    via by Marcus Silveira [Atlassian],
  • Trace is: java.lang.NullPointerException: charsetName at java.io.InputStreamReader.<init>(Unknown Source) at org.apache.ivy.util.url.ApacheURLLister.retrieveListing(ApacheURLLister.java:113) at org.apache.ivy.util.url.ApacheURLLister.listAll(ApacheURLLister.java:57) at org.apache.ivy.plugins.repository.url.URLRepository.list(URLRepository.java:100) at org.apache.ivy.plugins.resolver.util.ResolverHelper.listAll(ResolverHelper.java:105) at org.apache.ivy.plugins.resolver.util.ResolverHelper.listTokenValues(ResolverHelper.java:57) at org.apache.ivy.plugins.resolver.util.ResolverHelper.findAll(ResolverHelper.java:139) at org.apache.ivy.plugins.resolver.RepositoryResolver.listResources(RepositoryResolver.java:185) at org.apache.ivy.plugins.resolver.RepositoryResolver.findDynamicResourceUsingPattern(RepositoryResolver.java:149) at org.apache.ivy.plugins.resolver.RepositoryResolver.findResourceUsingPattern(RepositoryResolver.java:132) at org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver.findResourceUsingPatterns(AbstractPatternsBasedResolver.java:96) at org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver.findArtifactRef(AbstractPatternsBasedResolver.java:75) at org.apache.ivy.plugins.resolver.BasicResolver.getArtifactRef(BasicResolver.java:1034) at org.apache.ivy.plugins.resolver.BasicResolver.findFirstArtifactRef(BasicResolver.java:971) at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:243) at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104) at org.apache.ivy.plugins.resolver.ChainResolver.getDependency(ChainResolver.java:104) at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169) at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:292) at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:717) at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:802) at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:725) at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:597) at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:234) at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:195) at org.apache.ivy.Ivy.resolve(Ivy.java:507) at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:337) at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:273) at org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(IvyPostResolveTask.java:241) at org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(IvyPostResolveTask.java:188) at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:89) at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:273) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:392) at org.apache.tools.ant.Target.performTasks(Target.java:413) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:811) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) After investigations, a check is missing in in class org.apache.ivy.util.url.ApacheURLLister, in method List retrieveListing(URL,boolean,boolean) : [...] String charset = urlHandler.getURLInfo(url).getBodyCharset(); [...] According to spec of urlHandler.getURLInfo(url), it may return URLHandler.UNAVAILABLE. I have replace the above line by the following and it works fine: [...] URLInfo urlInfo = urlHandler.getURLInfo(url); if(urlInfo == URLHandler.UNAVAILABLE) return urlList; // not found => return empty list // here, urlInfo is valid String charset = urlInfo.getBodyCharset(); [...] This is blocking for us. Is there a chance to integrate it soon ? Otherwise, I will need to build my own patched jar.
    via by Frédéric RIVIERE,
  • NPE charsetName on jslint
    via GitHub by piotrkot
    ,
  • 部署到weblogic9.2上出错.
    via by kelor,
    • java.lang.NullPointerException: charsetName at java.io.InputStreamReader.<init>(Unknown Source) at oracle.forms.webutil.file.FileFunctions.fopen(Unknown Source) at oracle.forms.webutil.file.FileFunctions.getProperty(Unknown Source) at oracle.forms.handler.UICommon.onGet(Unknown Source) at oracle.forms.engine.Runform.onGetHandler(Unknown Source) at oracle.forms.engine.Runform.processMessage(Unknown Source) at oracle.forms.engine.Runform.processSet(Unknown Source) at oracle.forms.engine.Runform.onMessageReal(Unknown Source) at oracle.forms.engine.Runform.onMessage(Unknown Source) at oracle.forms.engine.Runform.processEventEnd(Unknown Source) at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source) at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

    Users with the same issue

    jf-ast
    3 times, last one,
    Unknown User
    2 times, last one,
    rp
    1 times, last one,
    tvrmsmith
    1 times, last one,
    marcbouvierdav
    4 times, last one,
    31 more bugmates