java.lang.IllegalArgumentException: object is not an instance of declaring class at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)

osdir.com | 7 months 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

    java.sun.javamail.general - Need Help with MimeUtility.decode base64 - msg#00018 - Recent Discussion OSDir.com

    osdir.com | 7 months ago
    java.lang.IllegalArgumentException: object is not an instance of declaring class at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      object is not an instance of declaring class at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)

      at javax.mail.Service.connect()
    2. JavaMail API
      Service.connect
      1. javax.mail.Service.connect(Service.java:236)
      2. javax.mail.Service.connect(Service.java:137)
      2 frames