java.io.UnsupportedEncodingException

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.

  • Charset for Java 1.5 and 1.6
    via by Joseph Tsui,
  • InputStreamReader and Conversion of encoding
    via by Joseph Tsui,
  • java.io.UnsupportedEncodingException
    via Stack Overflow by user2133558
    ,
  • When you are using the CSV input step, an I/O error is thrown if you have a parameter in the File Encoding field when you click get fields. Steps to reproduce 1.) Create a new transformation in Spoon 2.) Add a CSV file Input Step 3.) Add a Dummy Step 4.) Add a hop between the two. 5.) Right click on the canvas and go to Transformation Settings 6.) Go to the parameters tab and add a parameter ${P_ENCODING} and give it a value of UTF-8 7.) Open the CSV File input step and open the attached CSV file 8.) In the File Encoding area, use the same parameter you added ${P_ENCODING} 9.) Click GetFields Expected Result: Get fields operation performs correctly and you are able to import them. Actual Report: There is an I/O Error thrown with the stack trace: java.io.UnsupportedEncodingException: ${P_ENCODING} at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source) at java.io.InputStreamReader.<init>(Unknown Source) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.getCSV(CsvInputDialog.java:800) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.access$800(CsvInputDialog.java:91) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog$8.handleEvent(CsvInputDialog.java:553) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog.open(CsvInputDialog.java:623) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:136) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:7840) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2753) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:705) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1219) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7049) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8309) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134)
    via by John Dorlus,
  • My FogBugz import failed and this is shown on the top of the page: FogBugz import completed with errors The importer has completed with some errors. You can find the errors in the logs below by searching for lines which begin with FAILED. It is likely that the import was not correctly configured. The text "It is likely that the import was not correctly configured." should read "It is possible that the import was not correctly configured.". But really, it should check what type of exceptions were generated and handle it accordingly. Ideally a link to Atlassian's own JIRA installation searching on the exceptions would be user friendly and relatively easy to implement. The exception I actually got was [08:59:50] Only new Issues will be imported [09:02:08] FAILED: Unexpected failure occurred. Importer will stop immediately. Data maybe in an unstable state [09:02:08] com.atlassian.jira.external.ExternalRuntimeException: java.io.UnsupportedEncodingException: geostd8 at com.atlassian.jira.external.ExternalUtils.getTextDataFromMimeMessage(ExternalUtils.java:922) at com.atlassian.jira.imports.fogbugz.transformer.CommentTransformer.transform(CommentTransformer.java:48) at com.atlassian.jira.web.action.util.DatabaseConnectionBean.queryDb(DatabaseConnectionBean.java:271) at com.atlassian.jira.web.action.util.DatabaseConnectionBean.queryDb(DatabaseConnectionBean.java:252) at com.atlassian.jira.imports.fogbugz.transformer.IssueTransformer.transform(IssueTransformer.java:208) at com.atlassian.jira.web.action.util.DatabaseConnectionBean.queryDb(DatabaseConnectionBean.java:271) at com.atlassian.jira.web.action.util.DatabaseConnectionBean.queryDb(DatabaseConnectionBean.java:252) at com.atlassian.jira.imports.fogbugz.FogBugzDataBean.getIssues(FogBugzDataBean.java:65) at com.atlassian.jira.imports.fogbugz.FogBugzDataBean.getIssuesIterator(FogBugzDataBean.java:70) at com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.importIssues(DefaultJiraDataImporter.java:430) at com.atlassian.jira.imports.importer.impl.DefaultJiraDataImporter.doImport(DefaultJiraDataImporter.java:120) at com.atlassian.jira.imports.importer.impl.ImporterThread.run(ImporterThread.java:21) Caused by: java.io.UnsupportedEncodingException: geostd8 at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source) at java.io.InputStreamReader.<init>(Unknown Source) at com.sun.mail.handlers.text_plain.getContent(text_plain.java:64) at javax.activation.DataSourceDataContentHandler.getContent(Unknown Source) at javax.activation.DataHandler.getContent(Unknown Source) at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:603) at com.atlassian.jira.external.ExternalUtils.getCleanedContent(ExternalUtils.java:956) at com.atlassian.jira.external.ExternalUtils.getTextDataFromMimeMessage(ExternalUtils.java:938) at com.atlassian.jira.external.ExternalUtils.getTextDataFromMimeMessage(ExternalUtils.java:918) Which is JIRA missing an encoding and not a configuration problem and not a user error. It's also something JIRA could easily clean up and present to the user in a friendly way (i.e., "Case ID's x, y, and z where not imported because their attachments use encoding geostd8 and that encoding is not supported. To search Atlassian's support for information on adding adding this encoding _click here_."
    via by Samuel R. Neff,
  • The JIRA Service Desk mail handler stops processing messages when it encounters a email encoded in UTF-7. When a message encoded in UTF-7 is encountered, a stacktrace is thrown and the processor stops running. Any messages received after the UTF-7 message are not processed. {noformat} 2015-04-22 22:18:32,991 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Found 3 mail item(s) for processing ... 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Starts processing mail item [id: 99] ... 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Checking if mail item [id: 99] is a mail loop ... 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Filtering message [message number: 0] using mail filter [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.filter.SDAutoReplyFilter]... 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Finished filtering message [message number: 0] using mail filter [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.filter.SDAutoReplyFilter] 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Filtering message [message number: 0] using mail filter [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.filter.SDBulkFilter]... 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Finished filtering message [message number: 0] using mail filter [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.filter.SDBulkFilter] 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Filtering message [message number: 0] using mail filter [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.filter.SDSentFromJIRAFilter]... 2015-04-22 22:18:32,993 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Finished filtering message [message number: 0] using mail filter [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.filter.SDSentFromJIRAFilter] 2015-04-22 22:18:32,993 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Filtering message [message number: 0] using mail filter [com.atlassian.jira.mail.processor.api.handler.DeliveryStatusMailFilter]... 2015-04-22 22:18:32,993 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Finished filtering message [message number: 0] using mail filter [com.atlassian.jira.mail.processor.api.handler.DeliveryStatusMailFilter] 2015-04-22 22:18:32,994 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Handling message [message number: 0] using main handler [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.handler.SDMailHandler]... 2015-04-22 22:18:33,031 atlassian-scheduler-quartz1.clustered_Worker-3 ERROR anonymous [mail.incoming.jepp.processor] MailJobRunner Failed java.io.UnsupportedEncodingException: utf-7 at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source) 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.MimeMessage.getContent(MimeMessage.java:1420) at com.atlassian.servicedesk.squalor.email.ServiceDeskMailUtils.getAttachments(ServiceDeskMailUtils.java:258) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailManager.createIssueInJiraContext(IncomingEmailManager.scala:197) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailManager.createIssueFromEmail(IncomingEmailManager.scala:177) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$crea$$$$311dbd58eb432d26726307e187be9da$$$$anonfun$apply$13$$anonfun$apply$15.apply(IncomingEmailService.scala:113) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$crea$$$$311dbd58eb432d26726307e187be9da$$$$anonfun$apply$13$$anonfun$apply$15.apply(IncomingEmailService.scala:112) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12$$anonfun$apply$13.apply(IncomingEmailService.scala:112) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12$$anonfun$apply$13.apply(IncomingEmailService.scala:110) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$com$$$$$cd2731b58a8142effad79be1482acd$$$$inEmailContext$1$$anonfun$apply$26.apply(IncomingEmailService.scala:164) at com.atlassian.servicedesk.internal.utils.context.PortalContextUtil$.inPortalContext(PortalContextUtil.scala:23) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$com$atlassian$servicedesk$internal$feature$emailchannel$IncomingEmailService$$inEmailContext$1.apply(IncomingEmailService.scala:163) at com.atlassian.servicedesk.internal.utils.context.AuthenticationContextUtil$.runAsUser(AuthenticationContextUtil.scala:15) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService.com$atlassian$servicedesk$internal$feature$emailchannel$IncomingEmailService$$inEmailContext(IncomingEmailService.scala:161) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12.apply(IncomingEmailService.scala:108) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12.apply(IncomingEmailService.scala:107) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10$$anonfun$apply$11.apply(IncomingEmailService.scala:107) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10$$anonfun$apply$11.apply(IncomingEmailService.scala:106) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10.apply(IncomingEmailService.scala:106) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10.apply(IncomingEmailService.scala:105) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2.apply(IncomingEmailService.scala:105) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2.apply(IncomingEmailService.scala:104) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService.createIssueFromEmail(IncomingEmailService.scala:104) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService.processEmail(IncomingEmailService.scala:75) at com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.handler.SDMailHandler.processMessage(SDMailHandler.scala:41) at com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.handler.SDMailHandler.handleNewMessage(SDMailHandler.scala:25) at com.atlassian.jira.internal.mail.processor.feature.processor.MailHandlerWorker.handle(MailHandlerWorker.java:67) at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorWorker.processMailItem(MailProcessorWorker.java:149) at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorWorker.process(MailProcessorWorker.java:83) at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorService.run(MailProcessorService.java:41) at com.atlassian.jira.internal.mail.processor.services.MailProcessorExecutor.run(MailProcessorExecutor.java:34) at com.atlassian.jira.internal.mail.processor.services.AbstractMailExecutor.execute(AbstractMailExecutor.java:48) at com.atlassian.jira.internal.mail.processor.services.MailJobRunner.runJob(MailJobRunner.java:38) 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) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) {noformat} After the stacktrace there are no further messages from the mail processor until the next scheduled run of the processor. This second run (and all subsequent runs) throw the same stacktrace. * You can see that three messages were found for processing. The first message is the UTF-7 and this causes the handler to fail, the two other messages are never processed. h3. Workaround The UTF-7 message must be removed in order for the mail processor to process any further mail. If you wish to recover the email content before deletion, follow the KB below: * https://confluence.atlassian.com/pages/viewpage.action?pageId=728138770 Then you can proceed with deleting the affected ID that stuck, refer to the steps below: # Backup the database # Delete following the command below: {noformat} delete from "AO_2C4E5C_MAILITEMCHUNK" where "MAIL_ITEM_ID" = <id from above>; delete from "AO_2C4E5C_MAILITEM" where "ID" = <id from above>; {noformat} NOTE: For Cloud customer, please inform support team to perform troubleshooting and workaround for this bug.
    via by Tim Evans,
  • The JIRA Service Desk mail handler stops processing messages when it encounters a email encoded in UTF-7. When a message encoded in UTF-7 is encountered, a stacktrace is thrown and the processor stops running. Any messages received after the UTF-7 message are not processed. {noformat} 2015-04-22 22:18:32,991 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Found 3 mail item(s) for processing ... 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Starts processing mail item [id: 99] ... 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Checking if mail item [id: 99] is a mail loop ... 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Filtering message [message number: 0] using mail filter [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.filter.SDAutoReplyFilter]... 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Finished filtering message [message number: 0] using mail filter [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.filter.SDAutoReplyFilter] 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Filtering message [message number: 0] using mail filter [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.filter.SDBulkFilter]... 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Finished filtering message [message number: 0] using mail filter [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.filter.SDBulkFilter] 2015-04-22 22:18:32,992 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Filtering message [message number: 0] using mail filter [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.filter.SDSentFromJIRAFilter]... 2015-04-22 22:18:32,993 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Finished filtering message [message number: 0] using mail filter [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.filter.SDSentFromJIRAFilter] 2015-04-22 22:18:32,993 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Filtering message [message number: 0] using mail filter [com.atlassian.jira.mail.processor.api.handler.DeliveryStatusMailFilter]... 2015-04-22 22:18:32,993 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Finished filtering message [message number: 0] using mail filter [com.atlassian.jira.mail.processor.api.handler.DeliveryStatusMailFilter] 2015-04-22 22:18:32,994 atlassian-scheduler-quartz1.clustered_Worker-3 DEBUG ServiceRunner [mail.incoming.jepp.processor] Handling message [message number: 0] using main handler [com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.handler.SDMailHandler]... 2015-04-22 22:18:33,031 atlassian-scheduler-quartz1.clustered_Worker-3 ERROR anonymous [mail.incoming.jepp.processor] MailJobRunner Failed java.io.UnsupportedEncodingException: utf-7 at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source) 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.MimeMessage.getContent(MimeMessage.java:1420) at com.atlassian.servicedesk.squalor.email.ServiceDeskMailUtils.getAttachments(ServiceDeskMailUtils.java:258) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailManager.createIssueInJiraContext(IncomingEmailManager.scala:197) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailManager.createIssueFromEmail(IncomingEmailManager.scala:177) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$crea$$$$311dbd58eb432d26726307e187be9da$$$$anonfun$apply$13$$anonfun$apply$15.apply(IncomingEmailService.scala:113) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$crea$$$$311dbd58eb432d26726307e187be9da$$$$anonfun$apply$13$$anonfun$apply$15.apply(IncomingEmailService.scala:112) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12$$anonfun$apply$13.apply(IncomingEmailService.scala:112) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12$$anonfun$apply$13.apply(IncomingEmailService.scala:110) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$com$$$$$cd2731b58a8142effad79be1482acd$$$$inEmailContext$1$$anonfun$apply$26.apply(IncomingEmailService.scala:164) at com.atlassian.servicedesk.internal.utils.context.PortalContextUtil$.inPortalContext(PortalContextUtil.scala:23) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$com$atlassian$servicedesk$internal$feature$emailchannel$IncomingEmailService$$inEmailContext$1.apply(IncomingEmailService.scala:163) at com.atlassian.servicedesk.internal.utils.context.AuthenticationContextUtil$.runAsUser(AuthenticationContextUtil.scala:15) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService.com$atlassian$servicedesk$internal$feature$emailchannel$IncomingEmailService$$inEmailContext(IncomingEmailService.scala:161) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12.apply(IncomingEmailService.scala:108) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10$$anonfun$apply$11$$anonfun$apply$12.apply(IncomingEmailService.scala:107) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10$$anonfun$apply$11.apply(IncomingEmailService.scala:107) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10$$anonfun$apply$11.apply(IncomingEmailService.scala:106) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10.apply(IncomingEmailService.scala:106) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2$$anonfun$apply$10.apply(IncomingEmailService.scala:105) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2.apply(IncomingEmailService.scala:105) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService$$anonfun$createIssueFromEmail$2.apply(IncomingEmailService.scala:104) at scalaz.$bslash$div$class.flatMap(Either.scala:117) at scalaz.$bslash$div$minus.flatMap(Either.scala:283) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService.createIssueFromEmail(IncomingEmailService.scala:104) at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailService.processEmail(IncomingEmailService.scala:75) at com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.handler.SDMailHandler.processMessage(SDMailHandler.scala:41) at com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.handler.SDMailHandler.handleNewMessage(SDMailHandler.scala:25) at com.atlassian.jira.internal.mail.processor.feature.processor.MailHandlerWorker.handle(MailHandlerWorker.java:67) at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorWorker.processMailItem(MailProcessorWorker.java:149) at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorWorker.process(MailProcessorWorker.java:83) at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorService.run(MailProcessorService.java:41) at com.atlassian.jira.internal.mail.processor.services.MailProcessorExecutor.run(MailProcessorExecutor.java:34) at com.atlassian.jira.internal.mail.processor.services.AbstractMailExecutor.execute(AbstractMailExecutor.java:48) at com.atlassian.jira.internal.mail.processor.services.MailJobRunner.runJob(MailJobRunner.java:38) 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) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) {noformat} After the stacktrace there are no further messages from the mail processor until the next scheduled run of the processor. This second run (and all subsequent runs) throw the same stacktrace. * You can see that three messages were found for processing. The first message is the UTF-7 and this causes the handler to fail, the two other messages are never processed. h3. Workaround The UTF-7 message must be removed in order for the mail processor to process any further mail. If you wish to recover the email content before deletion, follow the KB below: * https://confluence.atlassian.com/pages/viewpage.action?pageId=728138770 Then you can proceed with deleting the affected ID that stuck, refer to the steps below: # Backup the database # Delete following the command below: {noformat} delete from "AO_2C4E5C_MAILITEMCHUNK" where "MAIL_ITEM_ID" = <id from above>; delete from "AO_2C4E5C_MAILITEM" where "ID" = <id from above>; {noformat} NOTE: For Cloud customer, please inform support team to perform troubleshooting and workaround for this bug.
    via by Tim Evans,
    • java.io.UnsupportedEncodingException: big5 at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source) at java.io.InputStreamReader.<init>(Unknown Source)

    Users with the same issue

    Unknown visitor1 times, last one,
    Hronom
    19 times, last one,
    serious2monkeys
    589 times, last one,
    Unknown visitor1 times, last one,
    rp
    1 times, last one,
    1 more bugmates