[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [iaik-jce] SMimeSend Error : UnsupportedDataTypeException thrown



The mapping between S/MIME types and data content handlers is done by a
RFC1524 mailcap file which is included in the IAIK-S/MIME distribution
(named "mailcap") to be copied into the lib directory of your JDK (/lib).
You alternatively may register the IAIK-S/MIME mailcap file dynamically by
using the default command map:

String mailcapFileName = ...;
MailcapCommandMap mc = new MailcapCommandMap(mailcapFileName);
CommandMap.setDefaultCommandMap(mc);

For a more detailed description of mailcap handling consult the Javadoc of
the Activation Framework.

Dieter Bratko

-----Ursprüngliche Nachricht-----
Von: iaik-jce-owner@iaik.tu-graz.ac.at
[mailto:iaik-jce-owner@iaik.tu-graz.ac.at]Im Auftrag von alegrand@gnt.ch
Gesendet: Mittwoch, 5. April 2000 11:06
An: iaik-jce@iaik.tu-graz.ac.at
Betreff: [iaik-jce] SMimeSend Error : UnsupportedDataTypeException
thrown


UnsupportedDataTypeException is thrown when running SMimeSend :
........
sending plain message...
sending explicitly signed message...
javax.mail.SendFailedException: Sending failed;
  nested exception is:
     javax.mail.MessagingException: IOException while sending message;
  nested exception is:
     javax.activation.UnsupportedDataTypeException: no object DCH for MIME
type application/x-pkcs7-signature; name=smime.p7s
     at javax.mail.Transport.send0(Compiled Code)
     at javax.mail.Transport.send(Compiled Code)
     at demo.smime.SMimeSend.start(SMimeSend.java:169)
     at demo.smime.SMimeSend.main(SMimeSend.java:413)
javax.mail.MessagingException: IOException while sending message;
  nested exception is:
     javax.activation.UnsupportedDataTypeException: no object DCH for MIME
type application/x-pkcs7-signature; name=smime.p7s
     at com.sun.mail.smtp.SMTPTransport.sendMessage(Compiled Code)
     at javax.mail.Transport.send0(Compiled Code)
     at javax.mail.Transport.send(Compiled Code)
     at demo.smime.SMimeSend.start(SMimeSend.java:169)
     at demo.smime.SMimeSend.main(SMimeSend.java:413)

Any help welcome.
André


--
Mailinglist-archive at
http://jcewww.iaik.at/mailarchive/iaik-jce/jcethreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content:
UNSUBSCRIBE iaik-jce




smime.p7s