Quantcast
Channel: Active questions tagged aws-lambda - Stack Overflow
Viewing all articles
Browse latest Browse all 4012

Getting this issue in lambda console but locally its works No object dch for mime type multipart/mixed

$
0
0

I am creating an AWS Lambda function in java quarkus.

I am using java mail and Amazon SES for email.

I have all the required dependencies added and its running completely fine while testing locally through postman. I get all the attachments that is pdf file on email. But whenever I try to test in the AWS Lambda console I get this:

no object dch for mime type multipart/mixed

I have tried adding the thread to load class and also:

MailcapCommandMap mc = (MailcapCommandMap) CommandMap.getDefaultCommandMap(); mc.addMailcap("text/html;; x-java-content-handler=com.sun.mail.handlers.text_html"); mc.addMailcap("text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml"); mc.addMailcap("text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain"); mc.addMailcap("multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed"); mc.addMailcap("message/rfc822;; x-java-content- handler=com.sun.mail.handlers.message_rfc822"); 

but no luck as of now. Any one knows some solution?


Viewing all articles
Browse latest Browse all 4012

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>