>From a wild guess, the failure to decrypt should because of the
certificate or the algorithm issue. I am not sure if the format of the
cert and keystore will be an issue, maybe you can try to generate the
keystore and certificate as we instruct in this post.
http://groups.google.com/group/cecid-hermes2/browse_frm/thread/8f85c948cb00cc3
Hope this help.
ronnie
On Aug 30, 10:39 am, alexlx <li.qian...@163.com> wrote:
> this is my errormessage:
> 2007-08-27 17:16:04 [-Processor25] <INFO > <Outbound payload received
> - From: power, To: powere2e_cn, Type: xml>
> 2007-08-27 17:16:04 [-Processor25] <INFO > <Outbound payload persisted
> - From: power, To: powere2e_cn, Type: xml>
> 2007-08-27 17:16:04 [Thread-97 ] <INFO > <Signing outbound AS2
> Message [20070827-171604-14...@127.0.0.1, From: power, To:
> powere2e_cn]>
> 2007-08-27 17:16:04 [Thread-97 ] <INFO > <Encrypting outbound AS2
> Message [20070827-171604-14...@127.0.0.1, From: power, To:
> powere2e_cn]>
> 2007-08-27 17:16:04 [Thread-97 ] <INFO > <Persisting outbound AS2
> Message [20070827-171604-14...@127.0.0.1, From: power, To:
> powere2e_cn]>
> 2007-08-27 17:16:04 [Thread-97 ] <DEBUG> <AS2 Message
> [20070827-171604-14...@127.0.0.1, From: power, To: powere2e_cn] is
> being captured>
> 2007-08-27 17:16:04 [Thread-97 ] <DEBUG> <Clearing cache of AS2
> Message [20070827-171604-14...@127.0.0.1, From: power, To:
> powere2e_cn]: true>
> 2007-08-27 17:16:04 [Thread-98 ] <INFO > <Sending outgoing AS2
> Message [20070827-171604-14...@127.0.0.1, From: power, To:
> powere2e_cn] tohttp://211.152.35.7:4082/exchange/powere2e_cn>
> 2007-08-27 17:16:09 [-Processor24] <INFO > <Message Receiver received
> request - From: power, To: powere2e_cn, Number of Messages: 100>
> 2007-08-27 17:17:04 [-Processor22] <INFO > <Outbound payload received
> - From: power, To: powere2e_cn, Type: xml>
> 2007-08-27 17:17:04 [-Processor22] <INFO > <Outbound payload persisted
> - From: power, To: powere2e_cn, Type: xml>
> 2007-08-27 17:17:04 [Thread-105 ] <INFO > <Encrypting outbound AS2
> Message [20070827-171704-24...@127.0.0.1, From: power, To:
> powere2e_cn]>
> 2007-08-27 17:17:04 [Thread-105 ] <INFO > <Persisting outbound AS2
> Message [20070827-171704-24...@127.0.0.1, From: power, To:
> powere2e_cn]>
> 2007-08-27 17:17:04 [Thread-105 ] <DEBUG> <AS2 Message
> [20070827-171704-24...@127.0.0.1, From: power, To: powere2e_cn] is
> being captured>
> 2007-08-27 17:17:04 [Thread-105 ] <DEBUG> <Clearing cache of AS2
> Message [20070827-171704-24...@127.0.0.1, From: power, To:
> powere2e_cn]: true>
> 2007-08-27 17:17:04 [Thread-106 ] <INFO > <Sending outgoing AS2
> Message [20070827-171704-24...@127.0.0.1, From: power, To:
> powere2e_cn] tohttp://211.152.35.7:4082/exchange/powere2e_cn>
> 2007-08-27 17:17:09 [-Processor24] <INFO > <Message Receiver received
> request - From: power, To: powere2e_cn, Number of Messages: 100>
> 2007-08-27 17:40:39 [-Processor25] <INFO > <Outbound payload received
> - From: power, To: powere2e_cn, Type: xml>
> 2007-08-27 17:40:39 [-Processor25] <INFO > <Outbound payload persisted
> - From: power, To: powere2e_cn, Type: xml>
> 2007-08-27 17:40:39 [Thread-248 ] <INFO > <Encrypting outbound AS2
> Message [20070827-174039-16...@127.0.0.1, From: power, To:
> powere2e_cn]>
> 2007-08-27 17:40:39 [Thread-248 ] <INFO > <Persisting outbound AS2
> Message [20070827-174039-16...@127.0.0.1, From: power, To:
> powere2e_cn]>
> 2007-08-27 17:40:39 [Thread-248 ] <DEBUG> <AS2 Message
> [20070827-174039-16...@127.0.0.1, From: power, To: powere2e_cn] is
> being captured>
> 2007-08-27 17:40:39 [Thread-248 ] <DEBUG> <Clearing cache of AS2
> Message [20070827-174039-16...@127.0.0.1, From: power, To:
> powere2e_cn]: true>
> 2007-08-27 17:40:39 [Thread-249 ] <INFO > <Sending outgoing AS2
> Message [20070827-174039-16...@127.0.0.1, From: power, To:
> powere2e_cn] tohttp://211.152.35.7:4082/exchange/powere2e_cn>
> 2007-08-27 17:40:44 [-Processor22] <INFO > <Message Receiver received
> request - From: power, To: powere2e_cn, Number of Messages: 100>
> 2007-08-27 17:40:52 [-Processor25] <INFO > <AS2 MDN
> [#powere2e_cn#XML#a1188206145453powere2e_cno...@p5.powere2e.com, From:
> powere2e_cn, To: power] received>
> 2007-08-27 17:40:52 [-Processor25] <DEBUG> <AS2 MDN
> [#powere2e_cn#XML#a1188206145453powere2e_cno...@p5.powere2e.com, From:
> powere2e_cn, To: power] is being captured>
> 2007-08-27 17:40:52 [-Processor25] <INFO > <Message Integrity Check
> succeeded - Original Message: 20070827-174039-16...@127.0.0.1>
> 2007-08-27 17:40:52 [-Processor25] <INFO > <Receipt for message
> 20070827-174039-16...@127.0.0.1 has been processed successfully>
> 2007-08-27 17:49:33 [-Processor22] <INFO > <AS2 Message
> [#powere2e_cn#UUT24#a1188206654887powere2e_cnoutpowere2e_...@p5.powere2e.com,
> From: powere2e_cn, To: power] received>
> 2007-08-27 17:49:33 [-Processor22] <DEBUG> <AS2 Message
> [#powere2e_cn#UUT24#a1188206654887powere2e_cnoutpowere2e_...@p5.powere2e.com,
> From: powere2e_cn, To: power] is being captured>
> 2007-08-27 17:49:33 [-Processor22] <INFO > <AS2 Message
> [#powere2e_cn#UUT24#a1188206654887powere2e_cnoutpowere2e_...@p5.powere2e.com,
> From: powere2e_cn, To: power] is being processed>
> 2007-08-27 17:49:33 [-Processor22] <DEBUG> <AS2 Message
> [#powere2e_cn#UUT24#a1188206654887powere2e_cnoutpowere2e_...@p5.powere2e.com,
> From: powere2e_cn, To: power] is encrypted>
> 2007-08-27 17:49:33 [-Processor22] <ERROR> <Unable to decrypt AS2
> Message
> [#powere2e_cn#UUT24#a1188206654887powere2e_cnoutpowere2e_...@p5.powere2e.com,
and the as2.log is showed like that :
<ERROR> <Unable to decrypt AS2 Message
[#powere2e_cn#UUT24#a1189058953343powere2e_cnoutpowere2e_cn#@p5.powere2e.com,
Caused by: hk.hku.cecid.piazza.commons.security.SMimeException:
Invalid encrypted content
at
hk.hku.cecid.piazza.commons.security.SMimeMessage.decrypt(SMimeMessage.java:
419)
... 25 more
I do not know why .The certification's format is right. And the
Cyclone can not send the message to Hermes2 successfully.The
server.log of Cyclone is just like that:
ransaction;MDN SENT;Bundled
HTTP;Sender=powere2e_cn;Receiver=power;UniqueID=a1189066679010powere2e_cnout;CorrelationID=CORR1189066661062.4-;Original
Name=http11890666372803;ID=NA
16:25:12 CST 09/06/2007;NOTIFICATION;Level 3 INBOUND
Rejected;com.cyclonecommerce.packager.PackagerDecryptionException:
Unable to decrypt Pkcs7MimeEnvelopedData using encryption key alias
MEgxCzAJBgNVBAYTAnR0MREwDwYDVQQHEwhTaGFuZ2hhaTERMA8GA1UEChMIUG93ZXJFMkUxEzARBgNVBAMTCkphY2t5IENoZW4=_AMWPBFhgHFm/
x79628xBj3Y=_Encryption;Packager decryption
error;Sender=power;Receiver=powere2e_cn(Test);UniqueID=NA;CorrelationID=CORR1189067112354.5-;Original
Name=http11890670855904;ID=NA;Method=UnpackagerThread.unpackageDocument;com.cyclonecommerce.packager.PackagerDecryptionException:
Unable to decrypt Pkcs7MimeEnvelopedData using encryption key alias
MEgxCzAJBgNVBAYTAnR0MREwDwYDVQQHEwhTaGFuZ2hhaTERMA8GA1UEChMIUG93ZXJFMkUxEzARBgNVBAMTCkphY2t5IENoZW4=_AMWPBFhgHFm/
x79628xBj3Y=_Encryption
16:25:17 CST 09/06/2007;ALERT;Level 7 TRANSPORT Unexpected
error;power; A service interruption on your network has prevented the
system from processing and sending a document. The system will follow
the procedure for trying to reprocess and resend the document.;Unable
to
send;Sender=powere2e_cn;Receiver=power;UniqueID=a1189067130307powere2e_cnout;CorrelationID=CORR1189067112354.5-;Original
Name=http11890670855904;ID=NA;Method=TransportAgent.recoverSingleOrMultipleDocuments(1);Unable
to send. java.lang.Exception: Host:10.204.3.93, Command:POST, Expected:
200, Response:500
16:25:32 CST 09/06/2007;ALERT;Level 7 TRANSPORT Unexpected
error;power; A service interruption on your network has prevented the
system from processing and sending a document. The system will follow
the procedure for trying to reprocess and resend the document.;Unable
to
send;Sender=powere2e_cn;Receiver=power;UniqueID=a1189067130307powere2e_cnout;CorrelationID=CORR1189067112354.5-;Original
Name=http11890670855904;ID=NA;Method=TransportAgent.recoverSingleOrMultipleDocuments(1);Unable
to send. java.lang.Exception: Host:10.204.3.93, Command:POST, Expected:
200, Response:500
16:25:57 CST 09/06/2007;ALERT;Level 7 TRANSPORT Unexpected
error;power; A service interruption on your network has prevented the
system from processing and sending a document. The system will follow
the procedure for trying to reprocess and resend the document.;Unable
to
send;Sender=powere2e_cn;Receiver=power;UniqueID=a1189067130307powere2e_cnout;CorrelationID=CORR1189067112354.5-;Original
Name=http11890670855904;ID=NA;Method=TransportAgent.recoverSingleOrMultipleDocuments(1);Unable
to send. java.lang.Exception: Host:10.204.3.93, Command:POST, Expected:
200, Response:500
16:26:42 CST 09/06/2007;ALERT;Level 7 TRANSPORT Unexpected
error;power; A service interruption on your network has prevented the
system from processing and sending a document. The system will follow
the procedure for trying to reprocess and resend the document.;Unable
to
send;Sender=powere2e_cn;Receiver=power;UniqueID=a1189067130307powere2e_cnout;CorrelationID=CORR1189067112354.5-;Original
Name=http11890670855904;ID=NA;Method=TransportAgent.recoverSingleOrMultipleDocuments(1);Unable
to send. java.lang.Exception: Host:10.204.3.93, Command:POST, Expected:
200, Response:500
16:28:08 CST 09/06/2007;ALERT;Level 7 TRANSPORT Unexpected
error;power; A service interruption on your network has prevented the
system from processing and sending a document. The system will follow
the procedure for trying to reprocess and resend the document.;Unable
to
send;Sender=powere2e_cn;Receiver=power;UniqueID=a1189067130307powere2e_cnout;CorrelationID=CORR1189067112354.5-;Original
Name=http11890670855904;ID=NA;Method=TransportAgent.recoverSingleOrMultipleDocuments(1);Unable
to send. java.lang.Exception: Host:10.204.3.93, Command:POST, Expected:
200, Response:500
16:30:51 CST 09/06/2007;ALERT;Level 7 TRANSPORT Unexpected
error;power; A service interruption on your network has prevented the
system from processing and sending a document. The system will follow
the procedure for trying to reprocess and resend the document.;Unable
to
send;Sender=powere2e_cn;Receiver=power;UniqueID=a1189067130307powere2e_cnout;CorrelationID=CORR1189067112354.5-;Original
Name=http11890670855904;ID=NA;Method=TransportAgent.recoverSingleOrMultipleDocuments(1);Unable
to send. java.lang.Exception: Host:10.204.3.93, Command:POST, Expected:
200, Response:500
16:36:19 CST 09/06/2007;ALERT;Level 7 TRANSPORT Unexpected
error;power; A service interruption on your network has prevented the
system from processing and sending a document. The system will follow
the procedure for trying to reprocess and resend the document.;Unable
to
send;Sender=powere2e_cn;Receiver=power;UniqueID=a1189067130307powere2e_cnout;CorrelationID=CORR1189067112354.5-;Original
Name=http11890670855904;ID=NA;Method=TransportAgent.recoverSingleOrMultipleDocuments(1);Unable
to send. java.lang.Exception: Host:10.204.3.93, Command:POST, Expected:
200, Response:500
16:47:01 CST 09/06/2007;ALERT;Level 7 TRANSPORT Unexpected
error;power; A service interruption on your network has prevented the
system from processing and sending a document. The system will follow
the procedure for trying to reprocess and resend the document.;Unable
to
send;Sender=powere2e_cn;Receiver=power;UniqueID=a1189067130307powere2e_cnout;CorrelationID=CORR1189067112354.5-;Original
Name=http11890670855904;ID=NA;Method=TransportAgent.recoverSingleOrMultipleDocuments(1);Unable
to send. java.lang.Exception: Host:10.204.3.93, Command:POST, Expected:
200, Response:500
I hava been feazed by this problem for a long time ,hope you help me !
Give me some advice !
Are you still experiencing the problem? From the output of the log, it
seems to me that H2O cannot verify the message signature of the
incoming AS2 message.
Caused by: hk.hku.cecid.edi.as2.AS2Exception: Signature verification
failed
by hk.hku.cecid.piazza.commons.security.SMimeException: Unable
to
verify body part
by hk.hku.cecid.piazza.commons.security.SMimeException:
Verification
failed
at
hk.hku.cecid.edi.as2.module.IncomingMessageProcessor.processReceipt(IncomingMessageProcessor.java:
80)
Is "Message Signature" enforced in your partnership and have the right
certificate imported for verification?
Regards,
ronnie