classpathx-javamail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Classpathx-javamail] NoSuchProviderException: No provider for nntp


From: Thufir
Subject: [Classpathx-javamail] NoSuchProviderException: No provider for nntp
Date: Thu, 21 Mar 2013 02:45:56 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4

I'm loading the .newsrc file and nntp.host from a properties file, which is echoed to the output below. I believe those properties are correct and are being passed correctly.

When I get "no provider for nntp" I'm trying

store = session.getStore("nntp://localhost/";); //same as in the properties file

https://github.com/THUFIR/gnumail-providers/blob/master/src/net/bounceme/dur/nntp/gnu/Usenet.java

which I believe is correct (the leafnode NNTP server is running on localhost).


stack trace:

address@hidden:~$
address@hidden:~$ java -jar NetBeansProjects/gnumail-providers/dist/gnumail-providers.jar
Mar 21, 2013 2:37:36 AM net.bounceme.dur.nntp.gnu.Main main
INFO: well here we are
Mar 21, 2013 2:37:36 AM net.bounceme.dur.nntp.gnu.PropertiesReader getProps
INFO: {mail.nntp.newsrc.file=/home/thufir/.newsrc, nntp.host=nntp://localhost/}
DEBUG: setDebug: JavaMail version 1.4.6
Mar 21, 2013 2:37:36 AM net.bounceme.dur.nntp.gnu.Usenet <init>
SEVERE: FAILED TO LOAD MESSAGES
javax.mail.NoSuchProviderException: No provider for nntp
    at javax.mail.Session.getProvider(Session.java:473)
    at javax.mail.Session.getStore(Session.java:547)
    at net.bounceme.dur.nntp.gnu.Usenet.connect(Usenet.java:35)
    at net.bounceme.dur.nntp.gnu.Usenet.<init>(Usenet.java:24)
    at net.bounceme.dur.nntp.gnu.Usenet.<clinit>(Usenet.java:12)
    at net.bounceme.dur.nntp.gnu.Main.<init>(Main.java:9)
    at net.bounceme.dur.nntp.gnu.Main.main(Main.java:18)

Mar 21, 2013 2:37:36 AM net.bounceme.dur.nntp.gnu.Main <init>
INFO: in constructor
DEBUG: setDebug: JavaMail version 1.4.6
Exception in thread "main" javax.mail.NoSuchProviderException: No provider for nntp
    at javax.mail.Session.getProvider(Session.java:473)
    at javax.mail.Session.getStore(Session.java:547)
    at net.bounceme.dur.nntp.gnu.Usenet.connect(Usenet.java:35)
    at net.bounceme.dur.nntp.gnu.Main.<init>(Main.java:13)
    at net.bounceme.dur.nntp.gnu.Main.main(Main.java:18)
address@hidden:~$


As I recall, this is a configuration error, however I cannot recall what exactly the problem is. I've looked at old code, and it seems to be doing the exact same thing to load the Session, so I'm not sure what's going on.

Just a pointer in the right direction would be appreciated.

(I'm in the process of forking gnumail-providers, for what it's worth. I think I've done that process correctly and legally on github.)



thanks,

Thufir



reply via email to

[Prev in Thread] Current Thread [Next in Thread]