cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping error - java uses unchecked or unsafe operations

former_member234749
Participant
0 Kudos

Hi

Working on split mapping. The source and target structures are same and mapped one one except the Trasaction to POSLog as below.

I am getting the below error when checking and activating the mapping. The structure is imported as external definition as it is huge and it has almost more than 1000 fields. I used to get the heap space error when I tried to save the mapping but now able to save it after increasing the heap space size in exchange profiles.

is the below error caused due to huge structure..Can any please give me idea to resolve this.

Source text of object Message Mapping: MM_Split_Poslog | urn:bose.com:universal:adapter-rdgpos has syntax errors:

com/sap/xi/tf/_MM_Split_Poslog_.java[18] too many constants public class /*!_$ClNRep_*/_MM_Split_Poslog_ extends AMappingProgram{ ^ Note: /usr/sap/DXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map0a1b37ced8a411e48ec3000000539256/source/com/sap/xi/tf/_MM_Split_Poslog_.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Harish
Active Contributor
0 Kudos

Hi,

AFAIK - The heap size in the exchange profile should be relevant to the system memory. The error might cause because of heap size is increase beyond the available memory.

Please check with the basis team what is the maximum heap size for the system.

regards,

Harish

former_member234749
Participant
0 Kudos

Hi Harish,

Thank you for the response!

The max heap size of the system is 2GB and also I increased the heap size below 2GB and tried to active but still getting the same error.

Thanks

former_member182412
Active Contributor
0 Kudos

Hi SAP PI,

Save the repository JNLP file and change max-heap-size parameter which is shown in below WIKI.

<j2se version="1.4+" initial-heap-size="32m" max-heap-size="1024m" />


Check question 19 in below WIKI:

QA for PI - One stop for all (Part - 1) - Netweaver Technology - SCN Wiki


1580914 - Java heap space OutOfMemoryError in the PI Repository


Regards,

Praveen.

former_member234749
Participant
0 Kudos

Hi Praveen

Thank you!

I did already as you mentioned. I am not getting heap space error getting the error as below when checking the mapping.

Source text of object Message Mapping: MM_Split_Poslog | urn:bose.com:universal:adapter-rdgpos has syntax errors:

com/sap/xi/tf/_MM_Split_Poslog_.java[18] too many constants public class /*!_$ClNRep_*/_MM_Split_Poslog_ extends AMappingProgram{ ^ Note: /usr/sap/DXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map0a1b37ced8a411e48ec3000000539256/source/com/sap/xi/tf/_MM_Split_Poslog_.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error

Thanks

fabian_mohr
Discoverer
0 Kudos

Hi Govinda,

I get the same error in Mapping.

Did you solve the Problem ?

regards,

Fabian