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

Java Mapping


I have implement a simple mapping between to IDOC-Types in JAVA. As first I would test the mapping therefore I read the InputStream from a testfile, but this did not work. Can anybody help me?

Source code:

SAXBuilder parser = new SAXBuilder();

Document src_doc = FileInputStream("CRMXIF_ORDER_SAVE_TEMPLATE.xml"));

The statement makes the error:

java.lang.NoClassDefFoundError: com/sap/guid/GUIDFormatException











at XIMapping.Map2Orders.main(

Exception in thread "main"

Thanks for help


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jun 21, 2004 at 11:25 AM


    Are you testing your java mapping after adding it to the Repository or outside it (from command line)?

    If you are doing it outside then have you got aii_util_misc.jar(there is GUIDFormatException class) file in your CLASSPATH?

    To test java mapping from command line you have to have aii_map_api.jar file in your CLASSPATH.

    If you want to test your java mapping, I would recommend you to use code like this below (look at the main function) rather than your source code.

    public class YOURMAPPING implements StreamTransformation {

    private Map m_param;

    public void setParameter(Map param) {

    m_param = param;


    public void execute(InputStream in, OutputStream out) {

    // write your logic here

    // for example parsing input stream

    DefaultHandler handler = this;

    SAXParserFactory factory = SAXParserFactory.newInstance();

    try {

    SAXParser saxParser = factory.newSAXParser();

    this.out = out;

    saxParser.parse(in, handler);

    } catch (Throwable t) {





    public static void main(String args[]) throws Exception {


    YOURMAPPING mapping = new YOURMAPPING();

    mapping.setParameter(new Hashtable());

    mapping.execute(new FileInputStream("CRMXIF_ORDER_SAVE_TEMPLATE.xml"), new FileOutputStream("output.xml"));





    Andrzej Filusz

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      I don´t understand really good the concept of mapping test. When you test a mapping refers to test only the XML structures and corelations?, or with proxys you are able in the Integration repository to test this mapping connecting with the involved systems in the interface?.

      In this case what is the best place to test an interface in XI, in BC you can test in every moment any step of the scenario and you have one tool to make all, but in XI i don´t see it clear.

      Sorry, I im stucked now, probably because i am new with this.

      Thanks a lot Björn, i will apreciate any comment or help.


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.