No such provider exception..
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, July 1, 2002 11:04 AM

Properties props = System.getProperties(); Session session = Session.getDefaultInstance(props, null); session.setDebug(true); // Get a Store object Store store = null; Folder rf = null; String url="pop3"+"://"+"john"+":"+password+"@"+mailhost.com; if (url != null) { URLName urln = new URLName(url); //it throws no such provider exception here //it throws no such provider exception here store = session.getStore(urln);//it throws no such provider exception here store.connect(); } String r="INBOX"; rf =store.getFolder(r); jLabel2.setText(r   More>>

Properties props = System.getProperties();
Session session = Session.getDefaultInstance(props, null);
session.setDebug(true);
// Get a Store object



Store store = null;
Folder rf = null;
String url="pop3"+"://"+"john"+":"+password+"@"+mailhost.com;

if (url != null) {
URLName urln = new URLName(url);



//it throws no such provider exception here
//it throws no such provider exception here

store = session.getStore(urln);//it throws no such provider exception here
store.connect();
}
String r="INBOX";
rf =store.getFolder(r);

jLabel2.setText(rf.getName());



please write us what can cause this exception ...

   <<Less
About | Sitemap | Contact