javax.mail.internet.ParseException: In Content-Type string <text>, expected '/', got null

GitHub | maciejlach | 4 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

    GitHub comment 15#271223743

    GitHub | 4 months ago | maciejlach
    javax.mail.internet.ParseException: In Content-Type string <text>, expected '/', got null
  2. 0

    javax.mail.internet.ParseException: Expected "/", got files

    Stack Overflow | 4 years ago | Harry coder
    javax.mail.internet.ParseException: Expected '/', got files
  3. 0

    Javamail MIME type exception

    Oracle Community | 8 years ago | 843834
    javax.mail.internet.ParseException: Expected MIME type, got image/jpeg
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Content-Type syntax check throws exception too late

    Kenai Bugzilla | 4 years ago | alexanderveit
    javax.mail.internet.ParseException: Expected MIME type, got application/pdf
  6. 0

    e-mail notification fails

    j-trac | 1 decade ago | nobody
    java.lang.ClassCastException: gnu.mail.handler.TextHtml

    1 unregistered visitors
    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. javax.mail.internet.ParseException

      In Content-Type string <text>, expected '/', got null

      at javax.mail.internet.ContentType.<init>()
    2. JavaMail API
      MimeMessage.saveChanges
      1. javax.mail.internet.ContentType.<init>(ContentType.java:104)
      2. javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1467)
      3. javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1131)
      4. javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:515)
      5. javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1490)
      6. javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2198)
      7. javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2159)
      7 frames
    3. Spring Context Support
      JavaMailSenderImpl.send
      1. org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:443)
      2. org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:345)
      3. org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)
      3 frames
    4. it.ozimov.springboot
      EmailServiceImpl.send
      1. it.ozimov.springboot.templating.mail.service.EmailServiceImpl.send(EmailServiceImpl.java:72)
      1 frame