Skip to content Skip to sidebar Skip to footer

Xerces Behaving Differently On Sun Jre V1.5 And Ibm J9 V1.5

I am trying to parse some HTML using NekoHTML. The problem is that when the below code snippet is executed on the SUN JDK 1.5.0_01 it works fine (this is when i am using eclipse w

Solution 1:

I have 2 ideas.

  1. I have just verified that xerces is a part of the JRE installation, so I believe it arrives to the classpath of your application from there. Probably SUN and IBM bring you different versions of xerces. So, as a first approach check it and probably try to replace what you have under IBM to the SUN's version. If it helps you have 2 options: continue running IBM java with xerces from SUN or continue to investigate what's wrong with xerces from IBM.
  2. Are there other differences between your dev and production environments? Are these the same operating systems? Is it a chance that you are using (for example) windows for development and unix for production but your xml is written on Windows with \r\n as a new line? Or even more: if your XML contains unicode characters and written in windows it can contain special (invisible) prefix that indicates that this is unicode. This prefix may cause parser to fail.

Post a Comment for "Xerces Behaving Differently On Sun Jre V1.5 And Ibm J9 V1.5"