XI Mapping: Class versions are incompatible (linkage error)

Hi,
i have a simple File-to-File scenario, and I am getting the following error as observed in the XI Monitor:
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">LINKAGE_ERROR</SAP:Code>
<SAP:Stack>Class versions are incompatible (linkage error)</SAP:Stack>
To troubleshoot the mapping, I have removed all mappings, and put the target nodes to constant values. I am still getting the error in Mapping (linkage error).
I am using XI3.0SP0 (J2EE SP07, ABAP SP3). Is this a known problem / OSS notes available ? thanks.
Regards,
Manish Agarwal.

Hallo Agarwal,
have a look in OSS Message #755302
Regards Franz Forsthofer

Similar Messages

  • Java Mapping - Class versions are incompatible (linkage error)

    Hi Friends,
        While testing java mapping in Integration Repository i am getting an error - "Class versions are incompatible (linkage error)". Can anyone plz tell what might be the reason.
    Regards,
    Gowtham Kuchipudi.

    hello
    I have this message but my trace look like this:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Trace xmlns:SAP="http://sap.com/xi/XI/Message/30">
    - <Trace level="1" type="B" name="interface activity determination">
      <Trace level="1" type="T">Version 000</Trace>
      <Trace level="1" type="T">Message status 000</Trace>
      <Trace level="1" type="T">Interface action INIT</Trace>
      <Trace level="1" type="T">(must be INIT for a new determination)</Trace>
      <Trace level="1" type="T">Message type BEST EFFORT. -> No determination</Trace>
      <Trace level="1" type="T">Set interface action INIT into *MAST*</Trace>
      </Trace>
      <Trace level="1" type="E">CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST</Trace>
    - <Trace level="1" type="B" name="PLSRV_RECEIVER_DETERMINATION">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_RD_PLSRV-ENTER_PLSRV">
      <Trace level="1" type="T">R E C E I V E R - D E T E R M I N A T I O N</Trace>
      <Trace level="1" type="T">Cache Content is up to date</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
    - <Trace level="1" type="B" name="PLSRV_INTERFACE_DETERMINATION">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_ID_PLSRV-ENTER_PLSRV">
      <Trace level="1" type="T">I N T E R F A C E - D E T E R M I N A T I O N</Trace>
      <Trace level="1" type="T">Cache Content is up to date</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
    - <Trace level="1" type="B" name="PLSRV_RECEIVER_MESSAGE_SPLIT">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_XMS_PLSRV_RECEIVER_SPLIT-ENTER_PLSRV">
      <Trace level="1" type="T">number of receivers: 1</Trace>
      <Trace level="1" type="T">Single-receiver split case</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
      <Trace level="1" type="B" name="PLSRV_MAPPING_REQUEST" />
    - <!--  ************************************
      -->
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Interface Mapping http://Migdal.co.il/CRM/SAP-CRM/ProposalDeatailsService ProposalDeatailsService_WS2RFC_IM</Trace>
      <Trace level="1" type="T">LinkageError at JavaMapping.load(): Could not load class: xmlpayload</Trace>
      <Trace level="1" type="T">java.lang.UnsupportedClassVersionError: xmlpayload (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.lang.ClassLoader.defineClass(ClassLoader.java:448) at com.sap.aii.ibrun.server.mapping.MappingLoader.findClass(MappingLoader.java:158) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at com.sap.aii.ibrun.server.mapping.JavaMapping.load(JavaMapping.java:95) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:45) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy158.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor428.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:107) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) 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:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)</Trace>
      <Trace level="1" type="T">Linkage error occurred when loading class xmlpayload (http://Migdal.co.il/CRM/SAP-CRM/ProposalDeatailsService, d7e31f30-53be-11dc-8fbd-ee09c0a8664d, -1)</Trace>
      <Trace level="1" type="T">com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Linkage error occurred when loading class xmlpayload (http://Migdal.co.il/CRM/SAP-CRM/ProposalDeatailsService, d7e31f30-53be-11dc-8fbd-ee09c0a8664d, -1) at com.sap.aii.ibrun.server.mapping.JavaMapping.load(JavaMapping.java:115) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:45) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy158.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor428.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:107) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) 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:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172) Root Cause: java.lang.UnsupportedClassVersionError: xmlpayload (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.lang.ClassLoader.defineClass(ClassLoader.java:448) at com.sap.aii.ibrun.server.mapping.MappingLoader.findClass(MappingLoader.java:158) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at com.sap.aii.ibrun.server.mapping.JavaMapping.load(JavaMapping.java:95) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:45) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy158.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor428.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:107) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) 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:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)</Trace>
      <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--  ************************************
      -->
      </SAP:Trace>
    the error that I recieve in the SXMB is:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">LINKAGE_ERROR</SAP:Code>
      <SAP:P1>xmlpayload</SAP:P1>
      <SAP:P2>http://Migdal.co.il/CRM/SAP-CRM/ProposalDeatailsS~</SAP:P2>
      <SAP:P3>d7e31f30-53be-11dc-8fbd-ee09c0a8664d</SAP:P3>
      <SAP:P4>-1</SAP:P4>
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Class versions are incompatible (linkage error)</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    this is my XI information
    Runtime Environment
    Java version:1.4.2_12
    Java vendor:Sun Microsystems Inc.
    Version
    Service pack:21
    Release:30_VAL_REL
    Latest change:409678
    Sync time:200709211024
    since I already have the SP required by the note, any other suggestions?
    Thanks
    Kfir

  • Class versions are incompatible (linkage error)

    Hi All,
    I New to SAP XI and i've been working on java mapping, i Used RAD 6.0 for generation of class files, i imported the generated files into Integration builder.
    but when i execute the scenario i'm getting this error
    "Class versions are incompatible (linkage error)"
    in message monitoring with a red flag..
    can anyone explain me why i'm getting this error....
    Thanks & Regards,
    Sai Kumar Madduri

    Hi,
    Our PI Details:
    Runtime Environment
    Java version: 1.5.0_14
    Java vendor:Sun Microsystems Inc.
    Version
    Service  pack:09
    Release: 645_VAL_REL
    NWDS IDE: 1.5.0_14
    XI
    Software component details
    XI TOOLS 3.0
       Support Package 11 of SAP_XITOOL, 3.0 SP011 011
    XI TOOLS 7.0
       No Entry for Support Packages.
    Request to advise what is the best option for my JAVA Dom program to run
    regards
    shekar Chandra

  • ODM and ODM schema versions are incompatible please use ODM api version ver

    Hi,
    I am with a problem, I am with the version of Oracle 10g 10.1.0.3 EE in Linux As 3 and I am not getting to rotate Oracle it Dates Mining, when I am going login in the program him of the the following mistake,
    ODM and ODM schema versions are incompatible please use ODM api version version 10.1.0.3
    excuses for bad English!
    tks,
    Welvis Douglas
    Msn : [email protected]

    Hi,
    When using Data Miner, the api that it uses to connect to the ODM database option must have the same version number as the db itself.
    See the following page:
    http://www.oracle.com/technology/products/bi/odm/odminer.html
    And scroll down to the section on the 10.1.X apis:
    "Data Miner requires that the version of odmapi.jar in the Data Miner lib directory be the same as the version of odmapi.jar installed with ODM. The version of odmapi.jar shipped with Data Miner is 10.1.0.2. Here are the additional patch versions of odmapi.jar for download:"
    There are links there to get the .jar files required for the version you are using (10.1.0.3).
    Thanks, Mark.

  • TNS:versions are incompatible

    we have oracle Version 10.2.0.3.0 on hp-ux.
    I can see the following alert in the listener log. can you please suggest what can be done to resolve this issue??
    Trace level is currently 0
    Started with pid=12844
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ss.pta.za.go2uti.com)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    21-APR-2009 06:48:47 * status * 12618
    TNS-12618: TNS:versions are incompatible
    21-APR-2009 06:49:19 * status * 12618
    TNS-12618: TNS:versions are incompatible
    21-APR-2009 06:57:31 * status * 12618
    TNS-12618: TNS:versions are incompatible
    21-APR-2009 06:58:13 * ping * 0
    21-APR-2009 07:06:56 * status * 12618
    TNS-12618: TNS:versions are incompatible
    21-APR-2009 07:07:05 * ping * 0
    21-APR-2009 07:07:12 * stop * 12618
    TNS-12618: TNS:versions are incompatible
    21-APR-2009 09:31:36 * status * 12618
    TNS-12618: TNS:versions are incompatible
    21-APR-2009 13:01:04 * status * 12618
    TNS-12618: TNS:versions are incompatible
    21-APR-2009 13:01:15 * ping * 0
    21-APR-2009 13:01:28 * stop * 12618
    TNS-12618: TNS:versions are incompatible
    21-APR-2009 13:47:41 * status * 12618
    TNS-12618: TNS:versions are incompatible
    21-APR-2009 14:56:44 * status * 12618
    TNS-12618: TNS:versions are incompatible
    07-MAY-2009 04:12:21 * status * 12618
    TNS-12618: TNS:versions are incompatible
    07-MAY-2009 07:42:12 * status * 12618
    TNS-12618: TNS:versions are incompatible
    07-MAY-2009 07:42:24 * status * 12618

    Hi..
    refer to Doc ID:      297781.1 on metalink.
    Anand

  • JAVAMAP-Sax Parser ...............Linkage error when loading the class.

    Dear all,
    Do we have any extra things to execute the Java mapping using the Sax Parser?
    When I am executing the interface mapping ,I am getting the" Linkage error when loading the class" error.
    Kindly let me know your personnel maildId so that I can mail you the screen shots.
    Thanks,
    Srinivasa

    Dear sunil,
    Find the File.
    Source:
    <MTO_FTP_MAT_DETAILS>
    <MATDETAILS>
    <MAKTX>
    <MATNR>
    <WERKS>
    <LABST>
    <MEINS>
    <PERCNT>
    TARGET
    MTI_FTP_MAT_DETAILS
    <MATDETAILS>
    <MAKTX>
    <MATNR>
    <WERKS>
    <LABST>
    <MEINS>
    <PERCNT>
    Source:
    <MTO_FTP_MAT_DETAILS>
    <MATDETAILS>
    <MAKTX>
    <MATNR>
    <WERKS>
    <LABST>
    <MEINS>
    <PERCNT>
    TARGET
    MTI_FTP_MAT_DETAILS
    <MATDETAILS>
    <MAKTX>
    <MATNR>
    <WERKS>
    <LABST>
    <MEINS>
    <PERCNT>
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.DefaultHandler;
    import com.sap.aii.mapping.api.StreamTransformation;
    class Echo {
    public static OutputStream out;
    public class myEcho extends DefaultHandler implements StreamTransformation {
    private Map map;
    public void setParameter(Map param) {
    map = param;
    public void execute(InputStream in, OutputStream out) {
    DefaultHandler handler = this;
    SAXParserFactory factory = SAXParserFactory.newInstance();
    try {
    SAXParser saxParser = factory.newSAXParser();
    Echo.out = out;
    saxParser.parse(in, handler);
    } catch (Throwable t) {
    t.printStackTrace();
    public void startDocument() throws SAXException {
    try {
    Echo.out.write("<?xml version='1.0' encoding='UTF-8'?>".getBytes());
    } catch (IOException e) {
    e.notify();
    public void endDocument() throws SAXException {
    try {
    Echo.out.flush();
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    public void startElement(String namespaceURI, String sName, // simple name
    String qName, // qualified name
    Attributes attrs) throws SAXException {
    String eName = sName; // element name
    if ("".equals(eName))
    eName = qName; // not namespace-aware
    if ("ns0:MTO_SAP_MAT_DETAILS".equals(qName)) {
    try {
    Echo.out.write(("<MTI_FTP_MAT_DETAILS>").getBytes());
    } catch (Exception e) {
    e.printStackTrace();
    } else {
    try {
    Echo.out.write(("<" + qName + ">").getBytes());
    } catch (Exception e) {
    e.printStackTrace();
    public void endElement(String namespaceURI, String sName, // simple name
    String qName // qualified name
    ) throws SAXException {
    String eName = sName; // element name
    if ("".equals(eName))
    eName = qName; // not namespace-aware
    if ("ns0:MTO_SAP_MAT_DETAILS".equals(qName)) {
    try {
    Echo.out.write(("</MTI_FTP_MAT_DETAILS>").getBytes());
    } catch (Exception e) {
    e.printStackTrace();
    } else {
    try {
    Echo.out.write(("</" + qName + ">").getBytes());
    } catch (Exception e) {
    e.printStackTrace();
    public void characters(char buf[], int offset, int len)
    throws SAXException {
    String s = new String(buf, offset, len);
    try {
    Echo.out.write(s.getBytes());
    } catch (Exception e) {
    e.printStackTrace();

  • Errors in Map class

    Hello Everyone.
    Well I working on a program that uses Map class and I have some errors.
    They are listed as.
    on line 110
    Type safety: The method put(Object, Object) belongs to the raw type HashMap. References to
    generic type HashMap<K,V> should be parameterized
    line 115
    pe safety: The expression of type Collection needs unchecked conversion to conform to
    Collection<ComputerInvent>
    line 123
    Type mismatch: cannot convert from Object to Computer_listing
    Here is my code is far
    import java.io.*;
    import java.util.*;
    class Computer_listing {
         private String id;
         private String name;
         private Integer harddrive;
         private Integer memory;
         private float speed;
         public Computer_listing(String idx) {
              id = idx;
         }// close the computer_listing loop
          * Constructors.
         public Computer_listing(String cd, String cn, Integer hd, Integer me,
                   float sp) {
              id = cd;
              name = cn;
              harddrive = hd;
              memory = me;
              speed = sp;
         }// close public EmployeeClass
          * accessors make info available
         public String getId() {
              return id;
         public String getName() {
              return name;
         public Integer getHardrive() {
              return harddrive;
         public Integer getMemory() {
              return memory;
         public float getSpeed() {
              return speed;
          * Mutator Methods
         public void setId(String cd) {
              id = cd;
         public void setName(String cn) {
              name = cn;
         public void setHarddrive(Integer hd) {
              harddrive = hd;
         public void setMemory(Integer me) {
              memory = me;
         public void setSpeed(float sp) {
              speed = sp;
    }// close class
    public class ComputerInvent {
         public static void main(String[] args) {
              HashMap hs = new HashMap();
              Scanner kbd = new Scanner(System.in);
              kbd.useDelimiter("\n");
              while (true) {
                   String msg = null;
                   Computer_listing compdb = null;
                   System.out.println("Enter ComputerID - Stop to end");
                   msg = kbd.next();
                   if (msg.equalsIgnoreCase("STOP")) {
                        break;
                   } else {
                        compdb = new Computer_listing(msg);
                   System.out.println("Enter Computer Name");
                   compdb.setId(kbd.next());
                   System.out.println("Enter HardDrive");
                   compdb.setHarddrive(kbd.nextInt());
                   System.out.println("Enter Memory");
                   compdb.setMemory(kbd.nextInt());
                   System.out.println("Enter Speed");
                   compdb.setSpeed(kbd.nextFloat());
                   // add to data structure
                   hs.put(msg, hs); //line 110
              }// close while loop
              System.out.println("Done");
              int i = 1;
              Collection<ComputerInvent> values = hs.values();//line115
              for (ComputerInvent temp : values) {
                   System.out.println("Items are " + i + "" + temp.getClass());
                   i++;
              }// close for loop
              System.out.println("Enter ID to find");
              String findit = kbd.next();
              Computer_listing x = null;
              if ((x = hs.get(findit)) != null) { //line 123
                   System.out.println("Found it");
                   System.out.println("Name is " + x.getClass());
              } else {
                   System.out.println("Did not find it");
              }// close else
         }// close public static void
    }// close public class ComputerInventCan someone please help me in solving this.
    thanks
    sandyR

    The code should have thrown hundreds of errors i wonder how u managed with few
    import java.io.*;
    import java.util.*;
    class Computer_listing {
         private String id;
         private String name;
         private Integer harddrive;
         private Integer memory;
         private float speed;
         public Computer_listing(String idx) {
                  this.id = idx;
         public Computer_listing(String cd, String cn, Integer hd, Integer me,
                   float sp) {
              this.id = cd;
              this.name = cn;
              this.harddrive = hd;
              this.memory = me;
              this.speed = sp;
         public String getId() {
              return this.id;
         public String getName() {
              return this.name;
         public Integer getHardrive() {
              return this.harddrive;
         public Integer getMemory() {
              return this.memory;
         public float getSpeed() {
              return this.speed;
         public void setId(String cd) {
              this.id = cd;
         public void setName(String cn) {
                 this.name = cn;
         public void setHarddrive(Integer hd) {
              this.harddrive = hd;
         public void setMemory(Integer me) {
              this.memory = me;
         public void setSpeed(float sp) {
              this.speed = sp;
    public class ComputerInvent{
      public static void main(String s[]){
             HashMap<String,Computer_listing> hs = new HashMap<String,Computer_listing>();
             Scanner kbd = new Scanner(System.in);
             kbd.useDelimiter("\n");
               while(true){ 
                   String msg = null;
                   Computer_listing compdb = null;
                    System.out.println("Enter <ComputerID> - Type <Stop> to end");
                    msg = kbd.next();
                    if (msg.equalsIgnoreCase("STOP"))
                break;
                     else
                compdb = new Computer_listing(msg);
                    System.out.println("Enter Computer Name:");
              compdb.setId(kbd.next());
              System.out.println("Enter HardDrive:");
              compdb.setHarddrive(kbd.nextInt());
              System.out.println("Enter Memory:");
              compdb.setMemory(kbd.nextInt());
              System.out.println("Enter Clock Speed:");
              compdb.setSpeed(kbd.nextFloat());                
                    hs.put(msg,compdb);
              System.out.println("<Done>");
              Collection<Computer_listing> values = hs.values();
              int i = 0;
              for (Computer_listing temp : values) {
                   System.out.println("Name["+ i + "]:" + temp.getName());
                   i++;
              System.out.println("Enter ID to find");
           String findit = kbd.next();
              Computer_listing x = null;
                 if ((x = hs.get(findit)) != null) {
                   System.out.println("Found it");
                   System.out.println("Name is " + x.getName());
              } else {
                   System.out.println("Did not find it");
    }Hope that works :)
    Anyways i'd advice you learn basics of using java.util Classes first and then go about using generics if you are a starter.
    REGARDS,
    RaHuL

  • Incompatible class versions :linkage error- JAVADOM

    HI,
       We have done Mapping using java DOm,created ZIp file & successfully imported in IR.  
    My NWDS is using java 1.4.2_15
    we are using PI70/Sp09/Java Version 1.5.0_14
    During Execution in IE we  are getting this error.
    error -
    <SAP:Code area="MAPPING">LINKAGE_ERROR</SAP:Code>
    <SAP:Stack>Incompatible class versions (linkage error)</SAP:Stack>
    <Trace level="1" type="T">Interface Mapping http://XI/Mapping/JavaDom/DOMMapping4 IM_ORDER1_ORDER</Trace>
      <Trace level="1" type="T">LinkageError at JavaMapping.load(): Could not load class: CSJAVA/com/yash/xi/DOMMapping4</Trace>
      <Trace level="1" type="T">java.lang.NoClassDefFoundError: JAVA/com/xi/DOMMapping4 (wrong name: com//xi/DOMMapping4) at java.lang.ClassLoader.defineClass0
    Regards
    shekar chandra

    Hi,
    Check the links they may help u out.
    Event or DOM parsing?
    http://discuss.joelonsoftware.com/default.asp?design.4.156750.12
    XML Parsers: DOM and SAX Put to the Test
    http://www.devx.com/xml/Article/16922/1954?pf=true
    Regards,
    Phani

  • Linkage error occured when loading the class:Java Mapping

    I AM GETTING THE ABOVE ERROR IN SUB WHEN TESTING THE MAPPING .
    Source:
    <MTO_FTP_MAT_DETAILS>
    <MATDETAILS>
    <MAKTX>
    <MATNR>
    <WERKS>
    <LABST>
    <MEINS>
    <PERCNT>
    TARGET
    MTI_FTP_MAT_DETAILS
    <MATDETAILS>
    <MAKTX>
    <MATNR>
    <WERKS>
    <LABST>
    <MEINS>
    <PERCNT>
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.DefaultHandler;
    import com.sap.aii.mapping.api.StreamTransformation;
    class Echo {
         public static OutputStream out;
    public class myEcho extends DefaultHandler implements StreamTransformation {
         private Map map;
         public void setParameter(Map param) {
              map = param;
         public void execute(InputStream in, OutputStream out) {
              DefaultHandler handler = this;
              SAXParserFactory factory = SAXParserFactory.newInstance();
              try {
                   SAXParser saxParser = factory.newSAXParser();
                   Echo.out = out;
                   saxParser.parse(in, handler);
              } catch (Throwable t) {
                   t.printStackTrace();
         public void startDocument() throws SAXException {
              try {
                   Echo.out.write("<?xml version='1.0' encoding='UTF-8'?>".getBytes());
              } catch (IOException e) {
                   e.notify();
         public void endDocument() throws SAXException {
              try {
                   Echo.out.flush();
              } catch (IOException e) {
                   throw new SAXException("I/O error", e);
         public void startElement(String namespaceURI, String sName, // simple name
         String qName, // qualified name
         Attributes attrs) throws SAXException {
              String eName = sName; // element name
              if ("".equals(eName))
                   eName = qName; // not namespace-aware
              if ("ns0:MTO_SAP_MAT_DETAILS".equals(qName)) {
                   try {
                        Echo.out.write(("<MTI_FTP_MAT_DETAILS>").getBytes());
                   } catch (Exception e) {
                        e.printStackTrace();
              } else {
                   try {
                        Echo.out.write(("<" + qName + ">").getBytes());
                   } catch (Exception e) {
                        e.printStackTrace();
         public void endElement(String namespaceURI, String sName, // simple name
         String qName // qualified name
         ) throws SAXException {
              String eName = sName; // element name
              if ("".equals(eName))
                   eName = qName; // not namespace-aware
              if ("ns0:MTO_SAP_MAT_DETAILS".equals(qName)) {
                   try {
                        Echo.out.write(("</MTI_FTP_MAT_DETAILS>").getBytes());
                   } catch (Exception e) {
                        e.printStackTrace();
              } else {
                   try {
                        Echo.out.write(("</" + qName + ">").getBytes());
                   } catch (Exception e) {
                        e.printStackTrace();
         public void characters(char buf[], int offset, int len)
              throws SAXException {
              String s = new String(buf, offset, len);
              try {
                   Echo.out.write(s.getBytes());
              } catch (Exception e) {
                   e.printStackTrace();

    Hi,
    When you make the jar to import to XI you must verify the two classes are generated at the same time. Later you can verify in Inteface Mapping that you are using the myEcho class to do the java mapping.
    Plesae verify the java version are the same in you own machine and the xi machine.
    Regards.

  • LINKAGE ERROR in Java Mapping

    Hi Friends,
    I am getting LINKAGE ERROR when executing JAVA mapping as its not able to reference AbstractTransform class provided by SAP PI API.
    This problem occurs in particular environment for this particular mapping. For other environments this is working fine.
    I assume it has something to do with Java Library reference which is mis-configured during transport. Can anyone let me know how and where the library path is configured for Imported Achieves in SAP PI 7.1.
    We are using java 1.5 for building and creating java achieves.
    Many thanks,
    SK

    Hi Sumant,
      This error occurs when the jdk version of XI server and the library version you used to develop the mapping are incompatible. Make sure you use the same version as of the server
    have a look in SAP Note 755302
    Regds,
    Pinangshuk.

  • Java mapping - Linkage Error

    Hello,
    We are on PI 7.0 SP10.
    Currently we are migrating the XI servers from Solaris to AIX IBM.
    When I try to run Java mapping, I get following error:
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">LINKAGE_ERROR</SAP:Code>
      <SAP:P1>sapmarkets/marketconnect/xcbl/r3/OrderMapping</SAP:P1>
      <SAP:P2>http://xi/SRM/ReceivePurchaseOrders</SAP:P2>
      <SAP:P3>22150771-0ee7-11dc-c87a-fe330a306909</SAP:P3>
      <SAP:P4>-1</SAP:P4>
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Incompatible class versions (linkage error)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Please help.
    Thanks in advance.
    Beena.
    Edited by: Beena Thekdi on Jan 22, 2008 8:05 PM

    Thanks Raj.
    But this note says
    >> The error is corrected with Support Package 5 for Support Package 03 for the XI TOOLS 3.0 software component.
    and I am already on PI 7.0.
    Please tell me still I need to apply this?
    Thanks,
    Beena.

  • How to avoid Linkage Error in JAVA Mapping

    Dear Experts,
    I am trying to test the JAVA mapping compiled in NWDS but receiving the error
    "LinkageError at JavaMapping.load(): Could not load class".
    java.lang.NoClassDefFoundError: JSONXMLProject/bin/com/sap/json/ConvJson2Xml (wrong name: com/sap/json/ConvJson2Xml)
    at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:735)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:716) at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at com.sap.aii.ib.server.mapping.execution.MappingLoader.findClass(MappingLoader.java:195)
    Following are the details:
    SAP PO 7.4
    SP Stack Number 05
    JDK Version jdk16
    NWDS
    SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.3 SP10 PAT0000
    1.Created the Project , Package and then class (Included the logic)
    2. Included 1 JSON Jar file into my project and the Added to build path.
    3.Exported the project as Archive File and saved in desktop
    4.Imported into SAP PO system as Imported Archive
    5.Could not observe the JSON jar file which i used as referenced JAR in NWDS
    6.Tested in OM after referencing the JAVA class and found the above error.
    I have JDK 5, 6 and 7 present in my local desktop and I am trying to export the compiled code using both JAVA SE 1.6 and 1.5 in NWDS seperatly after going several discussions.
    Can any one hep me with the screenshots and tell me how to include all the reference jar files in exported project..
    Regards..

    Dear Anand,
    I did exactly as you shared. As the JSON jar has number of classes, then in OM all the Classes had to be assigned. Then the linkage error went.
    But in execution , it shows a new error that all the classes of the JSON jar has to be implemented with interface StremTransformation or AbstractTransformation.
    I assume in the Operation Mapping I will use only 1 class as JAVA Class. Anyway I am attaching the document with navigation.
    Do we have any other alternative??
    Please rename the extension of the document by remove .txt
    Regards

  • Linkage error occurred when loading class MyClass

    Hi
    I have written one simple class name MyClass and i have created jar file and i imported into import archive... but in interface mapping while i am testing i am getting the <b>"<b>Linkage error occurred when loading class MyClass"</b></b> error.... why i am getting this error
    Thanks & Regards
    Ravi Shankar B

    Here it goes:
    Symptom
    The LINKAGE_ERROR error occurs during the mapping.
    The trace contains "java.lang.NoClassDefFoundError: Illegal name":
    Other terms
    XI 30, Mapping, Linkage Error
    Reason and Prerequisites
    As of the jdk 1.4.2_05 from Sun, this program error occurs during the mapping in the runtime or during testing in the Repository. This error may also occur in conjunction with jdks of other vendors or other versions.
    Solution
    The error is corrected with Support Package 5 for Support Package 03 for the XI TOOLS 3.0 software component.
    Import the corresponding archive SAPXITOOL03P_5.SCA for SAP Exchange Infrastructure XI 3.0 as described in the Netweaver 04 Support Package Stac Guide.
    You will find the archive and the guide in the SAP Service Marketplace under the alias "SP stacks -> SAP NetWeaver -> SAP NetWeaver 04".
    Regards
    Vijaya

  • Linkage error while doing java mapping

    Hi,
    I Have written a java mapping but when i use it in xi.It is showing an error as linkage error
    LinkageError at JavaMapping.load(): Could not load class: com/satyam/nestle/JavaMap
    Can anyone explain what does this mean and how to overcome it.
    Thanks in advance,
    Bhargav

    Did you try testing the java mapping seperately....that it does not have any errors??? Also check the cahce update. Sometimes it happens that XI is not able to load the class file from the cache. Perform a CPA cache refresh (delta). This should solve the problem
    Reward if helpful.

  • Problems with WL 9.2, Axis2 -- Linkage Error on XMLStreamReader class

    When executing a test client against a web-service on our server we are getting this error back from our server.
    We have the weblogic.xml fix in place to load the WEB-INF libraries first.
    Any Ideas?
    org.apache.axis2.AxisFault: java.lang.LinkageError: loader constraints violated when linking javax/xml/stream/XMLStreamReader class
    at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
    at com.xxx.xxx.webservices.xxxServiceStub.retrievePaymentInfo(EPaymentServiceStub.java:183)
    at com.xxx.xxx.TestClient.main(TestClient.java:78)

    We found a work around....
    you can deploy your application as an ear and at the ear level include an a weblogic-application.xml file that contains this information.
    <?xml version="1.0"?>
    <weblogic-application xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http:
    //www.w3.org/2001/XMLSchema-instance">
    <prefer-application-packages>
    <package-name>org.apache.*</package-name>
    </prefer-application-packages>
    </weblogic-application>

Maybe you are looking for

  • SD and Delivery objects Status checking

    HI Experts, In FI we have a transaction called FB99 to check whether the FI document is eligible for Archiving or not. Similarly , Do we have any transactions to check whether the given Sales , Invoice and Delivery documents are eligible for Archivin

  • Videos no longer play in Full Screen-why?

    My music videos and movies no longer play in full screen. I don't know what I did wrong, but I'll tell you what I did right! They've been playing correctly, and today I went to play a new music video i downloaded from iTunes and I noticed it was a sm

  • My keyboard only shows the top half of the letters

    My keyboard only shows the top half when I go into the app app and I cannot put in my apple id or password because the keyboard is not showing

  • Error in posting period

    Hi all, we are facing an error while created gr in migo.error is posting in this company is closed. we have checked and closed period for 01/2010 in mmpv.what might be the issue. regards krishna

  • Export to file fails

    Hi, We are not able to export to a file from any form File---> Export 12.0.6 Please help