How can I echo the JavaMail Session object properties
2 posts in topic
Flat View  Flat View

Posted By:   justin_whitehead
Posted On:   Friday, March 23, 2001 11:11 AM

My program immediately returns the NoSuchProvider exception. I am not convinced that the Properties used to initialize the Session object are correct. (ie mail.smtp.host is not being overridden with by props.put(mail.smtp.host,10.x.x.x) line) I would like to echo the properties used to establish the connection to the SMTP server so that I can debug the issue, but I do not know how. Any suggestions?

No Such Provider Exception

Posted By:   justin_whitehead  
Posted On:   Monday, March 26, 2001 01:23 PM

I have fixed my own problem with the help of a java program encapsulated in the JavaMail 1.2 zip file. Registry.java is a utility which verifies the available providers for the JavaMail API within a particular system. After running the registry utility I realized that the default configuration files were not being read. I reinstalled JavaMail (according to the instructions in Readme.txt), adjusted the client CLASSPATH, and the program worked.

Re: How can I echo the JavaMail Session object properties

Posted By:   John_Zukowski  
Posted On:   Sunday, March 25, 2001 03:44 PM

No such provider has nothing to do with what machine you are conencting to.
About | Sitemap | Contact