Skip to Content
author's profile photo Former Member
Former Member

Custom JCA Adapter / Application Error - Message.setErrorInfo() ??

Hi All,

I was looking for how to create a sensible Application Error in a custom JCA adapter and was excited to find the following page in the PCK info on Adapter Development:

http://help.sap.com/saphelp_nw04/helpdata/en/3c/53d6409ff68631e10000000a1550b0/frameset.htm

The part of interest being:

<i>

The following methods are available to enable you to read error information in the form of an ErrorInfo object from the message, or to set the error information in a message.

Message.getErrorInfo()
Message.setErrorInfo()

If the synchronous response message is an application-error message instead of an application response, it must call setErrorInfo(myErrorInfo) for receiver adapters.</i>

However, I can't find these methods, or indeed the "ErrorInfo" object anywhere in the AF classes - does anyone know it's whereabouts? Or is the above page just out of date? If so, what is the new approach for creating Application Level Errors in a custom JCA Resource adapter (not Exceptions - I can do that)

Many thanks,

Chris

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 02:22 AM

    Ok, check the following path in your XI or PCK installation:

    /usr/sap/<SID>/DVEBMGS<XX>/j2ee/cluster/server0/bin/ext/com.sap.aii.af.lib

    or

    /usr/sap/<SID>/JC<XX>/j2ee/cluster/server0/bin/ext/com.sap.aii.af.lib

    Within 'aii_af_ms_api.jar' is the particular class and method you're looking for.

    Also, check Note 766332 for some updated info on adapter development.

    Regards,

    Jin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 01:39 AM

    Hi Chris -

    All the classes required for custom adapter development and the Javadocs are available in the sample_ra.jar archive which you can find on your XI, PCK, or decentral adapter installation. More info herehttp://help.sap.com/saphelp_nw04/helpdata/en/87/3ef4403ae3db12e10000000a155106/frameset.htm">here>. The page is not out of date.

    Regards,

    Jin

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.