No Such Provider Exception
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   anupam_trivedi
Posted On:   Thursday, May 31, 2001 06:14 AM

Why am I getting
"javax.mail.NoSuchProviderException: No provider for smtp"
when I am using an IP address given by my site space provider to send mail to usa.net

Re: No Such Provider Exception

Posted By:   John_Zukowski  
Posted On:   Thursday, May 31, 2001 10:38 PM

It's possible that you are only using part of the 1.2 JavaMail distribution. There is one .jar file that has no providers. If you are using mailapi.jar, you must also have smtp.jar installed. If you are using mail.jar, you have the SMTP provider. Another possibility is conflict mail.provider files if you are using providers not from Sun.

Re: No Such Provider Exception

Posted By:   Michael_Wax  
Posted On:   Thursday, May 31, 2001 02:05 PM

A NoSuchProviderException is thrown if a Provider class, as defined in the javamail.providers resource file, is not found. Do you have this file set up?
Do you have an SMTPTransport class?
About | Sitemap | Contact