Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4074

pop3 mail session throws a NoSuchProviderException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 9.0.0.Beta1
    • 8.1.0.Final
    • Mail
    • None
    • Hide

      1. add a pop3 server in the mail section

                  <mail-session jndi-name="java:/MyMail" from="xxx@xxx">
                      <smtp-server outbound-socket-binding-ref="smtp-outbound">
                          <login name="xxx" password="xxx"/>
                      </smtp-server>
                      <pop3-server outbound-socket-binding-ref="pop3-outbound">
                          <login name="xxx" password="xxx"/>
                      </pop3-server>
                  </mail-session>
      

      2. try to read the mailbox

      Show
      1. add a pop3 server in the mail section <mail-session jndi-name= "java:/MyMail" from= "xxx@xxx" > <smtp-server outbound-socket-binding-ref= "smtp-outbound" > <login name= "xxx" password= "xxx" /> </smtp-server> <pop3-server outbound-socket-binding-ref= "pop3-outbound" > <login name= "xxx" password= "xxx" /> </pop3-server> </mail-session> 2. try to read the mailbox

    Description

      When configuring a pop3 server in standalone.xml as, the following exception is thrown when reading the mailbox:

      Caused by: javax.mail.NoSuchProviderException: Invalid protocol: null
      	at javax.mail.Session.getProvider(Session.java:440) [mail-1.4.5-redhat-1.jar:1.4.5-redhat-1]
      	at javax.mail.Session.getStore(Session.java:539) [mail-1.4.5-redhat-1.jar:1.4.5-redhat-1] 
      

      Attachments

        Activity

          People

            tomazcerar Tomaž Cerar (Inactive)
            tomazcerar Tomaž Cerar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: