javax.mail.NoSuchProviderException: No provider for pop3

Bug #641140 reported by Alexey Vazhnov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jakarta-jmeter (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I installed JMeter 2.3.4 from the repository.

Ubuntu 10.04 amd64.
Linux work 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:21:58 UTC 2010 x86_64 GNU/Linux

dpkg --list | grep jmeter
ii jmeter 2.3.4-2ubuntu1 Load testing and performance measurement app
ii jmeter-ftp 2.3.4-2ubuntu1 Load testing and performance measurement app
ii jmeter-help 2.3.4-2ubuntu1 Load testing and performance measurement app
ii jmeter-http 2.3.4-2ubuntu1 Load testing and performance measurement app
ii jmeter-java 2.3.4-2ubuntu1 Load testing and performance measurement app
ii jmeter-jms 2.3.4-2ubuntu1 Load testing and performance measurement app
ii jmeter-junit 2.3.4-2ubuntu1 Load testing and performance measurement app
ii jmeter-ldap 2.3.4-2ubuntu1 Load testing and performance measurement app
ii jmeter-mail 2.3.4-2ubuntu1 Load testing and performance measurement app
ii jmeter-tcp 2.3.4-2ubuntu1 Load testing and performance measurement app

After starting pop3/imap test, the logs get an error «javax.mail.NoSuchProviderException: No provider for pop3». If I download the archive from the official website (version 2.4) and run JMeter from it, everything works, no error.

Revision history for this message
Alexey Vazhnov (vazhnov) wrote :
Revision history for this message
Milamber (milamberspace) wrote :

Hello,
it's not a bug. With 2.3.4 we need download activation.jar and mail.jar to do imap/pop3 load test.
See :
/usr/share/jmeter/printable_docs/usermanual/get-started.html

/get-started.html#opt_email :
"2.2.3 Email Support
    JMeter has limited Email capabilities. It can send email based on test results, and has a POP3(S)/IMAP(S) sampler. It does not currently support SMTP sampling. To enable Email support, add Sun's JavaMail packages and the activation packages to JMeter's classpath ."

Since 2.4, this files are included in zip archives.
http://jakarta.apache.org/jmeter/changes.html (for 2.4 version)
"Beanshell, JavaMail and JMS API (Apache Geronimo) jars are now included in the binary archive. "

Milamber

Changed in jakarta-jmeter (Ubuntu):
status: New → Invalid
Revision history for this message
Onkar Shinde (onkarshinde) wrote :

activation.jar is already available in the packages in repositories. The problem here seems to be that it is not in classpath of jmeter. I will try to get this fixed ASAP.

Changed in jakarta-jmeter (Ubuntu):
status: Invalid → New
Revision history for this message
Onkar Shinde (onkarshinde) wrote :

I figured out that both activation.jar as well as gnumail-providers.jar need to be added to classpath. With this I do not get the error mentioned in the bug description for 'POP', 'IMAP' as well as 'IMAPS'. But I still get error for POP3S. Does anyone know which jar files need to be in classpath for POP3S to work?

Revision history for this message
Milamber (milamberspace) wrote :

gnumail-providers.jar seems don't include POP3S support.
http://www.gnu.org/software/classpathx/javamail/javadoc/gnu/mail/providers/pop3/package-summary.html
vs
http://java.sun.com/products/javamail/javadocs/com/sun/mail/pop3/package-summary.html

Only one thread on futur POP3S support (in 2005...) in GNUmail mailing list
http://lists.gnu.org/archive/html/classpathx-javamail/2005-06/msg00006.html

You can use this Ubuntu packages, with include POP3S
libgeronimo-javamail-1.4-provider-java
libgeronimo-javamail-1.4-spec-java

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package jakarta-jmeter - 2.3.4-2ubuntu2

---------------
jakarta-jmeter (2.3.4-2ubuntu2) maverick; urgency=low

  * Change build-dep libgnumail-java -> libgeronimo-javamail-1.4-spec-java.
  * Change runtime dep libgnumail-java -> libgeronimo-javamail-1.4-spec-java.
  * Add runtime dependencies libgeronimo-javamail-1.4-provider-java,
    libgeronimo-activation-1.1-spec-java to jmeter-mail. Change launcher script
    accordingly.
    All these changes fix LP: #641140.
 -- Onkar Shinde <email address hidden> Sat, 25 Sep 2010 18:18:36 +0530

Changed in jakarta-jmeter (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.