0 Replies Latest reply on May 10, 2011 6:35 AM by Sorin Silaghi

    How to add mailcap file to service assembly (UnsupportedDataTypeException)

    Sorin Silaghi Newbie

      Hello,

       

              I am trying to send a signed MimeBodyPart  via HTTP and I got stuck when trying to convert it: when I try to do writeTo I get the folowing error:

       

      javax.activation.UnsupportedDataTypeException: application/pkcs7-mime; name=smime.p7m; smime-type=signed-data

           at javax.activation.DataHandler.writeTo(DataHandler.java:75)

           at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1383)

           at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:852)

       

      I tried to add that data type to the MailcapCommandMap but it didn't help. I also tried to add a mailcap file but nothing changed. Any ideas?

       

      Thank you,

                        Sorin.