Can't decrypt EDI files from AS/2

I got a error in Activity log tab “processed/error: decryption-failed”.
And found an error log in web:

com.wm.app.tn.err.EXMLException:

Could not obtain message content

java.io.IOException
Next ASN.1 object is no SEQUENCE!
java.io.IOException: Next ASN.1 object is no SEQUENCE!
at iaik.asn1.DerInputStream.readSequence(Unknown Source)
at iaik.security.smime.encrypted_content.getContent(Unknown Source)
at wm.EDIINT.util.mime.TNDataContentHandler.getContent(TNDataContentHandler.java:38)
at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:755)
at javax.activation.DataHandler.getContent(DataHandler.java:511)
at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1259)
at com.wm.app.tn.mime.SMime.processEncryptedData(SMime.java:1009)
at wm.tn.mime.processEncryptedData(mime.java:370)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:287)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:587)
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:44)
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:221)
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:49)
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:194)
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:39)
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:403)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:503)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:367

Do anyone know what the problem is?
And how to solve it?
Thanks.

Hi Perngtj,

Here are some troubleshooting tips:

In the past, did you receive similar document from this partner and processed them successfully?

Are you now getting this error for all the documents received from this client? If other documents you are getting is fine, then there was problem with this 1 doc: the content of this doc got currupt or incomplete transfer. Ask partner to resend again.

Check whether digital certificate at your end has expired or not?

Ask the client if they did any upgrade or any digital certificate change at their end?

  • Bhawesh

I faced similar kind of problem. Are you trying to save pipeline using savePipelineToFile and restoring it from file?

I solved this problem.
I found that when “A” webMethods server send an X12 EDI file to “B” server through AS/2, there is no content at TN Transaction Analysis document detail view on B server, and also no content in A server.
I think there somthing wrong about A server, because it should be some content likes codes in the Content tab.
So, I do somwthing about “A” server.
1.clear or delete all CA, CA Chain, and private key in Enterprise and Trading Partner.
2.Shutdown webMethods server.
3.Clean or delete the files in the two folders WmRepository2 and WmRepository.
4.Start webMethods server again.
5.Import or bind the Enterprise CA, CA chain, private key again.
6.Shutdown webMethods server again, and Restart the server.(This refers to other guy’s idea from the forum)
7.Import other trading partner’s CA, CA Chain.

Then, I send an test EDI file from A to B server again.
It work find, no error.