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

Mapping Error: com.sap.aii.utilxi.misc.api.BaseRuntimeException

Hi All,

I am workign on a scenario, where i am getting dtaa from SQL server using sender JDBC adapter.

I need to pass this data into a Z-RFC to update a ztable.

While executing the scenario, the messages are populatingin SXMB_MONI with the following error and Red Flag.

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

thrown during application mapping

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

Message-Mapping transformatio~

I have tested Message Mapping in Repository. Its working fine.

But when i copy the payload from SXMB_MONI and paste the same payload in Message Mapping (Repository), the system is showing following Error.....

Details

java.lang.NullPointerException

STACKTRACE:

com.sap.aii.ib.core.mapping.exec.ExecuteException: java.lang.NullPointerException

at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:477)

at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169)

at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52)

at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:301)

at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)

at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

java.lang.NullPointerException

STACKTRACE:

java.lang.NullPointerException

at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59)

at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:182)

at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:149)

at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102)

at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:431)

at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169)

at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52)

at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:301)

at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)

at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

I have tested the Configuration in Integration Directory with the payload from SXMB_MONI... The error is same as above mentioned.

In message mapping, the source message type is a data type similar to the selected fields from sql server.

The target message type is the imported RFC.

The RFC is working fine, when i enter the data manually in R/3.

I am unable to trace out the error behind this kind of situation....

Can any one guide me in this regard...??

Regards

Pavan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 09:08 AM

    Hi pavan,

    try copying only exact payload....starting from the node....

    if u observe xml in sxmb_moni and mapping test there will be a difference..."ns0"

    and " ns1" like that.....so if u exactly copy the whole thing in mapping test it wil give error...instead try keepiong the header same in test xml and paste only payload starts with nodes....try this hope it will work....

    Reward points if usefull!!!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 30, 2007 at 01:56 PM

    Hi

    please replace your Document name in sender CC as message type name instead of resultset

    also please provide the Document namespace in sender CC

    please check it

    with regards

    gabriel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      as you have tested the message mapping take that payload and compare it with the payload from SXMB_MONI. sould be that the payload is not as expected

      in integration directory tools-->test configuration

      1. test with the payload u used while successfully testing in messag mapping

      2. test with the payload u have in sxmb_moni

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 11:56 AM

    Hi Pavan,

    As u have tested the mapping which is working fine thats good,

    Now u also check weather u r entering the right values in the payload. For example if the value of the field in the payload exceeds the permisable length then it could throw the exception. And also check wether the there any condition sepcified for the particular recevier in the mapping.

    Hope this could slove u r problem...

    Reward with points if helpful

    Regards

    Sai Ganesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 07:09 AM

    Hi,

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

    thrown during application mapping

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

    Message-Mapping transformatio~

    >>>this must be the problem with ur mapping check u have mapped the correct fields according to ur scenario and also compare the result of the source u got in sxmb_moni with the source of message mapping in(IR)............

    Regards,

    Azeez khan.

    Add a comment
    10|10000 characters needed characters exceeded

    • If u r using JDBC sender, then u must have structure similar to this

      <resultset>

      <row>

      <column-name1>column-value</ column-name1>

      <column-name2>column-value</ column-name2>

      </row>

      <row>

      <column-name1>column-value</ column-name1>

      <column-name2>column-value</ column-name2>

      </row>

      </resultset>

      However in ur message mapping payload, it seems to be different.

      After SENDER_MT, add a node say "row"

      And the message mapping payload and <b>Sender</b> payload from sxmb_moni should be same.

      Regards,

      Prateek

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.