cancel
Showing results for 
Search instead for 
Did you mean: 

Exception in B2B add-on receiver AS2 adapter

former_member194786
Active Contributor
0 Kudos

Hi All,

I am working on a PoC for SAP B2B add-on AS2 adapter. I have used plain XML with file to AS2 iFlow. To complete the loop, I have created another iFlow (AS2 to file). Its a straight forward configuration, with no MDN or encryption (plain HTTP). However while tesing the interface, I am getting this error in AS2 receiver adapter:

"Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.resource.ResourceException: Invalid channel configuration: com.sap.aii.af.service.cpa.impl.exception.CPAObjectException: Value with name receipient.convertCharset not available"

I have tried providing Charset encoding (UTF-8) as well as without using it. I am getting the same error in both cases. For Content-Type field, I have tried with "text/xml" and "application/xml".

Has anyone received this error? Any pointers to resolve this?

Regards,

Sanjeev.

Accepted Solutions (1)

Accepted Solutions (1)

Dimitri
Active Contributor
0 Kudos

Hi,

Are you transmitting EDI files?

Kind regards,

Dimitri

former_member194786
Active Contributor
0 Kudos

Hi Dimitri,

No, this is just a PoC to test that AS2 adapter can be used to post XML data. My source and target are both plain XML. I have used the XSD provided by our 3rd party vendor, who claim to expect XML over AS2.

Regrads,

Sanjeev.

Dimitri
Active Contributor
0 Kudos

Hi ,

Seems like the value you use for field Content-Type is not valid.

I used application/edi-x12 and that works fine for me.

Perhaps you should give it a try too.

Kind regards

Dimitri

former_member194786
Active Contributor
0 Kudos

Hi Dimitri,

Just tried with that option as well, but no luck. I was expecting, since I am using plain xml the Content-Type should be text/xml. Was your scenario to convert the message to EDI format?

A couple of other things to note:

1) I have not used party, rather same Business Component for sender and receiver.

2) I have used same AS2name for both sender and receiver. Does this need to be different?

3) Have routed my message back to PI server, where it is received by another interface within same Business Component.

Best Regards,

Sanjeev.

Dimitri
Active Contributor
0 Kudos

Hi,

Yes, I'm exchanging EDI files.

What is the patchlevel of your AS2 adapter? Perhaps you need to upgrade.

For your POC, try to use the free Mendelson software. I works fine and easy.

Check out my blog series (and ) for easy configuration.


Kind regards,

Dimitri

former_member194786
Active Contributor
0 Kudos

Hi Dimitri,

Thanks for your response. I believe, I have come across a bug here. Error message says": Value with name receipient.convertCharset not available", which is spelt wrong. When I checked the status of channel in cache monitor, I couldn't find any property with receipient.convertCharset, however I found a property with name "recipient.contentType" and this property has the parameter set in it as text/xml. Will raise an OSS with SAP to check if this is really a bug.

Appreciate your help so far! Points awarded for your help so far.

Regards,

Sanjeev Shekhar Singh.

Dimitri
Active Contributor
0 Kudos

Hi,

Please have a look at your AS2 adapter's patch level. Could be that you need to upgrade to avoid known bugs.

For SP1, patch level 10 is available

Either way, please update this thread as soon a solution is available.

In that case, others can benefit from it too.

Kind regards,

Dimitri

former_member194786
Active Contributor
0 Kudos

Hi Dimitri,

We are on the latest patch. I have raised an OSS for the same and will update the thread as soon as I have a response from SAP.

Regards,

Sanjeev.

Answers (1)

Answers (1)

former_member194786
Active Contributor
0 Kudos

Hi All,

It was a bug and SAP replied: "B2B toolkit content which is available on service marketplace, the AMDs which are uploaded on SMP for SP01 are incorrect".

We updated our system to SP02 and problem was resolved. I was able to test the scenario end to end.

I am getting another error now:

"Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.ejb.TransactionRolledbackLocalException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/mail/smime/SMIMESignedGenerator : cannot initialize class because prior initialization attempt failed;"

This is when I try to use digital signature in the receiver AS2 adapter. Have raised another thread for this: http://scn.sap.com/thread/3479622

Regards,

Sanjeev.

vishnu_prasadk
Advisor
Advisor
0 Kudos

Hi Sanjeev,


Please deploy PIB2BPGP. If you have already deployed it, restart the system (optional, if it takes too long to restart) and check if it solves the issue. If it didn't solve the issue then check if you can download the latest patch for PIB2BSFTP. This would solve the issue.

Regards,

Vishnu