cancel
Showing results for 
Search instead for 
Did you mean: 

XI java mapping using SAX

Former Member
0 Kudos

Hi,

im using java mapping for complex IDOC structure. If I run program localy, it works great, but when XI runs mapping, I have problems with xml file, some elements are not there ?! I don't know why it happens.....i said that i'm using complex logic, and therefore I'm using complex IF statments to produce segment in IDOC. I have noticed that there is a problem, because when I switch off IF, everything is fine???? any idea??

thx mario

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Do you have nested 'if' statements? Is it possible you could be experiencing a "dangling else" problem?

http://www.dai-arc.polito.it/dai-arc/manual/tools/jcat/main/node101.html

Former Member
0 Kudos

No, I thoght also that could be a problem....but when I run it localy, works perfect!!!

Former Member
0 Kudos

How does your local version of Java compare to that on the XI server?

Former Member
0 Kudos

I solved it, problem was in String.contains() method, from this point in code,

nothing in file was written. So I think you are right, server is 1.4 EE, local 1.6 SE.

You know, I'm not Java expert....sorry. Anyway, I'll reward points. Thx mario

Answers (0)