Skip to Content
0
Former Member
Mar 30, 2005 at 04:58 AM

Javamail from a jspdynpro iview

32 Views

Hi,

I have created a jsp dynpro component which uses java mail api and smtp to send emails. We don't have KM installation and hence we have to use java mail.

The iview works fine in 6.0.7.0.0.Enterprise_Portal_Support_Package_7

but the iview throws NoSuchProvider exception in version

6.0.9.0.0.Enterprise_Portal_Support_Release

Stack trace is as follows:

#1.5#000F20191F04007900000808000023630003F37D54E083F4#1112144550592#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#msivagur01#1411####5b971e70a0b711d9a7e9000f20191f04#Thread[PRT-Async 5,5,PRT-Async]##0#0#Warning#1#/System/Server#Java###SMTPCurrentException 
[EXCEPTION]
 {0}#1#javax.mail.NoSuchProviderException: smtp
        at javax.mail.Session.getService(Session.java:611)
        at javax.mail.Session.getTransport(Session.java:541)
        at javax.mail.Session.getTransport(Session.java:484)
        at javax.mail.Session.getTransport(Session.java:464)
        at javax.mail.Session.getTransport(Session.java:519)
        at javax.mail.Transport.send0(Transport.java:155)
        at javax.mail.Transport.send(Transport.java:81)

I have packaged mail.jar, activation.jar and smtp.jar as part of the par under the lib directory.

I though it could be a version mismatch of the jars and tried removing the jars from the lib directory. But that woudn't work either.

Can you please help?

Thanks,

MS