geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Han Hong Fang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-6167) Mistyped service provider name: SMTPTSransport
Date Wed, 21 Sep 2011 03:05:10 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-6167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13109235#comment-13109235
] 

Han Hong Fang commented on GERONIMO-6167:
-----------------------------------------

Hi Jesseļ¼Œ

Thanks for reporting this issue. I just checked the source code, and found that this problem
has been fixed since geronimo-javamail-1.4-mail-1.7.jar. You may try the new jars version
1.7 or 1.8.x, which can be downloaded from http://search.maven.org/#search|gav|1|g%3A%22org.apache.geronimo.javamail%22%20AND%20a%3A%22geronimo-javamail_1.4%22

> Mistyped service provider name: SMTPTSransport
> ----------------------------------------------
>
>                 Key: GERONIMO-6167
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6167
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>    Affects Versions: 1.x
>         Environment: Linux, JDK 6
>            Reporter: Jesse Glick
>            Assignee: Han Hong Fang
>            Priority: Critical
>
> When I try to use the Ant {{<mail>}} task with {{geronimo-javamail-1.4-mail-1.2.jar}}
(and {{geronimo-activation-1.1-spec-1.0.jar}} and {{geronimo-activation-2.0.2.jar}}), I get
a stack trace:
> {code}
> Problem while sending mime mail:
> 	at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:284)
> 	at org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java:577)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> 	at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> 	at org.apache.tools.ant.Task.perform(Task.java:348)
> 	at org.apache.tools.ant.Target.execute(Target.java:390)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:411)
> 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
> 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> 	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
> 	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:285)
> 	at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
> 	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
> Caused by: javax.mail.NoSuchProviderException: Unable to load class for provider: protocol=smtps;
type=javax.mail.Provider$Type@177b101; class=org.apache.geronimo.javamail.transport.smtp.SMTPTSransport;
vendor=Apache Software Foundation;version=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.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:256)
> 	... 16 more
> Caused by: java.lang.ClassNotFoundException: org.apache.geronimo.javamail.transport.smtp.SMTPTSransport
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at org.apache.tools.ant.module.bridge.AntBridge$MainClassLoader.findClass(AntBridge.java:646)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> 	at javax.mail.Session.getService(Session.java:482)
> 	... 19 more
> {code}
> It seems that {[META-INF/javamail.default.providers}} lists {{SMTPTSransport}} but it
should be {{SMTPSTransport}}.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message