cancel
Showing results for 
Search instead for 
Did you mean: 

Java Mapping Error - Unable to instantiate the Java class

Former Member
0 Kudos

Hi,

I am trying out a Java Mapping scenario.

The code worked fine in eclipse.i could get the desired output.

but when i tried it out in XI ....i got the following error in moni:

*Unable to instantiate the Java class*

<?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="">

<SAP:Category>Application</SAP:Category>

<SAP:Code area="MAPPING">CANNOT_INSTANCIATE_CLASS</SAP:Code>

<SAP:P1>JavaMapping</SAP:P1>

<SAP:P2>http://www.sdsdsd.com/XI/Sales/T~</SAP:P2>

<SAP:P3>3bd13b30-6300-11dc-b9f1-f0050aa5c91a</SAP:P3>

<SAP:P4>-1</SAP:P4>

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Unable to instantiate the Java class JavaMapping (http://www.sdsdsd.com/XI/Sales/T~, 3bd13b30-6300-11dc-b9f1-f0050aa5c91a, -1)</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

Please help me out with this error.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

there was a difference between the java version of eclipse n tht of XI

Former Member
0 Kudos

Hi Anu,

Currently I am also facing the same Unable to instantiate the Java class same java class is working fine in eclipse .

Could you please confirm Is this because of version mismatch that in Eclipse JAVA and SAP JAVA ?

Thanks in Advance.

Best,

Srinivas

Former Member
0 Kudos

Hi,

Check if your system contains this jar aii_map_api.jar. This jar file is necessary for Java Mapping.

- Satish

Former Member
0 Kudos

I have used the dom4j parser.

I didn't copy it into the XI server.

I zipped it along with the class file and imported it into repository.

i have checked the trace and it has the error

Class not found: org.dom4j.io.SAXReader

Should i load the dom4j jar somewhere else?

Former Member
0 Kudos

Hi

Please confirm about import the IAIK jar ((iaik_jce.jar) into repository, in "Imported Archives" and try again.

Thanks

Swarup

Former Member
0 Kudos

Please go through below link to

How to Use DOM4J in XI

/people/amjad-ali.khoja/blog/2006/02/07/using-dom4j-in-xi--a-more-sophisticated-option-for-xml-processing-than-sap-xml-toolkit

This will help to improt DOM4J in XI at proper place.

Thanks

Swarup