Yes, this is because we got rid of the activation jar and javax.activation from the JDK. So the solution would be to keep both with different versions :(. Unfortunately JAX-WS MTOM doesn't work with the activation jar. It needs it from the JDK. So we have to keep both and wire the bundles properly.
Thanks, ~Isuru On Tue, Apr 17, 2012 at 5:50 PM, Nuwan Bandara <nu...@wso2.com> wrote: > Hi, > > It seems the activation jar provided by the JDK is not working correctly > for with mail. I tried an old pack, where activation was given by axiom. > and it worked fine. What is the possible solution for this. Can I use old > activation for my bundle. > > Regards, > /Nuwan > > > > On Tue, Apr 17, 2012 at 5:47 PM, Sameera Jayasoma <same...@wso2.com>wrote: > >> Hi Isuru, >> >> Can this be due the recent change in the activation package versions? >> >> Thanks, >> Sameera. >> >> On Tue, Apr 17, 2012 at 4:37 PM, Nuwan Bandara <nu...@wso2.com> wrote: >> >>> Hi Guys, >>> >>> I am getting following error when sending a mail from our Email >>> hostobject, this was working well few weeks back. any particular reason ? >>> >>> by googleing, I found that this is something to do with activation jar, >>> and also Mailcap File, any idea about it ? >>> >>> >>> [2012-04-17 16:17:29,756] ERROR >>> {org.wso2.carbon.scriptengine.engine.RhinoEngine} - >>> org.mozilla.javascript.WrappedException: Wrapped >>> org.wso2.carbon.scriptengine.exceptions.ScriptException: >>> javax.mail.MessagingException: IOException while sending message; >>> nested exception is: >>> javax.activation.UnsupportedDataTypeException: no object DCH for MIME >>> type multipart/mixed; >>> boundary="----=_Part_0_1260258275.1334659642237" (wso2)#16) >>> [2012-04-17 16:17:29,759] ERROR >>> {org.wso2.carbon.jaggery.core.manager.WebAppManager} - >>> org.mozilla.javascript.WrappedException: Wrapped >>> org.wso2.carbon.scriptengine.exceptions.ScriptException: >>> javax.mail.MessagingException: IOException while sending message; >>> nested exception is: >>> javax.activation.UnsupportedDataTypeException: no object DCH for MIME >>> type multipart/mixed; >>> boundary="----=_Part_0_1260258275.1334659642237" (wso2)#16) >>> org.wso2.carbon.scriptengine.exceptions.ScriptException: >>> org.mozilla.javascript.WrappedException: Wrapped >>> org.wso2.carbon.scriptengine.exceptions.ScriptException: >>> javax.mail.MessagingException: IOException while sending message; >>> nested exception is: >>> javax.activation.UnsupportedDataTypeException: no object DCH for MIME >>> type multipart/mixed; >>> boundary="----=_Part_0_1260258275.1334659642237" (wso2)#16) >>> at >>> org.wso2.carbon.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:477) >>> at >>> org.wso2.carbon.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:231) >>> at >>> org.wso2.carbon.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:100) >>> at >>> org.wso2.carbon.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:42) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >>> at >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >>> at >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >>> at >>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) >>> at >>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) >>> at >>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) >>> at >>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) >>> at >>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) >>> at >>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:61) >>> at >>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:155) >>> at >>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) >>> at >>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >>> at >>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) >>> at >>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987) >>> at >>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579) >>> at >>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1600) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>> at java.lang.Thread.run(Thread.java:662) >>> Caused by: org.mozilla.javascript.WrappedException: Wrapped >>> org.wso2.carbon.scriptengine.exceptions.ScriptException: >>> javax.mail.MessagingException: IOException while sending message; >>> nested exception is: >>> javax.activation.UnsupportedDataTypeException: no object DCH for MIME >>> type multipart/mixed; >>> boundary="----=_Part_0_1260258275.1334659642237" (wso2)#16) >>> at >>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1654) >>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:175) >>> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474) >>> at >>> org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119) >>> at org.wso2.carbon.rhino.c0._c0((wso2):16) >>> at org.wso2.carbon.rhino.c0.call((wso2)) >>> at >>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401) >>> at >>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003) >>> at org.wso2.carbon.rhino.c0.call((wso2)) >>> at org.wso2.carbon.rhino.c0.exec((wso2)) >>> at >>> org.wso2.carbon.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:472) >>> ... 23 more >>> Caused by: org.wso2.carbon.scriptengine.exceptions.ScriptException: >>> javax.mail.MessagingException: IOException while sending message; >>> nested exception is: >>> javax.activation.UnsupportedDataTypeException: no object DCH for MIME >>> type multipart/mixed; >>> boundary="----=_Part_0_1260258275.1334659642237" >>> at >>> org.wso2.carbon.hostobjects.email.EmailHostObject.jsFunction_send(EmailHostObject.java:397) >>> 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:597) >>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160) >>> ... 32 more >>> Caused by: javax.mail.MessagingException: IOException while sending >>> message; >>> nested exception is: >>> javax.activation.UnsupportedDataTypeException: no object DCH for MIME >>> type multipart/mixed; >>> boundary="----=_Part_0_1260258275.1334659642237" >>> at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625) >>> at javax.mail.Transport.send0(Transport.java:169) >>> at javax.mail.Transport.send(Transport.java:98) >>> at >>> org.wso2.carbon.hostobjects.email.EmailHostObject.jsFunction_send(EmailHostObject.java:395) >>> ... 37 more >>> Caused by: javax.activation.UnsupportedDataTypeException: no object DCH >>> for MIME type multipart/mixed; >>> boundary="----=_Part_0_1260258275.1334659642237" >>> at >>> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:877) >>> at javax.activation.DataHandler.writeTo(DataHandler.java:302) >>> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350) >>> at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683) >>> at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585) >>> ... 40 more >>> >>> >>> -- >>> *Thanks & Regards, >>> >>> Nuwan Bandara >>> Senior Software Engineer >>> WSO2 Inc. | http://wso2.com >>> lean . enterprise . middleware >>> >>> http://nuwan.bandara.co >>> * >>> <http://www.nuwanbando.com/> >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Sameera Jayasoma >> Technical Lead and Product Manager, WSO2 Carbon >> >> WSO2, Inc. (http://wso2.com) >> email: same...@wso2.com >> blog: http://tech.jayasoma.org >> >> Lean . Enterprise . Middleware >> > > > > -- > *Thanks & Regards, > > Nuwan Bandara > Senior Software Engineer > WSO2 Inc. | http://wso2.com > lean . enterprise . middleware > > http://nuwan.bandara.co > * > <http://www.nuwanbando.com/> > -- Isuru Suriarachchi Technical Lead WSO2 Inc. http://wso2.com email : is...@wso2.com blog : http://isurues.wordpress.com/ lean . enterprise . middleware
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev