cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Reciever RFC Adapter

Former Member
0 Kudos

Hi All,

While working with JDBCXIRFC, the only error with Reciever RFC Adapter is as

follows.

*************

ZBAPICUSTOMER_DETAILS: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declaration(2)

*****************

In SXMB_MONI, the messages are queued up.

How to debug this error?

Regards

Pavan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You must have declared some message type for JDBC. Just add XML Namespace in message type. Also reimport RFC structure in IR and Activate the RFC communication channel too.

I hope you are missing XML Namespace in message type.

-Gouri

Former Member
0 Kudos

NOw i have added XML name as RFC's namespace (urn:sap-com:document:sap:rfc:functions) in message types.

Now in the comminication channel monitoring, the sender JDBC is not having any errors with green light.

The reciever RFC Adapter is showing as "Error in Update" in place of Green light (Status).

The short log for this RFC Adapter is displayed as follows...

********

Receiver channel 'rfc_reciever_cc' for party '', service 'TR2' (internal name 'RfcClient[rfc_reciever_cc]')

Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=800, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=IBABAP, jco.client.sysnr=00, jco.client.ashost=172.16.9.19}

Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=800, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=IBABAP, jco.client.sysnr=00, jco.client.ashost=172.16.9.19}

Current pool size: 0, maximum pool size : 4

What it means?

Former Member
0 Kudos

You should not mention RFC Namespace. Please mention JDBC Namespace. if possible send screen shot on joshi.gouri@gmail.com

I will check.

-Gouri

Former Member
0 Kudos

Gouri,

Now there is no error in Receiver RFC communicaiton channel.

But al lmessages are qued up in SXMB_MONI.

I have sent you snap shots of the same to your gmail account.

Kindly check out and let me know...

Thanks and Regards

Pavan

Former Member
0 Kudos

If messages are getting stuck up in queues, check out SMQ1, SMQ2 . Also check cache is refreshed. R u getting any error in queue?

-Gouri

Former Member
0 Kudos

I am not getting any errors in Ques...

All messages are scheduled and displaying Green flag.

In SMQ2, if i enter the que name and execute,

i am getting following lines..

Cl. Queue Name Entries Status Date 1 Time 1 NxtDate NxtTim Sender ID

001 XBTI0003 1.039 SYSFAIL 23.10.2020 16:23:33 02.11.2020 13:21:16 ibxi_IXI_00

What might be the error?

Regards

Pavan

Former Member
0 Kudos

Go to SMQ2. Check specific queue. Unlock the queue and refresh. Just check status should be RUNNING.

Just do it and let me know the result.

-Gouri

Former Member
0 Kudos

I have entered the latest Queue name in SMQ2 and unlocked and Refreshed.

Still its showing SYSFAIL as Status.

When i double clicked the Queue Name, i found series of lines in qRFC Monitor.

the first line is displaying its status Text as " XI restart in qRFC not allowed".

The rest lines are displaying status Text as " Transaction recorded".

When i refresh casche using url "http://ibxi:50000/CPACache/refresh?mode=full", the page will display the following message...

CPA cache refresh (mode=full) successfully executed in 7641 milliseconds.

Any idea?

Regards

Pavan

Former Member
0 Kudos

Double click on " XI restart in qRFC not allowed". You will get the actual error message. (Red flag message in SXMB_MONI).

Repeat this for all queues and not only for latest queues.

Let me know the error when u double click on " XI restart in qRFC not allowed".

Try taking JAVA engine restart.

-Gouri

Former Member
0 Kudos

When i am double clicking the " XI restart in qRFC not allowed", i m getting red flag with error " System Error - Manual Restart Possible".

When i double click on this flag, i m getting Informative message Box with text " Error while refreshing the XI runtime cache".

Error catagory: XICACHE

Error ID: update

Now what to do....???

Regards

Pavan

Former Member
0 Kudos

Hi Pavan

Goto SXI_CACHE, check whehter the cache contents are up to date or not.

Do Delta Cache Refreshing, this option is available in the menu options there.

Ravi.

Former Member
0 Kudos

Ravi,

In SXI_CACHE, the cache contents are upto date with green light.

I have clicked for Start Delta cache clear.

regards

Pavan

Former Member
0 Kudos

Manually Restart the message in red. It will automatically go and remaining messges from that queue will also go. Do this for all queues.

I hope this will solve your problem.

-Gouri

Former Member
0 Kudos

If i manually restart such messages, again its throwing error as follows...

" com.sap.aii.utilxi.misc.api.BaseRuntimeException

thrown during application mapping

com/sap/xi/tf/_sender_mm_: RuntimeException in

Message-Mapping transformatio~".

Any idea?

Regards

Pavan

Former Member
0 Kudos

Check your mapping.

Former Member
0 Kudos

I have a Sender Data type sender_dt.

sender_dt

Row (1...n)

zkunnr (1..n)

zname1 (1...n)

zadrnr (1..n)

zsrtas (1...n)

ztelf1 (1...n)

the scenario is as follows..

sql >sender JDBC->XI->Reciever RFC->SAP R/3

<b>1. Now what should be the reciever Data type?</b>

(Please tell me the structure of data type.)

The inbound interface wil be based on sender data type and sender message type.

The outbound interface will be the Z-RFC (BAPI) which is imported from SAP R/3.

<b>2. In message mapping, how the mapping should be defined?</b>

(Is it going to be a mapping between sender dataa type and reciever data type or sender data type and ZBAPI)

3. If the mapping has to be betn sender data type and ZBAPI, how the 'ROW' of sender_dt has to be mapped to Zbapi?

Z-BAPI is used to update the SAP ztable.

nisarkhan_n
Active Contributor
0 Kudos

your receiver data type will be the BAPI which you have imported frn the R/3.

mapping...the row is mapped to the root of the BAPI and the fileds from sender directly to the field of the BAPI.

Former Member
0 Kudos

sender data type:

->Row

-


> zkunnr element xsd:string 1: unbounded

-


> zname1 element xsd:string 1: unbounded

-


> zstras element xsd:string 1: unbounded

-


> zadrnr element xsd:string 1: unbounded

-


> ztelf1 element xsd:string 1: unbounded

The BAPI structure is as follows...

zbapicustomer_details

-->iadrnr 1:1 xsd:string

-->icustomer 1:1 xsd:string

-->iname 1:1 xsd:string

-->istrs 1:1 xsd:string

-->itel 1:1 xsd:string

No i have mapped as follows...

Row----


>zbapicustomer_details

zkunnr----


>icustomer

zname----


>iname

zadrnr----


>iadrnr

zstras----


>istrs

ztelf1----->itelf1

Mapping is OK.. But Duplicate entries can not be tested. because if i input Duplicate entries, the target message type does not showing duplicate entries in testing.

Is it the reason behind Mapping error????

If so, how to overcome this issue?

Regards

Pavan

nisarkhan_n
Active Contributor
0 Kudos

number of times the row appears in the test tab...that many times the bapi will occur...

by duplicate you mean the row occurence right? it should come....according to your mapping.

Former Member
0 Kudos

sender data type:

<b>sender_mt 1:1

->Row element 1:unbounded</b>

-


> zkunnr element xsd:string 1: unbounded

-


> zname1 element xsd:string 1: unbounded

-


> zstras element xsd:string 1: unbounded

-


> zadrnr element xsd:string 1: unbounded

-


> ztelf1 element xsd:string 1: unbounded

The BAPI structure is as follows...

<b>zbapicustomer_details 1:1</b>-->iadrnr 1:1 xsd:string

-->icustomer 1:1 xsd:string

-->iname 1:1 xsd:string

-->istrs 1:1 xsd:string

-->itel 1:1 xsd:string

No i have mapped as follows...

Row----


>zbapicustomer_details

zkunnr----


>icustomer

zname----


>iname

zadrnr----


>iadrnr

zstras----


>istrs

ztelf1----->itelf1

Kindly check out the BOLD letters of above mentioned info.

Hope it may throw some light on this issue.

With this mapping, in Integration Directory->Tools->test Configuration, i am getting error at interface determination with the error log as follows..

java.lang.NullPointerException thrown during application mapping com/sap/xi/tf/_sender_mm_:

Can any one help me out....???

Regards

Pavan

Answers (8)

Answers (8)

Former Member
0 Kudos

--->If i take the payload from SXMB-MONI and test in message mapping, its showing "java.lang.NullPointerException" error.

My first question is your scenario running end to end...?If not then what type of error you are getting..and where..(in moniRWB)

Let me know the error in SXMB_MONI on running the scenario..(if exists) ?

Regards,

Former Member
0 Kudos

The error in SXMB_MONI is as follows...

com.sap.aii.utilxi.misc.api.BaseRuntimeException

thrown during application mapping

com/sap/xi/tf/_sender_mm_: RuntimeException in

Message-Mapping transformatio~

The error message is displaying RED flag.

Error catagory: MAPPING

Error ID: Exception_during_mapping

Former Member
0 Kudos

Pavan tell me the mapping test result ...from IR only

Regards,

Former Member
0 Kudos

But in SXMB_MONI, the messages are in red flag with error as Mapping error.

The payload of such messages have been tested in message mapping.

In message mapping, i m facing error as " java.lang.NullPointerException".

The installed java web start is 1.4.2-13.

Now, i would like to know, whether to change the version of this java web start...??

If YES, what should be the correct version?

<b>--> not required...</b>

If the error java.lang.NullPointerException is not associated with the Java web start version, then what needs to be checked...???

Any idea...???

<b>1 .Check the occurrences parameter in data type ...

2. What about the mapping test when you directly create the payload from message mapping and test it...( i mean to say when you don't copy and paste the payload from SXMB_MONI)...?</b>

Regards,

Former Member
0 Kudos

Hi Santosh,

If i test my message mapping in IR, the mapping results with no warnings/errors.

I have even tested the Duplicate entries (Multiple entries) in message mapping.

The result is perfect.

The required data mapping can be seen in the target structure (ZBAPI) as desired. With the same set of data, i have tested the BAPI in R/3 environment.

The BAPI performs well and desired table gets updated.

I have taken payload (multiple entries) from message mapping and tested in Runtime>integration engine->test message. The result was OK and table gets updated.

But the messages coming from JDBC are now showing red flag and mapping error as error message. If i take the payload from SXMB-MONI and test in message mapping, its showing "java.lang.NullPointerException" error.

Former Member
0 Kudos

Pavan,

Test the RFC Destination...INTEGRATION_DIRECTORY_HMI

<b>You should get a EMPTY +ve Response.....Issue is with cache refresh i can say...</b>

Please let me know the configuration of your XI box( Ram and Hard disk capacity)..It seems to be problem with hardware also..

<b>Cache is not getting refreshed as frequently as it should...</b>..

go to RWB and refresh Full CPA Cache

Regards,

Former Member
0 Kudos

Hi,

In my SQLJDBCXIRFCSAP scenario,

i am facing error in mapping.

The Adapters are perfectly working and the integration test is OK (Runtime>Integration Engine>test message). In this case, sap table is getting updated with the given payload.

But in SXMB_MONI, the messages are in red flag with error as Mapping error.

The payload of such messages have been tested in message mapping.

In message mapping, i m facing error as " <b>java.lang.NullPointerException</b>".

The installed java web start is 1.4.2-13.

Now, i would like to know, whether to change the version of this java web start...??

If YES, what should be the correct version?

If the error java.lang.NullPointerException is not associated with the Java web start version, then what needs to be checked...???

Any idea...???

Regards

Pavan

Former Member
0 Kudos

1. Map all the mandatory fields..

I have mapped all the mandatory fields. If i enter same kind of values in the same fields of BAPI manually (in se37), the table gets updated.

<b>how you can say that data is getting into the right tables...when you are sending the same data..</b>...may be the data is old only..

<b>Perform the Message Mapping and Interface Mapping test in IR only...</b>

3. Kindly check the Sender_MM Mapping once more...If it is fine...reactivate and Update the cache..

Its fine and reactivated and even updated cache.

Now one doubt....

In Message mapping, the sender mesage type is as follows.

sender_mt 1:1

->Row element 1:unbounded

-


> zkunnr element xsd:string 1: unbounded

-


> zname1 element xsd:string 1: unbounded

-


> zstras element xsd:string 1: unbounded

-


> zadrnr element xsd:string 1: unbounded

-


> ztelf1 element xsd:string 1: unbounded

I have mapped ROW with ZBAPI_DETAILS.

the root of sender message type SENDER_MT is left as it is....

Is there anything need to be done (mapped) with this root of sender message type?

<b>No i don't think so, what i can get from your approach is that you want to receive n similar type of records in a Message and want 2 create n different messages for each record from source structure.. </b>

With this status, i have tested the Test Configuration in Integration Directory. Still getting same error message as follows...

Kindly let me know the name of BAPI.

<b>Perform the Message Mapping and Interface Mapping test in IR only...</b>

java.lang.NullPointerException thrown during application mapping com/sap/xi/tf/_sender_mm_:

Regards,

Former Member
0 Kudos

--->But Duplicate entries can not be tested. because if i input Duplicate entries, the target message type does not showing duplicate entries in testing.

Can you elaborate this thing...As per me it should allow...at the time of testing only, be it Interface or Message Mapping .

Regards,

Former Member
0 Kudos

--->i am getting error at interface determination with the error log as follows..

java.lang.NullPointerException thrown during application mapping com/sap/xi/tf/_sender_mm_:

to me clearly the problem is with mapping :

1. Map all the mandatory fields..

2. Make sure that you are using the right mapping program(via interface mapping) in the interface determination step.

3. Kindly check the Sender_MM Mapping once more...If it is fine...recativate and Update the cache..

Regards,

Former Member
0 Kudos

1. Map all the mandatory fields..

I have mapped all the mandatory fields. If i enter same knid of values in the same fields of BAPI manually (in se37), the table gets updated.

2. Make sure that you are using the right mapping program(via interface mapping) in the interface determination step.

Its checked and proper interfaces are used.

3. Kindly check the Sender_MM Mapping once more...If it is fine...recativate and Update the cache..

Its fine and reactivated and even updated cache.

Now one doubt....

In Message mapping, the sender mesage type is as follows.

sender_mt 1:1

->Row element 1:unbounded

-


> zkunnr element xsd:string 1: unbounded

-


> zname1 element xsd:string 1: unbounded

-


> zstras element xsd:string 1: unbounded

-


> zadrnr element xsd:string 1: unbounded

-


> ztelf1 element xsd:string 1: unbounded

I have mapped ROW with ZBAPI_DETAILS.

the root of sender message type SENDER_MT is left as it is....

Is there anything need to be done (mapped) with this root of sender message type?

With this status, i have tested the Test COnfiguration in Integration Directory. Still getting same error message as follows...

java.lang.NullPointerException thrown during application mapping com/sap/xi/tf/_sender_mm_:

Former Member
0 Kudos

Map,

Sender_MT to TCUSTOMER

Row to Item

Customer to Zkunnr and so on.

Try and let me know the output.

-Gouri

Former Member
0 Kudos

Also map Sender_MT to ZBAPICUSTOMER_DETAILS.

Former Member
0 Kudos

Now, i have mapped the sender_mt and ZBAPI as follows..

sender_mt -


ZBAPICUSTOMER_details

sender_mt----


Tcustomer

Row------- Item

zkunnr------zkunnr

zname----zname

zadrnr---zadrnr

zstrs----zstrs

ztelf1---ztel

zkunnr-----icustomer

zadrnr----iadrnr

zname---iname

zstrs---istrs

ztelf1----itel

Now i have tested the message mapping. Its perfect and even showing multiple entries (Duplicate keys) in the result.

Even Interface mapping is tested and its OK.

Still test Configuration in Integration Directory showing same error abt message mapping.

The messages in SXMB-MONI are scheduled with green flag.

In SM59, the connection is perfect between Xi and SAP R/3.

In smq2, if i restart the scheduled message, its throwing error as follows..

<SAP:AdditionalText>Error when reading HTTP destination: INTEGRATION_DIRECTORY_HMI.</SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Error while refreshing the XI runtime cache</SAP:Stack>

We have cleared the cache several times in SXI_CACHE and even using url.

i am totally down to find out the bug behind this issue...!!!!!

Regards

Pavan

Former Member
0 Kudos

Reactivate the RFC Adapter.

Whatever message is in RED, cancel that message and try to clear new messages. If possible cancel all the wrong messages. Clear everything and then restart your interface.

I think now mapping is correct but cache is not uptodate and old incorrect entries are stucked up in queue.

If possible take server restart.

Let me know the result.

-Gouri

former_member335553
Active Contributor
0 Kudos

Exact solution to check

https://forums.sdn.sap.com/click.jspa?searchID=6407587&messageID=1119647

Message was edited by:

Anusha Ramsiva