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


Solutions on the web12

Solution icon of github
via GitHub by maciejlach
, 9 months ago
In Content-Type string <text>, expected '/', got null

Solution icon of stackoverflow
via Stack Overflow by user3681970
, 1 year ago
In Content-Type string <null>, expected MIME type, got null

Solution icon of stackoverflow
In Content-Type string <form:fileToUpload>, expected '/', got :

Solution icon of jenkins
via Jenkins JIRA by Cyrille Le Clerc, 9 months ago
Expected MIME type, got ;

Solution icon of jenkins
via Jenkins JIRA by Cyrille Le Clerc, 1 year ago
Expected MIME type, got ;

Solution icon of stackoverflow
Expected '/', got null

Solution icon of github
Expected MIME type, got application/pdf

Solution icon of bugzilla
via Kenai Bugzilla by alexanderveit, 1 year ago
Expected MIME type, got application/pdf

Solution icon of oraclecommunity
via Oracle Community by 843834, 1 year ago
Expected MIME type, got image/jpeg

Solution icon of web
via techartifact.com by Unknown author, 1 year ago
Expected ‘/’, got ;

Stack trace

javax.mail.internet.ParseException: In Content-Type string <text>, expected '/', got null
	at javax.mail.internet.ContentType.<init>(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 javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2159)
	at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:443)
	at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:345)
	at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)
	at it.ozimov.springboot.templating.mail.service.EmailServiceImpl.send(EmailServiceImpl.java:72)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

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, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago