Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

error while sending SMTP message.  RSS feed

 
Priya Vasudevan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

I encounter a problem when i send a e-mail from my SMTP code.I am using mail.jar(version 1.3.2) and activation.jar(version 1.0.2)- downloaded from sun's site.And i have included it in the class-path.

This is the stackTrace i get when i set session.setDebug(true).
Pls. do let me know on how to resolve the same,as soon as possible.

DATA
354 Please start mail input.
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/related;
boundary="----=_Part_0_1148921.1115718020781"
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:841)
at javax.activation.DataHandler.writeTo(DataHandler.java:295)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1206)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1611)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:526)
at com.fiorano.adapter.jca.smtp.cci.SMTPInteraction.sendMessage(SMTPInteraction.java:396)
at com.fiorano.adapter.jca.smtp.cci.SMTPInteraction.execute(SMTPInteraction.java:326)
at fiorano.esb.adapter.jca.cci.AbstractESBInteraction.execute(AbstractESBInteraction.java:307)
at fiorano.esb.adapter.jca.cci.ESBInteractionSpec.execute(ESBInteractionSpec.java:556)
at fiorano.esb.adapter.jca.cci.ESBInteractionSpec.execute(ESBInteractionSpec.java:593)
at fiorano.esb.adapter.jca.cci.ESBInteractionSpec.execute(ESBInteractionSpec.java:602)
at fiorano.esb.adapter.jca.cci.ESBInteractionSpec.test(ESBInteractionSpec.java:426)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1013)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:688)
at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:221)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:84)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:194)
at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1043)
at com.fiorano.jmx.api.JMXOperation.invoke(JMXOperation.java:112)
at com.fiorano.rar.dmi.RARComponent.execute(RARComponent.java:247)
at com.fiorano.rar.actions.RARComponentTestAction$4.run(RARComponentTestAction.java:130)
at foxtrot.AbstractWorkerThread$1.run(AbstractWorkerThread.java:39)
at java.security.AccessController.doPrivileged(Native Method)
at foxtrot.AbstractWorkerThread.runTask(AbstractWorkerThread.java:35)
at foxtrot.workers.SingleWorkerThread.run(SingleWorkerThread.java:196)
at foxtrot.workers.SingleWorkerThread.run(SingleWorkerThread.java:179)
at java.lang.Thread.run(Thread.java:534)

Regards,
priya
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!