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:

Could not obtain message content
Next ASN.1 object is no SEQUENCE! Next ASN.1 object is no SEQUENCE!
at iaik.asn1.DerInputStream.readSequence(Unknown Source)
at Source)
at wm.EDIINT.util.mime.TNDataContentHandler.getContent(
at javax.activation.DataSourceDataContentHandler.getContent(
at javax.activation.DataHandler.getContent(
at javax.mail.internet.MimeMessage.getContent(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(

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

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.