This is a technical question...better, a technical problem...
After successful compiling, I've been able to run the classes but I'm getting a tiny problem...
The application runs OK but when I place a message on an outbox folder from one of my partners I'm getting at the application:
[12:29:17 PM] mecAS2-1150889357526-98239@testing_mycompanyAS2: Outgoing message signed using keystore alias "Key1".
[12:29:17 PM] (Dir poll: Mendelson)-key invalid in message.
at the IDE i get an CMSException:
[java] org.bouncycastle.cms.CMSException: key invalid in message.
[java] at org.bouncycastle.cms.CMSEnvelopedDataGenerator.generate(Unknown Source)
[java] at org.bouncycastle.cms.CMSEnvelopedDataGenerator.generate(Unknown Source)
[java] at de.mendelson.comm.as2.message.AS2MessagePacker.createMessage(AS2MessagePacker.java:293)
[java] at de.mendelson.comm.as2.send.DirPollManager$DirPollThread.processFile(DirPollManager.java:214)
[java] at de.mendelson.comm.as2.send.DirPollManager$DirPollThread.run(DirPollManager.java:197)
I'm a little bit confused trying to figure out the problem...Can you understand what might the problem be...?
Thanks in advance
This looks as if you have not applied the patch for higher key strength to your JRE.
You could download the policy files here. At the botton of the page there is a link near to
"Java Cryptography Extension (JCE)
Unlimited Strength Jurisdiction Policy Files 5.0" where you should receive the files.
edit: This is only necessary if you compile the source code. You don't need to do this if you use the installer.
Best regards
Heller
Hi Heller,
you were right :), after downloading the policy files everything went OK.Thanks. I'll continue testing.
Hai..
I get the same exception ..
I downloaded the jar file..
And I put it in the class path..
Still I get the error message..
Can u plz help me
regards
STAN
STAN,
its not enough to put it into the classpath. Please read the included readme, you have to extract it to two locations of the jre.
Regards
Heller