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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by maciejlach
, 11 months ago
In Content-Type string <text>, expected '/', got null
via Kenai Bugzilla by alexanderveit, 1 year ago
Expected MIME type, got application/pdf
via GitHub by glassfishrobot
, 5 months ago
Expected MIME type, got application/pdf
via Oracle Community by 843834, 1 year ago
Expected MIME type, got image/jpeg
via Jenkins JIRA by Cyrille Le Clerc, 1 year ago
Expected MIME type, got ;
javax.mail.internet.ParseException: In Content-Type string <text>, expected '/', got null
at javax.mail.internet.ContentType.(ContentType.java:104)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1467)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1131)
at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:515)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1490)
at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2198)
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:443)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:345)
at it.ozimov.springboot.templating.mail.service.EmailServiceImpl.send(EmailServiceImpl.java:72)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
2 times, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.