Problem is testing mapping via test tab - URGENT

Hello experts,
I have a idoc to file scenario. Now in my production environment, SAP r/3 is sending some 14 idocs containing around 13000 article informations in all. 12 of the 14 idocs have been processed successfully but 2 idocs errored out.
When i see the monitor, it says null pointer exception in mapping. that means its giving error in one of my udf. But what exactly the error is can only be found if i test my mapping with this payload.
I download the XML (which i very big as it contains some 850 article information) and when i try to upload this xml in the test tab, it gives me error that the tree cannot be created and IR hangs. It doesnt respond anymore and i need to forcefully close it via Task Manager. I dont understnad why is it not able to upload the XML. Is there any limit to which the test tab can take the xml or am i missing something.
Please help as this si really urgent as i am working on the production system.
regards,
Yash

hi
Chk the XML structure first..It will really better if U can download the Altova XML tool (if possible ) and can chk the structure .
Java null pointer exception comes if one of ur object is not getting the proper value..
That means U initialize ur object ..U use also in any method..
When U use the object in method it is not getting the exact "value"  u want to pass.Chk also the UDF..
I think the error is due to the UDF u hv written..
Cheers
MANas

Similar Messages

  • Message Mapping via Test tab

    Hi All
    I am trying to send a message via the Test tab of the integration server.I have entered all the details like sender and receiver service and sender interface and namespace. The scenario is JDBC to file. I am using EO as qualilty of effort .The scenario is asynchronous .Once i test the payload in message mapping it gives me the correct output values. But when the same payload I paste it and send via the test tab it does not go thru. I mean sometimes I get the same message at both sender and receiver.And other times it goes into error "Split mapping created no messages " .Can anyone please help me on this as to what might be the problem.
    We have used enhanced interface determination in this.Is it due to this????
    The payload appears like this.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
          <ns1:MT_TEST xmlns:ns1="http://testinterface.com">
             <row>
                <DESCRIPTION/>
                <ITEM_NAME/>
                <CREATION_DATE/>
             </row>
          </ns1:MT_TEST>
       </ns0:Message1>
    </ns0:Messages>

    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_TEST xmlns:ns1="http://testinterface.com">
    <row>
    <DESCRIPTION/>
    <ITEM_NAME/>
    <CREATION_DATE/>
    </row>
    </ns1:MT_TEST>
    Only send the above structure as payload....do not include the other tags....they cause the error
    Regards,
    Abhishek.

  • Problem with Java Mapping

    Hello experts,
    I developed a Java Mapping Programm for reading filename of a pdf file and giving filename to a rfc structure for calling a rfc module. Thus, I test it via testing interface method and implementing a main method in my mapping class, which works, but if I run it in the integration server  I get the following exception:
    MP: Exception caused of com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.StringIndexOutOfBoundsException: String index out of range: -7: com.sap.aii.af.rfc.afcommunication.RfcAFWException: java.lang.StringIndexOutOfBoundsException: String index out of range: -7
    That is the execute method of my class:
         public void execute(InputStream inputStream, OutputStream outputStream)
              throws StreamTransformationException {
              // TODO Auto-generated method stub
              try { //The following is for the FileName in the File Adapter
                   DynamicConfiguration dynamicconfiguration =
                        (DynamicConfiguration) map.get("DynamicConfiguration");
                   DynamicConfigurationKey key =
                        DynamicConfigurationKey.create(
                             "http://sap.com/xi/XI/System/File",
                             "FileName");
                   String myFileName = dynamicconfiguration.get(key);
                   MappingTrace trace = null;
                   trace.addInfo(myFileName);
                   DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                   DocumentBuilder db = dbf.newDocumentBuilder();
                   TransformerFactory tf = TransformerFactory.newInstance();
                   Transformer transform = tf.newTransformer();
                   Document docout = db.newDocument();
                   Element root = docout.createElement("Z_SD_WEB_HP_INVOICE_STATUS");
                   root.setAttribute(
                        "xmlns:ns1",
                        "urn:sap-com:document:sap:rfc:functions");
                   docout.appendChild(root);
                   Element docName = docout.createElement("IM_DOCNAME");
                   root.appendChild(docName);
                   Text srcxml = docout.createTextNode(myFileName);
                   docName.appendChild(srcxml);
                   DOMSource domS = new DOMSource(docout);
                   transform.transform((domS), new StreamResult(outputStream));
              } catch (Throwable throwable) {
                   throwable.printStackTrace();
    If I test via main method and testing interface mapping  the generated xml is like:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><Z_SD_WEB_HP_INVOICE_STATUS xmlns:ns1="urn:sap-com:document:sap:rfc:functions"><IM_DOCNAME>232132.pdf</IM_DOCNAME></Z_SD_WEB_HP_INVOICE_STATUS>
    I do not understand why I get this error in real environment.
    Kind regards,
    Erkan

    Hello experts,
    I found the solution. I will also publish this solution, this is also a point which I sometimes missing here in this forum:
    In creating the rfc-xml with java mapping, so a prefix should be add to the name of the rfc-structure e.g.
    ns1:Z_RFC_CALL. If this prefix is missing, then you get this error:
    com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.StringIndexOutOfBoundsException: String index out of range: -7: com.sap.aii.af.rfc.afcommunication.RfcAFWException: java.lang.StringIndexOutOfBoundsException: String index out of range: -7
    To find this I create a grafical test mapping and I check the test rfc-xml with the java created xml.
    Anyway thanks all for the published recommendations.
    Kind regards,
    Erkan

  • Problems with missing segment in testing IR

    Hi all,
    I have an scenario Flat file --> IDOC.
    I have created an enhancement for the IDOC. The IDOC name is ZFIDCC1_FAC.FIDCCP02.FIDCCP02.
    The IDOC has the segments:   -EDI_DC40
                                                      -E1FIKPF
                                                           -E1FISEG
                                                                 -ZE1FICO
    I'm testing the interface in the IR and I get the correct result. Now, I´ve change the Message mapping (a sort change, for example change the description), save and activate, and now the result is not ok. In the test lab I can not see the ZE1FICO segment.
    I ´ve imported again the IDOC and generated again the metadata in IDX2. Also, I´ve done a Cache refresh in IR and ID, and the result is not ok.
    Please, I need your help!!!!!!. I don´t understand what happen.....
    Thanks in advance.
    Pilar.

    I´ve check the IDOC and the segment ZE1FICO does exists, so I think this is not the problem.
    After reimporting the IDOC I have reimported the IDOC structure in the target message area. I´ve checked the Design tab and I can see the segment ZE1FICO. Then, I´ve tested using the "Test" tab and the segment ZE1FICO has dissapered.
    Thanks in advance.
    Pilar.

  • Error while Test Map in Biztalk 2010

    Hello,
    I have made some changes to the existing map and tried to test the map.The Changes I made is adding a scripting functoid with the following code
    public string Code(string recode, string amount)
    { double k = Convert.ToDouble(amount);
    if(k>0)
    { return " ";
    else return recode;
    also added the logical functoid and value mapping in another field like
    When I clicked the Test Map option, I am getting an error message like this
    I am not sure what is going wrong. Can anybody help me with this.
    Thanks

    Hello,
    I have made some changes to the existing map and tried to test the map.The Changes I made is adding a scripting functoid with the following code
    public string Code(string recode, string amount)
    { double k = Convert.ToDouble(amount);
    if(k>0)
    { return " ";
    else return recode;
    Here's the problem.
    You can't convert a null value
    to a meaningful value through Convert. 
    Your best option is to check for null first
    and then assign a value of 0 (or whatever) to the result.
    Rachit

  • Tds cycle mapping and testing

    hi,
    i have the problem regarding to the tds cycle,so pls inform about the total process of 'TDS CYCLE-MAPPING AND TESTING'
    REGARDS
    JANA

    hai,
    the following is the process to get the TDS certificate
    TDS Certificate
    1.EWT-Basic Settings-Check Recipient type-In-WHTYPE-Rectype-Text
    1.Extended WHT – Basic Setting-india-define business place- 1000
    Enter 1000 as business place and enter description and fill address coloumn.
    Assign Business Place to Country Calendar and Day After
    Define Section code as 1000 and assign business place and fill address coloumn
    Company
    Leave on row as blank
    Enter TDS circle
    Enter TDS No of the company in Search Term ½ and after fillup the address and save it
    Extended WHT – Posting – Certificate numbering for WHT
    1.     Define Numbering Class
    2.     Define Numbering Group
    3.     Define Number Ranges
    4.     Assign numbering Group Numbering class
    1.Extended WHT – Posting-India- Remittance Challan- Document Type
    2.Maintain Number Group
    Company code – Business Area – WHT Type – Number Group
    3.Maintain Number Range for 1,2,3,4,5 under----- text number range from 10001-99999
    4.     Assign number range to number group 1-01,2-01,03-01,4-01,5-01
    WHT tax certificate for Vendor & Customers
    1.     Maintain Number Group and SAP script forms
    Company code/Business Place/Offtake Key/form/No.Group
    2.Maintain Number Range – 2007 – 0001 -1000
    3. Assign Number range to number groups
    1-01,2-02 etc.
    Pls assign points if it is useful.
    Govind.

  • J2EE Database is not available via  test

    Hello my friends,
    I've got a problem with my SAP NW/DB2 installation. When i want to start sap, i get the following output:
    si4host:si4adm 13> startsap si4host
    Checking DB6 db Database
    ABAP Database is not available via R3trans
    Checking DB6 db Database
    Error: java.io.FileNotFoundException: JdbcCon.log (Permission denied)
    J2EE Database is not available via  test
    See logfile JdbcCon.log
    Starting SAP-Collector Daemon
    This is Saposcol Version COLL 20.86 640 - V1.12 for Linux
    Usage:  saposcol -l: Start OS Collector
            saposcol -k: Stop  OS Collector
            saposcol -d: OS Collector Dialog Mode
            saposcol -s: OS Collector Status
    The OS Collector (PID 14643) is already running .....
    saposcol already running
    Running /usr/sap/SI4/SYS/exe/run/startdb
    /usr/sap/SI4/SYS/exe/run/startdb completed successfully
    Checking DB6 db Database
    ABAP Database is running
    Starting SAP Instance SCS01
    Startup-Log is written to /home/si4adm/startsap_SCS01.log
    Instance on host itpc1f41009 started
    Starting SAP Instance DVEBMGS00
    Startup-Log is written to /home/si4adm/startsap_DVEBMGS00.log
    Instance on host itpc1f41009 started
    IGS on host itpc1f41009 started
    The server runs on suse 9.3.
    Anybody know how to solve this?
    Greetings
    Chantal

    Hi
    This is a common problem .Actually ur database pwd is not same mentioned in the configtool----
    secure store.
    Change the database password and update the same in the secure store of configtool.
    Restart the engine.Your problem will be solved.If you have any confusion about how to change the pwd in secure store.Feel free to contact

  • Test mapping

    hi experts,
    I'm mapping my testing, when manually enter values in the window of my test test is OK, when you import a file, the nodes are shown in red and does not work (the values are placed correctly), I do not understand because it can be,
    very thanks,

    Hi Silvia,
    This can be due to the error with namespace of the message.
    Try saving the XML of the message when you enter the values in Test tab and compare it with the XML that you have got.
    There are bound to be some differences in them.
    Regards,
    Alka.

  • Test Package in Test Management tab of Change Document

    Hi Expert,
    When we test on CHARM, we realized that the test package in test management tab can only be
    attach before the developer change the status to "Pass normal change to
    test". Is this standard or can we do any configuration to allow the
    test package be attach during "Test for Preliminary Input" status?
    Thanks
    Best Regards
    Remy

    Hi,
    I manage to solve this issue as below,
    Go to SPRO
    >SAP Solution Manager Implementation Guide
    >SAP Solution Manager
    >Capabilities (Optional)
    >Change Control Management
    >Standard Configuration
    >Change Request Management Framework
    >Adjust UI objects by User Status
    Thanks
    Best Regards
    Remy

  • URGENT:Problem in a mapping with 8 tables in JOIN and using the DEDUP op.

    I have an urgent problem with a mapping: I must load data from 8 source tables (joined togheter) in a target table.
    Some data from 1 of the 8 tables have to be deduplicated, so I created a sort of staging table where I inserted the "cleaned" data, I mean, the deduplicated ones.
    I made it to make all the process faster.
    Then, I joined the 8 tabled, writing the join conditions in the operator properties, and connected the outputs into the fields of the target table.
    But..it does not work because this kind of mapping create a cartesian product.
    Then, I tried again with another mapping builted up in this way: after the joiner operator, I used the Match-Merge Operator and I load all data into a staging table exactly alike the target one, except for the PK (because it is a sequence). Then, I load the data from this staging table into the target one, and, of course, I connect to the target table also the sequence (the primary key). The first loading works fine (and load all the data as I expected).
    For the next loadings,I scheduled a pre-mapping process that truncate the staging table and re-load the new data.
    But..it does not work. I mean, It doesn't update the data previously loaded (or inser the new ones), but only insert the data, not considering the PK.
    So, my questions are as follow:
    1) Why loading the data directly from the joiner operator into the fact table doesn't work? Why does it generate a cartesian product??
    2) The "escamotage" to use the Match-Merge operator is correct? I have to admit that I didn't understand very well the behaviour of this operator...
    3) And, most of all, HOW CAN I LOAD MY DATA? I cannot find a way out....

    First of all, thanks for the answer!
    Yes, I inserted the proper join condition and in fact I saw that when WB generates the script it considers my join but, instead of using the fields in a single select statement, it builts up many sub-selects. Furthermore, it seems as it doesn't evaluate properly the fields coming from the source tables where I inserted the deduplicated data...I mean, the problems seems not to be the join condition, but the data not correctly deduplicated..

  • [svn:osmf:] 14971: Fix a problem discovered by the unit test.

    Revision: 14971
    Revision: 14971
    Author:   [email protected]
    Date:     2010-03-23 16:34:10 -0700 (Tue, 23 Mar 2010)
    Log Message:
    Fix a problem discovered by the unit test.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/BoxParser.as

    (Removed)

  • File to R3: Unable to test mapping

    Hi,
    I am working on File to R/3 scenario. I plan to use File adapter and IDoc adapter. And I did my message mapping from file fields to "Cremas..01". To my knowledge, I mapped all the required fields. But when I test my mapping by entering the input values, I get the below error:
    23:26:26 Start of test
        Mapping object File_to_R/3 incomplete. Unable to continue execution
      23:26:26 End of test
    Any help or pointers with this error would be greatly appreciated.
    Thanks and Regards,
    Giri

    Hi,
    I think you are not giving mandatory fields in the IDOC. For example BEGIN should give a constant value as "1".
    If you give all the mandatory fields then it will work. Try to give all the values and check F7. still if you found any error it will tell you and you can fix them.
    Thanks,
    krishna chaitanya.

  • Testing mapping program

    hi all.
    i want to clear one thing that.
    i have defined graphical mapping in design.
    i.f a file to bapi.
    so i created a graphical mapping program and in that i just need to check no of records in body witn trailer and sum of individaul amounts in body with trailer info .
    if they both match then i need to set BAPI flag in reciever side as Y Otherwise N.
    so just created my mapping program and tested it with only one record in body.
    in this case it is sucess but when i tested the mapping program by putting two records in body (by duplicate subtree option in design mapping) .
    in this case even the checking matches the flag in reciver side i.e BAPI is set to N.
    so i just nee d to conform what is the way for testing mapping program in design.
    waiting for u r response.
    bye.
    regards.
    seeta ram.

    Hi Ram,
    your this way of testing msg mapping is okay.......just check the logic of your mapping and correct it, then you will get correct output in your this scenario.....
    Thanks,
    Rajeev Gupta

  • J2EE database not available via test

    Hi Experts,
    I have installed NW 7.0 portal Ehp2 system on Solaris cluster with logical name  . Now when I try to start SAP with the startsap script . it is not starting the database (Oracle) . It just checks whether DB is running and giving message J2EE database not available via test , and asking to check JdbCon.log .
    This is Bootstrap log
    com.sap.engine.frame.core.configuration.ConfigurationException: Error while connecting to DB.
            at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:384)
            at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.<init>(DBConnectionPool.java:132)
            at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.<init>(PersistenceHandler.java:38)
            at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.<init>(ConfigurationCache.java:150)
            at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.init(ConfigurationManagerBootstrapImpl.java:214)
            at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBootstrapImpl.<init>(ConfigurationManagerBootstrapImpl.java:46)
            at com.sap.engine.bootstrap.Synchronizer.<init>(Synchronizer.java:76)
            at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:474)
            at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:156)
            at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:946)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:331)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Caused by: java.sql.SQLException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    If I start db manually , then runnig startsap , it runs fine . And also stopsap script , wont stop database .
    I checked listener.ora,tnsnames.ora, user profiles, environment variables, permissions etc , nothing found wrong .
    When I execute startj2eedb as sidadm , it starts db .
    Can you please throw some light on this issue
    Regards,
    Nibu Antony

    Yes, it is all logical hostname .
    For more clarification on the issue
    bash-3.2$ startsap <logical hostname>
    Checking <SID> Database
    J2EE Database is not available via  test
    See logfile /usr/sap/<SID>//JdbcCon.log
    Starting Startup Agent sapstartsrv
    Instance Service on host hostname<SID>p1 started
    Starting SAP Instance SCS00
    Startup-Log is written to /usr/sap/<SID>//startsap_SCS00_hostname<SID>p1.log
    Instance on host hostname<SID>p1 started
    Starting Startup Agent sapstartsrv
    Instance Service on host hostname<SID>p1 started
    Starting SAP Instance JC01
    Startup-Log is written to /usr/sap/<SID>//startsap_JC01_hostname<SID>p1.log
    Instance on host hostname<SID>p1 started
    Starting SAP-Collector Daemon
    12:38:20 13.03.2014     LOG: Using PerfDir (DIR_PERF) = /usr/sap/tmp
    * This is Saposcol Version COLL 21.04 720 - V3.83 64Bit
    * Usage:  saposcol -l: Start OS Collector
    *         saposcol -k: Stop  OS Collector
    *         saposcol -d: OS Collector Dialog Mode
    *         saposcol -s: OS Collector Status
    * Starting collector (create new process)
    saposcol on host hostname<SID>p1 started
    bash-3.2$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Thu Mar 13 12:38:34 2014
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to an idle instance.
    here is the logs
    JdbcCon.log
    Start: Thu Mar 13 12:36:48 AST 2014
    Error: Couldn't connect to DB
    java.sql.SQLException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory

  • Portal Installation Error: J2EE Database is not available via test

    When starting SAP with startsap I get this error
    Checking EZP Database
    J2EE Database is not available via test
    See logfile JdbcCon.log
    In the JdbcCon.log:
    Start: Fri Nov 20 08:25:28 MST 2009
    Error: Couldn't connect to DB
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    The listener is up & running. I can tsnping to the EZP. The database is up & running
    This is a new portals instance on AIX
    hostname: ezpdb01-lp
    OS: AIX 6.1
    Oracle: 10.2.0.4
    Any advice?

    Hi Bill,
    Your are able to execute command start SAP succefully by using host
    ezpdb01
    I am using the correct hostname...
    listener.ora
    HOST = ezpdb01-lp
    tnsnames.ora
    HOST = ezpdb01-lp
    UNIX - hostname
    ezpdb01-lp
    1)
    ezpdb01-lp:ezpadm 7> startsap ezpdb01-lp
    no start profiles found
    2)
    ezpdb01-lp:ezpadm 7> startsap ezpdb01
    I get the same error in JdbcCon.log
    Start: Tue Dec 01 08:45:53 MST 2009
    Error: Couldn't connect to DB
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    1. Now first step take backup of tnsname.ora & listner.ora
    2. Edit hostname present from ezpdb01-lp to ezpdb01 in both the file.
    3. Now try to start sap with command
    startsap ezpdb01
    , if still error exits then pls paste the contain present in sqlnet.ora.
    Thanks
    Anil

Maybe you are looking for

  • Disk Failure

    When I am trying to update my songs on itunes I get Attempting to copy to the disk _ ipod failed. The disk could not be read from or written to. What is wrong with it?   Windows XP   iPod mini   Windows XP  

  • Different versions of the same app on the app store

    Is it possible to let users download the different versions of the same app from the App store,( even though I have not seen it but just wonder whether it is possible) ? If not then can we have different releases of the same product with different fe

  • MY IPOD TOUCH ISN'T CHARGING

    my ipod touch isnt charging when i plug it in my wall charger(the charger is a samsung)i left it all night but didint even get 1% of charge.I then plugged it in my computer(see below)but said "USB DEVICE NOT RECOGNIZED". i tried everything:bought a n

  • Stored Procedure basic timing questions

    If I have the following statements in one stored procedure, what happens if a user does an update, insert, or select to the MAIN_TABLE during the procedure (assume the procedure takes a few seconds)? MY_PROCEDURE: INSERT INTO BACKUP_TABLE (COL1, COL2

  • Internal processing

    Hi, I launched a OWB mapping. The mapping takes the records from the SOURCE table and checks whether the (column1 and column2) unique constraint is present in TARGET table. if it is already present, it will UPDATE. If the combination is new one, it w