geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-4483) Miss spelling of the SMTPSTransport in the META-INF/javamail.default.providers of geronimo-javamail_1.4_provider.jar and geronimo-javamail_1.4.jar
Date Thu, 25 Dec 2008 06:50:44 GMT
Miss spelling of the SMTPSTransport in the META-INF/javamail.default.providers of geronimo-javamail_1.4_provider.jar
and geronimo-javamail_1.4.jar
--------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: GERONIMO-4483
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4483
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: mail
            Reporter: Willem Jiang


I tried to use the geronimo-javamail_1.4.jar to send the mail with stmps protocol
And I got this error 
{code}
Caused by: javax.mail.NoSuchProviderException: Unable to load class for provider
: protocol=smtps; type=javax.mail.Provider$Type@b1fea4; class=org.apache.geronim
o.javamail.transport.smtp.SMTPTSransport; vendor=Apache Software Foundation;vers
ion=1.0
        at javax.mail.Session.getService(Session.java:486)
        at javax.mail.Session.getTransport(Session.java:379)
        at javax.mail.Session.getTransport(Session.java:339)
        at org.springframework.mail.javamail.JavaMailSenderImpl.getTransport(Jav
aMailSenderImpl.java:434)
        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailS
enderImpl.java:388)
        ... 19 more
Caused by: java.lang.ClassNotFoundException: org.apache.geronimo.javamail.transp
ort.smtp.SMTPTSransport
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at javax.mail.Session.getService(Session.java:482)
        ... 23 more
{code}

After digging the source code , I found there is a typo (SMTPTSransport should be SMTPSTransport)
in entry of protocol=smtps of  the META-INF/javamail.default.providers in geronimo-javamail_1.4_provider.jar
and geronimo-javamail_1.4.jar (most versions).
I think this bug has been existing for almost 2 years. :( 

BTW
I can send the mail with stmps protocol by fix the typo in my local repository.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message