jakartaee / jakartaee/mail-api

java.io.IOException: Unknown encoding:

Open
#420 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
285
Forks
109
Avg merge
15h 19m
Merged PRs (30d)
1

Description

Exception in thread "main" java.io.IOException: Unknown encoding:
at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:92)
at com.sun.mail.handlers.text_plain.getContent(text_plain.java:59)
at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:795)
at javax.activation.DataHandler.getContent(DataHandler.java:542)
at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:659)
Caused by: javax.mail.MessagingException: Unknown encoding:
at javax.mail.internet.MimeUtility.decode(MimeUtility.java:381)
at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:85)
... 9 more

I find same problem from this
https://github.com/javaee/javamail/pull/312
but ,it seems still not solve

Contributor guide

Open the contributing guide

Research direction

Start with the stack trace at javax.mail.internet.MimeUtility.decode and MimePartDataSource.getInputStream, then review the referenced javaee/javamail pull request #312. A useful outcome is a reproducible case and a clear determination of whether that change addresses the empty or unknown encoding error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.