java.lang.NoSuchMethodException: gnu.mail.providers.smtp.SMTPTransport.<init>(javax.mail.Session, javax.mail.URLName)

Atlassian JIRA | Bogdan Dziedzic [Atlassian] | 6 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0
    samebug tip
    Spark-notebook cannot load json from gzipped files. Uncompress them before loading.
    via GitHub by cagalli83
  2. 0
    samebug tip
    I downgraded to spark-notebook scala 2.10 with hadoop 2.6.0 then it worked. Finally switched to Apache Drill, works like a charm for diverse datasets.
  3. 0

    Steps needed to reproduce the behaviour: # Install Tomcat provided in packaged by Linux. # Place on CLASS_PATH {{mail-1.1.2}} from [GNU JavaMail|http://www.gnu.org/software/classpathx/javamail/javamail.html]. # Deploy JIRA WAR. # Configure SMTP integration in JIRA. # Attempt to sent email for e.g. from the admin > Services > SMTP. {noformat} An error has occurred with sending the test email: com.atlassian.mail.MailException: javax.mail.NoSuchProviderException: smtp at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:191) at com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(SendTestMail.java:91) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139) ... Caused by: javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:794) at javax.mail.Session.getTransport(Session.java:718) at javax.mail.Session.getTransport(Session.java:661) at javax.mail.Session.getTransport(Session.java:641) at alt.javax.mail.SessionImpl.getTransport(SessionImpl.java:77) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:177) ... 111 more DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,gnu.mail.providers.smtp.SMTPTransport,nferrier@tapsellferrier.co.uk] java.lang.NoSuchMethodException: gnu.mail.providers.smtp.SMTPTransport.<init>(javax.mail.Session, javax.mail.URLName) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getConstructor(Unknown Source) {noformat} Possible work around is listed in our documentation. {quote} To prevent any conflicts, check your application server's lib/ directory: * If the application server already contains mail-1.4.1.jar and activation-1.1.1.jar, then just remove WEB-INF/lib/mail-1.4.1.jar and WEB-INF/lib/activation-1.1.1.jar from the JIRA webapp. * If the application server does not contain mail-1.4.1.jar and activation-1.1.1.jar, then move JIRA's WEB-INF/lib/mail-1.4.1.jar and WEB-INF/lib/activation-1.1.1.jar into the application server's lib/ directory {quote} http://confluence.atlassian.com/display/JIRA/Configuring+JIRA+to+Send+SMTP+Mail#ConfiguringJIRAtoSendSMTPMail-MovetheJavaMailClasses

    Atlassian JIRA | 6 years ago | Bogdan Dziedzic [Atlassian]
    java.lang.NoSuchMethodException: gnu.mail.providers.smtp.SMTPTransport.<init>(javax.mail.Session, javax.mail.URLName)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Steps needed to reproduce the behaviour: # Install Tomcat provided in packaged by Linux. # Place on CLASS_PATH {{mail-1.1.2}} from [GNU JavaMail|http://www.gnu.org/software/classpathx/javamail/javamail.html]. # Deploy JIRA WAR. # Configure SMTP integration in JIRA. # Attempt to sent email for e.g. from the admin > Services > SMTP. {noformat} An error has occurred with sending the test email: com.atlassian.mail.MailException: javax.mail.NoSuchProviderException: smtp at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:191) at com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(SendTestMail.java:91) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139) ... Caused by: javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:794) at javax.mail.Session.getTransport(Session.java:718) at javax.mail.Session.getTransport(Session.java:661) at javax.mail.Session.getTransport(Session.java:641) at alt.javax.mail.SessionImpl.getTransport(SessionImpl.java:77) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:177) ... 111 more DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,gnu.mail.providers.smtp.SMTPTransport,nferrier@tapsellferrier.co.uk] java.lang.NoSuchMethodException: gnu.mail.providers.smtp.SMTPTransport.<init>(javax.mail.Session, javax.mail.URLName) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getConstructor(Unknown Source) {noformat} Possible work around is listed in our documentation. {quote} To prevent any conflicts, check your application server's lib/ directory: * If the application server already contains mail-1.4.1.jar and activation-1.1.1.jar, then just remove WEB-INF/lib/mail-1.4.1.jar and WEB-INF/lib/activation-1.1.1.jar from the JIRA webapp. * If the application server does not contain mail-1.4.1.jar and activation-1.1.1.jar, then move JIRA's WEB-INF/lib/mail-1.4.1.jar and WEB-INF/lib/activation-1.1.1.jar into the application server's lib/ directory {quote} http://confluence.atlassian.com/display/JIRA/Configuring+JIRA+to+Send+SMTP+Mail#ConfiguringJIRAtoSendSMTPMail-MovetheJavaMailClasses

    Atlassian JIRA | 6 years ago | Bogdan Dziedzic [Atlassian]
    java.lang.NoSuchMethodException: gnu.mail.providers.smtp.SMTPTransport.<init>(javax.mail.Session, javax.mail.URLName)
  6. 0

    Method signature change Weld 2.1.2.Final and cdi-unit 2.2.1

    GitHub | 3 years ago | bradrust
    org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.jglue.cdiunit.ContextController.setup() on org.jglue.cdiunit.ContextController@65faa5a9

  1. batwalrus76 2 times, last 2 days ago
  2. PKeidel 2 times, last 3 months ago
  3. Indri Yunita 1 times, last 3 months ago
  4. filpgame 14 times, last 3 months ago
  5. Riyaz 2 times, last 4 months ago
24 more registered users
25 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoSuchMethodException

    gnu.mail.providers.smtp.SMTPTransport.<init>(javax.mail.Session, javax.mail.URLName)

    at java.lang.Class.getConstructor0()
  2. Java RT
    Class.getConstructor
    1. java.lang.Class.getConstructor0(Unknown Source)
    2. java.lang.Class.getConstructor(Unknown Source)
    2 frames