Error List

Error List for the ‘JAVA-Mail’ Category

java.lang.VerifyError: llegal use of nonvirtual function call

Applies to:
Linux

Description:
Occurs while trying to run program on Linux

Cause:
You have tried to run program on Linux and got a very strange error message and the program failed.

JAVA-Mail , , , ,

UnsupportedDataTypeException when sending new message

Applies to:
NA

Description:
Occurs while sending a message with unsupported content

Cause:
You probably set some content for your message using the setContent(Object o, String type) method.

JAVA-Mail , ,

Classes in com.sun.mail cannot be found

Applies to:
NA

Description:
Occurs when classes in com.sun.mail cannot be found

Cause:
The most common cause of problems like this is having more than one copy of mail.jar in your CLASSPATH or available to your application.

JAVA-Mail ,

MessagingException: 501 HELO requires domain address

Applies to:
NA

Description:
Occurs while trying to send a message

Cause:
The SMTP provider uses the results of InetAddress.getLocalHost().getHostName() in the SMTP HELO command. If that call fails to return any data, no name is sent in the HELO command.

JAVA-Mail , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Can't find a service provider for "smtp" or "imap" or address type "rfc822"

Applies to:
NA

Description:
Occurs when servlet can’t find JavaMail classes

Cause:
Usually this is because JavaMail can’t access the configuration files in mail.jar, possibly because of a security permission problem.

JAVA-Mail , , ,

Must issue a STARTTLS command first

Applies to:
NA

Description:
Occurs while trying to send a message

Cause:
Your SMTP server wants you to switch from a plain text connection to a secure connection using the STARTTLS command.

JAVA-Mail

Trouble logging into Microsoft Exchange server

Applies to:
NA

Description:
Occurs when logging into Microsoft Exchange server

Cause:
You were sure that You used the correct username and password while logging into Microsoft Exchange server, but trouble occurred.

JAVA-Mail ,

javax.mail.SendFailedException: 550 Unable to relay for my-address

JavaMail does not properly encode and decode filenames in non-ASCII character sets

Applies to:
NA

Description:
Occurs while encoding and decoding filenames in non-ASCII character sets

Cause:
The filename is stored as a parameter in MIME headers. Encoded filenames of the form =?ISO-8859-15?B?5OTkLUluZm8ucGRm?= are not part of the MIME spec. A filename of the form =?A?B?C?= is a perfectly valid filename, not an incorrectly encoded filename. JavaMail does not encoded and decode filenames by default because doing so would violate the MIME spec.
The base MIME spec does not allow for encoding parameters. RFC 2231 defines a new way to include encoded paramters, including filenames, in MIME headers. It is not compatible with the de facto way that many applications illegally encode filenames. Even though JavaMail supports RFC 2231, that alone does not allow JavaMail to interoperate with these existing programs. As far as I know, very few existing programs support RFC 2231.
If you choose to violate the MIME spec, in order to interoperate with other programs that also violate the MIME spec, JavaMail gives you all the tools you need to do so. Starting with JavaMail 1.4, setting the System properties “mail.mime.encodefilename” and “mail.mime.decodefilename” to “true” will cause JavaMail to encode and decode the filename parameter.

JAVA-Mail , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Connection refused error

Applies to:
NA

Description:
Occurs while trying to send a message

Cause:
The host you’re trying to connect to is most likely not running a mail server.

JAVA-Mail