cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.OutOfMemoryError

Former Member
0 Kudos

Hello, I have created a mapping of a XML document to an IDOC and the procedure to do that was:

First I use a jco to check if a vendor exist, later I map the incoming xml message to an Idoc. To create the Idoc I have filled all the SEGMENT with 1 and an empty value for the others fields that does not have a corresponding value from my XML input file, I did in that way because the system could not compile the mapping if a field in the target XML (IDOC) was not mapped. I can compile the mapping in the design tool but when I choose to test my mapping nothing happens??

In runtime the mapping give me an out of memory error

"<SAP:Code p1="Error during mapping" p2="--- Creating mapping sequence with 2 steps. --- Creating Java mapping com.sap.xi.tf._test01_ --- Creating mapping sequence with 2 steps. --- Creating Java mapping com.sap.xi.tf._midasSapCreateVendors2_ --- Using MappingResolver with context URL /sapmnt/XD1/global/xi/mapping/http%3A%2F%2FwolterKluwer%2Ecom%2EjdbcVendors/feed9910cb3c11d8b883f3f7143c3524/ --- Loaded class com.sap.xi.tf._test01_ --- [INFO] Start asking SAP for the existence in SAP of the Midas Vendor: ERNESTO1 --- [INFO] Starting connection with the target SAP system Host,Client,System: <host>,<client>,<system> --- [INFO] Connection established with the target SAP system Host,Client,System: <host>,<client>,<system> --- [INFO] Get metadata from the target system FM BAPI_VENDOR_FIND --- [INFO] Metadata for FM BAPI_VENDOR_FIND retrieved --- [INFO] Starting call FM BAPI_VENDOR_FIND --- [INFO] Call to FM BAPI_VENDOR_FIND OK --- [INFO] Start analysing results from BAPI_VENDOR_FIND --- [INFO] Midas vendor: ERNESTO1 Correspond to SAP Vendor: 0000100025 --- [INFO] BAPI_VENDOR_FIND analysed --- --- Java mapping com.sap.xi.tf._test01_ completed. --- Using MappingResolver with context URL /sapmnt/XD1/global/xi/mapping/http%3A%2F%2FwolterKluwer%2Ecom%2EjdbcVendors/feed9910cb3c11d8b883f3f7143c3524/ --- Loaded class com.sap.xi.tf._midasSapCreateVendors2_ --- java.lang.OutOfMemoryError --- An error occured during the execution of the Java mapping com.sap.xi.tf._midasSapCreateVendors2_ . ---" p3="" p4="">MAPPING.GENERIC</SAP:Code>

<SAP:Text language="EN">Error during mapping</SAP:Text>"

What I can see from the error is that the document is to big for XI, do I need to change a parameter somewhere in XI. Does anybody know what maybe my problem.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi!

Make sure that you do not have the parameter -Xnoclassgc in j2ee/cluster/server/cmdline.properties (see SAP Note 718747) which prevents garbage collection. When we removed the parameter we did not have any out of memory situations while executing mappings any more.

Regards, Tanja

Former Member
0 Kudos

Hi there,

There is a very good tuning document on the SDN. Just type "XI Tuning" in the search field and it should be the first document that appears. Try some of these settings, maybe it will help.

Good luck.

Christiaan