Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6512009

Exception thrown using activation framework with activex bridge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 6
    • deploy
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0"
      Java(TM) SE Runtime Environment (build 1.6.0-b105)
      Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      Sending a mime message, using the javamail api, from within a activex bridge bean, results in exception being throw.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Write a bean that sends a MimeMessage, using javax.mail.Transport.
      2. Compile & jar the class.
      3. Use packager.exe to package it.
      4. Sign it using jarsigner.exe
      5. Instantiate com object.
      6. Cause bean to attempt to send.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      mail should be sent succesfully
      ACTUAL -
      exception thrown

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      javax.mail.MessagingException: IOException while sending message;
        nested exception is:
      javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=us-ascii
      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 sybrand.sandbox.Log.log(Unknown Source)
      at sybrand.sandbox.Log.setThing(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at sun.plugin.javascript.JSInvoke.invoke(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
      at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
      at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
      at sun.plugin.com.BeanDispatchImpl.invoke(Unknown Source)
      Caused by: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=us-ascii
      at javax.activation.ObjectDataContentHandler.writeTo(Unknown Source)
      at javax.activation.DataHandler.writeTo(Unknown Source)
      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)
      ... 17 more

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Attached seperatly
      ---------- END SOURCE ----------

            ccheung Calvin Cheung
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: