javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary

前端 未结 11 2391
暖寄归人
暖寄归人 2020-12-03 17:01

Currently I\'m inline of writing a code that will be listening to a directory. when the directory is updated with .apk file, I\'ll send a mail with this .apk file to a gmail

11条回答
  •  有刺的猬
    2020-12-03 17:47

    Tell me more about the environment in which your code is running. What JDK are you using? Are you running in an application server?

    The JavaBeans Activation Framework (JAF) looks for configuration files that tell how to map MIME types to the Java classes (DataContentHandlers) that handle them. It uses the ClassLoader to find the configuration files. If there are problems with the ClassLoader, the configuration files might not be found.

    You might want to try the workaround described here, but of course it would be better to determine the root cause of the problem for you.

    Finally, you might want to simplify your program by fixing some of these common JavaMail mistakes.

提交回复
热议问题