javax.mail.NoSuchProviderException: imap [java]

Oracle Community | 843834 | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Facing problem in reading mail from IMAP server

    Oracle Community | 8 years ago | 843834
    javax.mail.NoSuchProviderException: imap [java]

    Root Cause Analysis

    1. javax.mail.NoSuchProviderException

      imap [java]

      at java.lang.ClassLoader.preDefineClass()
    2. Java RT
      ClassLoader.preDefineClass
      1. java.lang.ClassLoader.preDefineClass(ClassLoader.java:487)
      1 frame
    3. JavaMail API
      Session.getService
      1. javax.mail.Session.getService(Session.java:794)
      1 frame
    4. Java RT
      ClassLoader.defineClass
      1. java.lang.ClassLoader.defineClass(ClassLoader.java:614)
      1 frame
    5. JavaMail API
      Session.getStore
      1. javax.mail.Session.getStore(Session.java:579)
      1 frame
    6. Java RT
      SecureClassLoader.defineClass
      1. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      1 frame
    7. JavaMail API
      Session.getStore
      1. javax.mail.Session.getStore(Session.java:541)
      1 frame
    8. Java RT
      URLClassLoader.defineClass
      1. java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      1 frame
    9. com.javaMailSamples
      Msgshow.main
      1. com.javaMailSamples.Msgshow.main(Msgshow.java:65)
      1 frame
    10. Java RT
      ClassLoader.loadClassInternal
      1. java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      2. java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      3. java.security.AccessController.doPrivileged(Native Method)
      4. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      5. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
      7. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      8. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      8 frames
    11. JavaMail API (compat)
      IMAPStore.<init>
      1. com.sun.mail.imap.IMAPStore.<init>(IMAPStore.java:392)
      2. com.sun.mail.imap.IMAPStore.<init>(IMAPStore.java:379)
      2 frames