Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] xerces version problems with XML1_0ParserConfiguration

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <whoschek AT lbl.gov>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] xerces version problems with XML1_0ParserConfiguration
  • Date: Mon, 02 Feb 2004 14:17:03 -0800

In d23, nu.xom.xerces.XML1_0ParserConfiguration throws exceptions (see below) on older xerces versions such as xerces-2.3.0 because certain methods or fields are missing there. It works fine with xerces-2.6.1.

One would hope that people have that latest xerces version, but in servlet containers and other deployed middleware one cannot assume that, because often the xerces version gets automatically "inherited" from the whatever the container ships with. Since these old xerces versions don't implement xml 1.1 anyway, I think xom should silently ignore the exception with try-catch and just move on undisturbed.

java.lang.NoSuchMethodError: nu.xom.xerces.XML1_0ParserConfiguration.resetCommon()V

nu.xom.xerces.XML1_0ParserConfiguration.parse(XML1_0ParserConfiguration.java:73)
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
nu.xom.Builder.build(Builder.java:705)





Archive powered by MHonArc 2.6.24.

Top of Page