java.io.UnsupportedEncodingException: unicode-1-1-utf-7

GitHub | ronankeane | 3 months ago
  1. 0

    Email polling. - 'Unable to load BODYSTRUCTURE.'

    GitHub | 3 months ago | ronankeane
    java.io.UnsupportedEncodingException: unicode-1-1-utf-7
  2. 0

    When JIRA is configured to parse incoming mails (from POP/IMAP) to create new issues, it will go into a loop repeatedly creating issues if the email attachment cannot be parsed. For instance, if an email's attachment has an encoding Java doesn't support (eg. utf-7 - see JRA-5812), then JIRA loops, creating an issue and then failing to clear it because the attachment isn't processed. 2007-01-31 12:49:34,206 JiraQuartzScheduler_Worker-0 WARN [jira.issue.managers.DefaultAttachmentManager] Cannot create attachment without a filename - inline content? See http://jira.atlassian.com/browse/JRA-10825 (file=tempattach30736dat). 2007-01-31 12:49:34,208 JiraQuartzScheduler_Worker-0 ERROR [service.util.handler.CreateIssueHandler] Could not create issue! java.io.UnsupportedEncodingException: unicode-1-1-utf-7 at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:52) at java.io.InputStreamReader.<init>(InputStreamReader.java:83) at com.sun.mail.handlers.text_plain.getContent(text_plain.java:64) at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:774) at javax.activation.DataHandler.getContent(DataHandler.java:521) at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:603) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:236) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:201) at com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:201) at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:115) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:190) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 2007-01-31 12:51:34,224 JiraQuartzScheduler_Worker-3 WARN [jira.issue.managers.DefaultAttachmentManager] Cannot create attachment without a filename - inline content? See http://jira.atlassian.com/browse/JRA-10825 (file=tempattach30737dat). 2007-01-31 12:51:34,226 JiraQuartzScheduler_Worker-3 ERROR [service.util.handler.CreateIssueHandler] Could not create issue! java.io.UnsupportedEncodingException: unicode-1-1-utf-7 at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:52) at java.io.InputStreamReader.<init>(InputStreamReader.java:83) at com.sun.mail.handlers.text_plain.getContent(text_plain.java:64) at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:774) at javax.activation.DataHandler.getContent(DataHandler.java:521) at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:603) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:236) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:201) at com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:201) at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:115) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:190) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191)

    Atlassian JIRA | 10 years ago | Dylan Etkin [Atlassian]
    java.io.UnsupportedEncodingException: unicode-1-1-utf-7
  3. 0

    When JIRA is configured to parse incoming mails (from POP/IMAP) to create new issues, it will go into a loop repeatedly creating issues if the email attachment cannot be parsed. For instance, if an email's attachment has an encoding Java doesn't support (eg. utf-7 - see JRA-5812), then JIRA loops, creating an issue and then failing to clear it because the attachment isn't processed. 2007-01-31 12:49:34,206 JiraQuartzScheduler_Worker-0 WARN [jira.issue.managers.DefaultAttachmentManager] Cannot create attachment without a filename - inline content? See http://jira.atlassian.com/browse/JRA-10825 (file=tempattach30736dat). 2007-01-31 12:49:34,208 JiraQuartzScheduler_Worker-0 ERROR [service.util.handler.CreateIssueHandler] Could not create issue! java.io.UnsupportedEncodingException: unicode-1-1-utf-7 at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:52) at java.io.InputStreamReader.<init>(InputStreamReader.java:83) at com.sun.mail.handlers.text_plain.getContent(text_plain.java:64) at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:774) at javax.activation.DataHandler.getContent(DataHandler.java:521) at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:603) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:236) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:201) at com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:201) at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:115) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:190) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 2007-01-31 12:51:34,224 JiraQuartzScheduler_Worker-3 WARN [jira.issue.managers.DefaultAttachmentManager] Cannot create attachment without a filename - inline content? See http://jira.atlassian.com/browse/JRA-10825 (file=tempattach30737dat). 2007-01-31 12:51:34,226 JiraQuartzScheduler_Worker-3 ERROR [service.util.handler.CreateIssueHandler] Could not create issue! java.io.UnsupportedEncodingException: unicode-1-1-utf-7 at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:52) at java.io.InputStreamReader.<init>(InputStreamReader.java:83) at com.sun.mail.handlers.text_plain.getContent(text_plain.java:64) at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:774) at javax.activation.DataHandler.getContent(DataHandler.java:521) at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:603) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:236) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:201) at com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:201) at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:115) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:190) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191)

    Atlassian JIRA | 10 years ago | Dylan Etkin [Atlassian]
    java.io.UnsupportedEncodingException: unicode-1-1-utf-7
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    get Body text using javamail and retrieve to email

    Coderanch | 4 years ago | jordan ryan
    java.io.UnsupportedEncodingException: unicode-1-1-utf-7
  6. 0

    Apache camel imap "Error accessing headers due to: charset"

    Stack Overflow | 3 weeks ago | lrkwz
    org.apache.camel.RuntimeCamelException: Error accessing headers due to: charset

  1. serious2monkeys 32 times, last 3 months ago
  2. rp 1 times, last 8 months ago
3 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.io.UnsupportedEncodingException

    unicode-1-1-utf-7

    at sun.nio.cs.StreamDecoder.forInputStreamReader()
  2. Java RT
    InputStreamReader.<init>
    1. sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:71)[?:1.8.0_45]
    2. java.io.InputStreamReader.<init>(InputStreamReader.java:100)[?:1.8.0_45]
    2 frames
  3. JavaMail API (compat)
    text_plain.getContent
    1. com.sun.mail.handlers.text_plain.getContent(text_plain.java:80)[javax.mail-1.5.6.jar:1.5.6]
    1 frame
  4. Java RT
    DataHandler.getContent
    1. javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:795)[?:1.8.0_45]
    2. javax.activation.DataHandler.getContent(DataHandler.java:542)[?:1.8.0_45]
    2 frames
  5. JavaMail API
    MimeBodyPart.getContent
    1. javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:657)[javax.mail-1.5.6.jar:1.5.6]
    1 frame
  6. org.moqui.impl
    ServiceFacadeImpl.runEmecaRules
    1. org.moqui.impl.service.EmailEcaRule.makeBodyPartList(EmailEcaRule.groovy:124)[moqui-framework-2.0.0.jar:2.0.0]
    2. org.moqui.impl.service.EmailEcaRule.makeBodyPartList(EmailEcaRule.groovy:134)[moqui-framework-2.0.0.jar:2.0.0]
    3. org.moqui.impl.service.EmailEcaRule.runIfMatches(EmailEcaRule.groovy:84)[moqui-framework-2.0.0.jar:2.0.0]
    4. org.moqui.impl.service.ServiceFacadeImpl.runEmecaRules(ServiceFacadeImpl.groovy:429)[moqui-framework-2.0.0.jar:2.0.0]
    4 frames
  7. Unknown
    pollEmailServer_groovy.run
    1. pollEmailServer_groovy.run(pollEmailServer_groovy:89)[script:?]
    1 frame
  8. org.moqui.impl
    ServiceCallJobImpl$ServiceJobCallable.call
    1. org.moqui.impl.context.runner.GroovyScriptRunner.run(GroovyScriptRunner.groovy:50)[moqui-framework-2.0.0.jar:2.0.0]
    2. org.moqui.impl.context.ResourceFacadeImpl.script(ResourceFacadeImpl.groovy:356)[moqui-framework-2.0.0.jar:2.0.0]
    3. org.moqui.impl.service.runner.ScriptServiceRunner.runService(ScriptServiceRunner.groovy:49)[moqui-framework-2.0.0.jar:2.0.0]
    4. org.moqui.impl.service.ServiceCallSyncImpl.callSingle(ServiceCallSyncImpl.groovy:317)[moqui-framework-2.0.0.jar:2.0.0]
    5. org.moqui.impl.service.ServiceCallSyncImpl.call(ServiceCallSyncImpl.groovy:165)[moqui-framework-2.0.0.jar:2.0.0]
    6. org.moqui.impl.service.ServiceCallJobImpl$ServiceJobCallable.call(ServiceCallJobImpl.groovy:207)[moqui-framework-2.0.0.jar:2.0.0]
    6 frames
  9. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_45]
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_45]
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_45]
    4. java.lang.Thread.run(Thread.java:745)[?:1.8.0_45]
    4 frames