cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug java mapping?

Former Member
0 Kudos

Hi everybody

I followed the very usefull block from Thorsten Nordholm Søbirk to perform a Java Mapping:

/people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs

I created the class files under Eclipse 3.2 and everything works great. Now I want to learn more about the provided coding of the blog and I would like to debug it. Is there a possiblity to debug the java mapping in eclipse? Do I have to implement the XI pluging to eclipse? I am not that deep in java programming yet, so a "cook book" would be great.

I did not find any weblogs on it, so let me know if something exsists.

Thanks Oliver

Message was edited by: Oliver Bluhm

Accepted Solutions (1)

Accepted Solutions (1)

agasthuri_doss
Active Contributor
0 Kudos

Hi,

I am not much aware of Eclipse,

With the help of NDS ( Netweaver Development Studio ) you can learn and test a lot and it is very user friendly.

Regards

Agasthuri Doss

Former Member
0 Kudos

Hi Agasthuri

That's nice to hear. Do you have some kind of "how to", examples or best practice? NWDS is very related to Eclipse.

Thanks Oliver

Former Member
0 Kudos

Hi

1) NWDS for NetWeaver 2004 and 04s are based on Eclipse 2.x. Eclipse has been developed by IBM and was released as open source in 2001 and got a lot of attention in the developer community. This is one of the main reasons SAP chosen Eclipse to be its front end IDE

2) Debug XI Applications - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3dfac358-0d01-0010-5598-d49...

Hope this helps both queries..

Regards

Senthil

Former Member
0 Kudos

You may also want to see this -

/docs/DOC-8272#idag0n3d [original link is broken]

Regards

Senthil

Former Member
0 Kudos

Hi Senthil

First, thanks to all this information. Very helpfull, but unfortunately does it not fit my question. My question is more, do I have the possiblility to debug through the java coding of my mapping program. Do I have the chance to enter anyhow an incomming xml into the inputstream under eclipse or NWDS and than debugging through the java coding to see how the nodes will be filled and so on.

Former Member
0 Kudos

Oliver,

You must use the trace feature to see how it builds..

Navigate to the Test tab page. On the Test tab page, the left side displays the Source XML Instance and the right side displays the result of the transformation, that is, the Target XML Instance..

tracefile.txt is in <J2EEdir>/services/servlet_jsp/work/jspTemp/ MessagingSystem/root/admin/

Hope you find the way out..

Rgds,

Senthil

Former Member
0 Kudos

Hi ,

You can debug Java code in XI mapping by using the trace api to writing all the debug statements needed to a trace file.

sample

=======

MappingTrace debugTrace = container.getTrace();

debugTrace.addWarning("rfcXml STRING is :::"+rfcXml);

You can proceed your debugging like this .

Nanda

Former Member
0 Kudos

Thanks to all this answerers. Unfortunately not be possible to debug it like in ABAP line by line, but the trace option will really help.

Regards Oliver

stefan_grube
Active Contributor
0 Kudos

Hi Oliver,

you can easily debug the Java Mapping by adding a main method to the class.

Check this:

/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio

Regards

Stefan

Answers (0)