java.io.IOException: javax.mail.MessagingException: No inputstream from datasource

Apache's JIRA Issue Tracker | Dave Cherkassky | 1 decade ago
  1. 0

    [EMAIL-6] [email] Errors when sending MultiPartEmail with another email as an attachment - ASF JIRA

    apache.org | 1 year ago
    java.io.IOException: javax.mail.MessagingException: No inputstream from datasource
  2. 0

    Take a look at the code below: if( debugMode ) { if( logger.isInfoEnabled() ) { logger.info( "DEBUG mode is on. Sending email to " + debugEmailAddress ); } MultiPartEmail debugEmail = new MultiPartEmail(); if( logger.isDebugEnabled() ) { debugEmail.setDebug( true ); } debugEmail.setBounceAddress( debugEmailAddress ); debugEmail.setFrom( debugEmailAddress ); debugEmail.addReplyTo( debugEmailAddress ); debugEmail.addTo( debugEmailAddress ); debugEmail.setSubject( "Test Message: " + email.getSubject() ); debugEmail.setMsg( "The email manager is operating in test mode. " + "Attached is a message it would have sent had it been running for real." ); debugEmail.addPart( new MimeMultipart( new MimePartDataSource( email.getMimeMessage() ) ) ); debugEmail.setMailSession( emailSession ); messageId = debugEmail.send(); } I get the following exception when I call debugEmail.send(): 2006-03-12 09:07:01,140 [ main] INFO com.djinnsoft.jade.email.EmailManager: DEBUG mode is on. Sending email to test@djinnsoft.com 2006-03-12 09:07:01,640 [ main] WARN com.djinnsoft.jade.email.EmailManager: Error emailing sent item 2000035: Sending the email to the following server failed : null:25 javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: IOException while sending message; nested exception is: java.io.IOException: "text/plain" DataContentHandler requires String object, was given object of type class javax.mail.internet.MimeMultipart at javax.mail.Transport.send0(Transport.java:219) at javax.mail.Transport.send(Transport.java:81) at org.apache.commons.mail.Email.sendMimeMessage(Email.java:863) at org.apache.commons.mail.Email.send(Email.java:898) at com.djinnsoft.jade.email.EmailManager.processMailing(EmailManager.java:1205) (line 1205 corresponds to "messageId = debugEmail.send();" in my code)

    Apache's JIRA Issue Tracker | 1 decade ago | Dave Cherkassky
    java.io.IOException: javax.mail.MessagingException: No inputstream from datasource
  3. 0

    Take a look at the code below: if( debugMode ) { if( logger.isInfoEnabled() ) { logger.info( "DEBUG mode is on. Sending email to " + debugEmailAddress ); } MultiPartEmail debugEmail = new MultiPartEmail(); if( logger.isDebugEnabled() ) { debugEmail.setDebug( true ); } debugEmail.setBounceAddress( debugEmailAddress ); debugEmail.setFrom( debugEmailAddress ); debugEmail.addReplyTo( debugEmailAddress ); debugEmail.addTo( debugEmailAddress ); debugEmail.setSubject( "Test Message: " + email.getSubject() ); debugEmail.setMsg( "The email manager is operating in test mode. " + "Attached is a message it would have sent had it been running for real." ); debugEmail.addPart( new MimeMultipart( new MimePartDataSource( email.getMimeMessage() ) ) ); debugEmail.setMailSession( emailSession ); messageId = debugEmail.send(); } I get the following exception when I call debugEmail.send(): 2006-03-12 09:07:01,140 [ main] INFO com.djinnsoft.jade.email.EmailManager: DEBUG mode is on. Sending email to test@djinnsoft.com 2006-03-12 09:07:01,640 [ main] WARN com.djinnsoft.jade.email.EmailManager: Error emailing sent item 2000035: Sending the email to the following server failed : null:25 javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: IOException while sending message; nested exception is: java.io.IOException: "text/plain" DataContentHandler requires String object, was given object of type class javax.mail.internet.MimeMultipart at javax.mail.Transport.send0(Transport.java:219) at javax.mail.Transport.send(Transport.java:81) at org.apache.commons.mail.Email.sendMimeMessage(Email.java:863) at org.apache.commons.mail.Email.send(Email.java:898) at com.djinnsoft.jade.email.EmailManager.processMailing(EmailManager.java:1205) (line 1205 corresponds to "messageId = debugEmail.send();" in my code)

    Apache's JIRA Issue Tracker | 1 decade ago | Dave Cherkassky
    java.io.IOException: javax.mail.MessagingException: No inputstream from datasource
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Javax net ssl sslhandshakeexception - Java Programming - KnowCoding.com

    knowcoding.com | 9 months ago
    java.io.IOException: Couldn't connect using "javax.net.ssl.SSLSocketFactory" socket factory to host, port: smtp.mail.---.in, 465; Exception: java.lang.reflect.InvocationTargetException
  6. 0

    Javamail error javax mail authenticationfailedexception - Java Programming - KnowCoding.com

    knowcoding.com | 1 year ago
    java.io.IOException: Couldn't connect using "javax.net.ssl.SSLSocketFactory" socket factory to host, port: smtp.mail.---.in, 465; Exception: java.lang.reflect.InvocationTargetException

    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.io.IOException

      javax.mail.MessagingException: No inputstream from datasource

      at javax.mail.Transport.send0()
    2. JavaMail API
      Transport.send
      1. javax.mail.Transport.send0(Transport.java:219)
      2. javax.mail.Transport.send(Transport.java:81)
      2 frames
    3. Apache Commons Email
      Email.send
      1. org.apache.commons.mail.Email.sendMimeMessage(Email.java:863)
      2. org.apache.commons.mail.Email.send(Email.java:898)
      2 frames
    4. com.djinnsoft.jade
      EmailManager.processMailing
      1. com.djinnsoft.jade.email.EmailManager.processMailing(EmailManager.java:1205)
      1 frame