0 Replies Latest reply on Jun 18, 2003 5:23 PM by tonyrwalker

    JavaMail issues in multipart message on OS X

    tonyrwalker

      We are attempting to issue a multipart mail message on OS X. The message consists of a single part containing a text bodypart. (The eventual system will require multiple parts.) It works flawlessly on Windows (2000), but on OS X we get the message:

      javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_7358626.1054670412956"

      when trying to send the message. I'm guessing this is a configuration issue as everything else is identical.

      The full log is:

      2003-06-03 16:00:13,159 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
      2003-06-03 16:00:13,185 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth false
      2003-06-03 16:00:13,186 INFO [STDOUT]
      DEBUG: SMTPTransport trying to connect to host "exchange2k.xxxx", port 25
      2003-06-03 16:00:13,207 INFO [STDOUT] DEBUG SMTP RCVD: 220 pop.xxxx.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 ready at Tue, 3 Jun 2003 15:57:18 -0400
      2003-06-03 16:00:13,207 INFO [STDOUT] DEBUG: SMTPTransport connected to host "exchange2k.xxxx", port: 25
      2003-06-03 16:00:13,216 INFO [STDOUT] DEBUG SMTP SENT: EHLO devlabOSX-1
      2003-06-03 16:00:13,217 INFO [STDOUT] DEBUG SMTP RCVD: 250-pop.xxxx.com Hello [192.168.10.59]
      250-TURN
      250-ATRN
      250-SIZE 10485760
      250-ETRN
      250-PIPELINING
      250-DSN
      250-ENHANCEDSTATUSCODES
      250-8bitmime
      250-BINARYMIME
      250-CHUNKING
      250-VRFY
      250-X-LINK2STATE
      250-XEXCH50
      250 OK
      2003-06-03 16:00:13,218 INFO [STDOUT] DEBUG SMTP Found extension "TURN", arg ""
      2003-06-03 16:00:13,219 INFO [STDOUT] DEBUG SMTP Found extension "ATRN", arg ""
      2003-06-03 16:00:13,219 INFO [STDOUT] DEBUG SMTP Found extension "SIZE", arg "10485760"
      2003-06-03 16:00:13,219 INFO [STDOUT] DEBUG SMTP Found extension "ETRN", arg ""
      2003-06-03 16:00:13,220 INFO [STDOUT] DEBUG SMTP Found extension "PIPELINING", arg ""
      2003-06-03 16:00:13,220 INFO [STDOUT] DEBUG SMTP Found extension "DSN", arg ""
      2003-06-03 16:00:13,220 INFO [STDOUT] DEBUG SMTP Found extension "ENHANCEDSTATUSCODES", arg ""
      2003-06-03 16:00:13,221 INFO [STDOUT] DEBUG SMTP Found extension "8bitmime", arg ""
      2003-06-03 16:00:13,221 INFO [STDOUT] DEBUG SMTP Found extension "BINARYMIME", arg ""
      2003-06-03 16:00:13,222 INFO [STDOUT] DEBUG SMTP Found extension "CHUNKING", arg ""
      2003-06-03 16:00:13,222 INFO [STDOUT] DEBUG SMTP Found extension "VRFY", arg ""
      2003-06-03 16:00:13,222 INFO [STDOUT] DEBUG SMTP Found extension "X-LINK2STATE", arg ""
      2003-06-03 16:00:13,223 INFO [STDOUT] DEBUG SMTP Found extension "XEXCH50", arg ""
      2003-06-03 16:00:13,223 INFO [STDOUT] DEBUG SMTP Found extension "OK", arg ""
      2003-06-03 16:00:13,226 INFO [STDOUT] DEBUG SMTP: use8bit false
      2003-06-03 16:00:13,227 INFO [STDOUT] DEBUG SMTP SENT: MAIL FROM:<stephen@xxxx.com>
      2003-06-03 16:00:13,228 INFO [STDOUT] DEBUG SMTP RCVD: 250 2.1.0 stephen@xxxx.com....Sender OK
      2003-06-03 16:00:13,229 INFO [STDOUT] DEBUG SMTP SENT: RCPT TO:<dann@xxxx.com>
      2003-06-03 16:00:13,229 INFO [STDOUT] DEBUG SMTP RCVD: 250 2.1.5 dann@xxxx.com
      2003-06-03 16:00:13,230 INFO [STDOUT] Verified Addresses
      2003-06-03 16:00:13,230 INFO [STDOUT] dann@xxxx.com
      2003-06-03 16:00:13,230 INFO [STDOUT] DEBUG SMTP SENT: DATA
      2003-06-03 16:00:13,232 INFO [STDOUT] DEBUG SMTP RCVD: 354 Start mail input; end with .
      2003-06-03 16:00:13,240 INFO [STDOUT] javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_7358626.1054670412956"
      2003-06-03 16:00:13,241 INFO [STDOUT] at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
      2003-06-03 16:00:13,242 INFO [STDOUT] at javax.activation.DataHandler.writeTo(DataHandler.java:305)
      2003-06-03 16:00:13,242 INFO [STDOUT] at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147)
      2003-06-03 16:00:13,242 INFO [STDOUT] at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1600)
      2003-06-03 16:00:13,243 INFO [STDOUT] at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:324)
      2003-06-03 16:00:13,243 INFO [STDOUT] at javax.mail.Transport.send0(Transport.java:163)
      2003-06-03 16:00:13,243 INFO [STDOUT] at javax.mail.Transport.send(Transport.java:80)
      2003-06-03 16:00:13,244 INFO [STDOUT] at com.xxxx.appserver.ejb.MailerBean.serviceRequests(Unknown Source)
      2003-06-03 16:00:13,244 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
      2003-06-03 16:00:13,244 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2003-06-03 16:00:13,245 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
      2003-06-03 16:00:13,245 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:629)
      2003-06-03 16:00:13,245 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      2003-06-03 16:00:13,246 INFO [STDOUT] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
      2003-06-03 16:00:13,246 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
      2003-06-03 16:00:13,247 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
      2003-06-03 16:00:13,247 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
      2003-06-03 16:00:13,248 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
      2003-06-03 16:00:13,248 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
      2003-06-03 16:00:13,249 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      2003-06-03 16:00:13,249 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
      2003-06-03 16:00:13,249 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:674)
      2003-06-03 16:00:13,250 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
      2003-06-03 16:00:13,250 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2003-06-03 16:00:13,250 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
      2003-06-03 16:00:13,251 INFO [STDOUT] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      2003-06-03 16:00:13,251 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      2003-06-03 16:00:13,252 INFO [STDOUT] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359)
      2003-06-03 16:00:13,252 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
      2003-06-03 16:00:13,252 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2003-06-03 16:00:13,253 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
      2003-06-03 16:00:13,253 INFO [STDOUT] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      2003-06-03 16:00:13,253 INFO [STDOUT] at sun.rmi.transport.Transport$1.run(Transport.java:148)
      2003-06-03 16:00:13,254 INFO [STDOUT] at java.security.AccessController.doPrivileged(Native Method)
      2003-06-03 16:00:13,254 INFO [STDOUT] at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      2003-06-03 16:00:13,254 INFO [STDOUT] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      2003-06-03 16:00:13,255 INFO [STDOUT] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      2003-06-03 16:00:13,255 INFO [STDOUT] at java.lang.Thread.run(Thread.java:554)


      Any help appreciated...

      Tony