java.lang.ClassCastException: gnu.mail.handler.TextPlain at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:596) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550)

jenkins-ci.org | 3 months ago
  1. 0

    When a build finishes, hudson fails to send a mail with the result of the build. This behaviour is new to version 1.180 (it worked with version 1.179). We get the following trace (note there is a valid e-mail and an invalid one, that's maybe the cause): Sending e-mails to: valid@email.Com ipad7251orange-ftgroup.com FATAL: gnu.mail.handler.TextPlain java.lang.ClassCastException: gnu.mail.handler.TextPlain at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:596) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550) at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:611) at javax.activation.DataHandler.writeTo(DataHandler.java:315) at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:248) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1268) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980) at javax.mail.Transport.send(Transport.java:97) at hudson.tasks.MailSender.execute(MailSender.java:74) at hudson.tasks.Mailer._perform(Mailer.java:75) at hudson.tasks.Mailer.perform(Mailer.java:69) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:33) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:273) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:261) at hudson.model.Build$RunnerImpl.post2(Build.java:136) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:246) at hudson.model.Run.run(Run.java:677) at hudson.model.Build.run(Build.java:101) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:65) Thanks.

    Jenkins JIRA | 9 years ago | julienw
    java.lang.ClassCastException: gnu.mail.handler.TextPlain at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:596) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550)
  2. 0

    When a build finishes, hudson fails to send a mail with the result of the build. This behaviour is new to version 1.180 (it worked with version 1.179). We get the following trace (note there is a valid e-mail and an invalid one, that's maybe the cause): Sending e-mails to: valid@email.Com ipad7251orange-ftgroup.com FATAL: gnu.mail.handler.TextPlain java.lang.ClassCastException: gnu.mail.handler.TextPlain at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:596) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550) at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:611) at javax.activation.DataHandler.writeTo(DataHandler.java:315) at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:248) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1268) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980) at javax.mail.Transport.send(Transport.java:97) at hudson.tasks.MailSender.execute(MailSender.java:74) at hudson.tasks.Mailer._perform(Mailer.java:75) at hudson.tasks.Mailer.perform(Mailer.java:69) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:33) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:273) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:261) at hudson.model.Build$RunnerImpl.post2(Build.java:136) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:246) at hudson.model.Run.run(Run.java:677) at hudson.model.Build.run(Build.java:101) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:65) Thanks.

    Jenkins JIRA | 9 years ago | julienw
    java.lang.ClassCastException: gnu.mail.handler.TextPlain at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:596) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550)
  3. 0

    [JENKINS-1261] Fatal exception when sending mail : java.lang.ClassCastException: gnu.mail.handler.TextPlain - Jenkins JIRA

    jenkins-ci.org | 3 months ago
    java.lang.ClassCastException: gnu.mail.handler.TextPlain at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:596) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-1261] Fatal exception when sending mail : java.lang.ClassCastException: gnu.mail.handler.TextPlain - Jenkins JIRA

    jenkins-ci.org | 3 months ago
    java.lang.ClassCastException: gnu.mail.handler.TextPlain at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:596) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550)
  6. 0

    OW2 Forge: Detail: 308797 Int├ęgration javamail dans JOnAS

    ow2.org | 4 months ago
    java.lang.ClassCastException: gnu.mail.handler.TextPlain at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:596) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550)

    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. java.lang.ClassCastException

      gnu.mail.handler.TextPlain at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:596) at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:550)

      at javax.activation.DataHandler.getDataContentHandler()
    2. Java RT
      DataHandler.writeTo
      1. javax.activation.DataHandler.getDataContentHandler(DataHandler.java:611)
      2. javax.activation.DataHandler.writeTo(DataHandler.java:315)
      2 frames
    3. JavaMail API
      Transport.send
      1. javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:248)
      2. javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1268)
      3. javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
      4. javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
      5. javax.mail.Transport.send(Transport.java:97)
      5 frames
    4. Hudson
      Mailer.perform
      1. hudson.tasks.MailSender.execute(MailSender.java:74)
      2. hudson.tasks.Mailer._perform(Mailer.java:75)
      3. hudson.tasks.Mailer.perform(Mailer.java:69)
      3 frames