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

Re [iaik-jce] IAIK S-MIME V2.52 demo sample error !.htm



Title: Re: [iaik-jce] IAIK S/MIME V2.52 demo sample error !
I am having this exact same problem and I have placed the mailcap file from /usr/local/IAIK-SMIME2.52/mailcap into /usr/local/jdk1.2.2/lib
 
I've logged off, logged back on, but still doesn't work. Any ideas?
 
Thanks,
John

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

Re: [iaik-jce] IAIK S/MIME V2.52 demo sample error !



Do you have copied the mailcap file into the lib directory of your JDK ?
 
Dieter Bratko
----- Original Message -----
From: Cedric MALDEREZ
To: IAIK JCE mailing list
Sent: Friday, August 13, 1999 2:41 PM
Subject: [iaik-jce] IAIK S/MIME V2.52 demo sample error !

Hello ...

I'm actually trying the IAIK SMIME v2.52 library with a Java1.2 JDK.
I've downloaded the JavaMail v1.1.2 & JAF 1.0.1 from JavaSoft & put activation.jar & mail.jar into my classpath (as you can see below).
I've del the SUN security provider from the java.security file /jre/lib/security/ folder (I know it was not necessary).
I've build the jce.keystore file with the SetupKeyStore tool in the IAIK_JCE lib.
I've modified the SMimeSend.java file in order to send mail to a small SMTPServer I've done binding port 25 on 127.0.0.1.

I've tried with JavaMail v1.1.1.
It seems that a plain text message is send normaly, but when comes the signed message, an error occurs ... See below in red.
I don't understand this error.

I've tried with the lastest version of JavaMail v1.1.2. and another error kind occurs....

Could someone tell me how I can make it works ..?
 

Sincerely,
Malderez CÚdric
 
 

// TEST WITH JAVAMAIL V1.1.1
D:\>java -cp
%IAIK_LIB%\activation.jar;%IAIK_LIB%\mail.jar;%IAIK_LIB%\iaik_jce_full.jar;%IAIK_LIB%\iaik_smime.jar
demo.smime.SMimeSend
adding Provider IAIK...

Java version number: 1.2
Java compiler: symcjit
Java vendor-specific string: Sun Microsystems Inc.
Java vendor URL: http://java.sun.com/
Java installation directory: d:\dev\java\jdk1.2\jre
Java class format version number: 46.0
Java class path:
d:\dev\security\dev\java\IAIK\IAIK-SMIME2.52\lib\activation.jar;d:\dev\security\dev\java\IAIK\IAIK-SMIM
E2.52\lib\mail.jar;d:\dev\security\dev\java\IAIK\IAIK-SMIME2.52\lib\iaik_jce_full.jar;d:\dev\security\dev\java\IAIK\IAIK-SMIME2.52\lib\iaik_smime.jar

Operating system name: Windows NT
Operating system architecture: x86
Operating system version: 4.0

Installed security providers providers:

Provider 1: IAIK  version: 2.5100000000000002
initializing KeyStore...
sending plain message...
sending explicitly signed message...
javax.mail.MessagingException: Can't send command to SMTP host;
  nested exception is:
        java.net.SocketException: Descriptor not a socket: socket write error
        at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:518)
        at com.sun.mail.smtp.SMTPTransport.close(SMTPTransport.java:204)
        at javax.mail.Transport.send0(Compiled Code)
        at javax.mail.Transport.send(Transport.java:73)
        at demo.smime.SMimeSend.start(SMimeSend.java:142)
        at demo.smime.SMimeSend.main(SMimeSend.java:386)
java.net.SocketException: Descriptor not a socket: socket write error
        at java.net.SocketOutputStream.socketWrite(Native Method)
        at java.net.SocketOutputStream.write(Compiled Code)
        at java.io.BufferedOutputStream.flushBuffer(Compiled Code)
        at java.io.BufferedOutputStream.flush(Compiled Code)
        at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:516)
        at com.sun.mail.smtp.SMTPTransport.close(SMTPTransport.java:204)
        at javax.mail.Transport.send0(Compiled Code)
        at javax.mail.Transport.send(Transport.java:73)
        at demo.smime.SMimeSend.start(SMimeSend.java:142)
        at demo.smime.SMimeSend.main(SMimeSend.java:386)
OK!

// TEST WITH JAVAMAIL V1.1.2
D:\>java -cp
%IAIK_LIB%\activation.jar;%IAIK_LIB%\mail.jar;%IAIK_LIB%\iaik_jce_full.jar;%IAIK_LIB%\iaik_smime.jar
demo.smime.SMimeSend
adding Provider IAIK...

Java version number: 1.2
Java compiler: symcjit
Java vendor-specific string: Sun Microsystems Inc.
Java vendor URL: http://java.sun.com/
Java installation directory: d:\dev\java\jdk1.2\jre
Java class format version number: 46.0
Java class path:
d:\dev\security\dev\java\IAIK\IAIK-SMIME2.52\lib\activation.jar;d:\dev\security\dev\java\IAIK\IAIK-SMIME2.52\lib\mail.jar;d:\dev\security\dev\java\IAIK\IAIK-SMIME2.52\lib\iaik_jce_full.jar;d:\dev\security\dev\java\IAIK\IAIK-SMIME2.52\lib\iaik_smime.jar

Operating system name: Windows NT
Operating system architecture: x86
Operating system version: 4.0

Installed security providers providers:

Provider 1: IAIK  version: 2.5100000000000002
initializing KeyStore...
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(Transport.java:73)
        at demo.smime.SMimeSend.start(SMimeSend.java:142)
        at demo.smime.SMimeSend.main(SMimeSend.java:386)
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(Transport.java:73)
        at demo.smime.SMimeSend.start(SMimeSend.java:142)
        at demo.smime.SMimeSend.main(SMimeSend.java:386)
OK!

smime.p7s