[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-j-user
Subject: Re: Odd occasional exception with parsing
From: Michael Glavassevich <mrglavas () ca ! ibm ! com>
Date: 2006-02-12 21:47:04
Message-ID: OF4885DA03.55C3794B-ON85257113.006D5CA4-85257113.0077AAB6 () ca ! ibm ! com
[Download message RAW]
Hi Dave,
ObjectFactory uses the current thread's context ClassLoader to load
classes. Seems that the ClassLoader used in this scenario has a bug and is
returning null instead of a Class object or throwing a
ClassNotFoundException if it doesn't find the class.
Thanks.
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
"Dave Brosius" <dbrosius@mebigfatguy.com> wrote on 01/27/2006 08:36:46 PM:
> I'm getting this odd exception showing up in my web apps log files
> occasionally. Now there are other places in the code were we use the
> parser, but don't get this error. I don't believe this code is doing
> anything special regarding parsing that should differentiate it.
> xml-apis/xercesImpl.jar are in my war's lib directory.
>
> xml-apis.jar's manifest says 1.3.02
> xercesImpl.jar's manifest says 2.7.1
>
> This occurs on WebSphere 5.1.1
>
> I'm assuming this is some sort of jar/classpath problem, although i
don't
> see any. Any guesses on the cause of this?
>
> [1/26/06 12:20:12:250 EST] 14effad4 SystemErr R
> org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider
> org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be
> instantiated: java.lang.NullPointerException
> [1/26/06 12:20:12:266 EST] 14effad4 SystemErr R at
> org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)
> [1/26/06 12:20:12:266 EST] 14effad4 SystemErr R at
> org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
> [1/26/06 12:20:12:266 EST] 14effad4 SystemErr R at
> org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
> [1/26/06 12:20:12:266 EST] 14effad4 SystemErr R at
> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
> [1/26/06 12:20:12:266 EST] 14effad4 SystemErr R at
> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
> [1/26/06 12:20:12:266 EST] 14effad4 SystemErr R at
> org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
> [1/26/06 12:20:12:266 EST] 14effad4 SystemErr R at
>
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
> Source)
> [1/26/06 12:20:12:266 EST] 14effad4 SystemErr R at
> com.acme.infr.admin.DomUtil.parseDomContent(DomUtil.java:55)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure | About | News | Donate | Add a list | Sponsors: 10East, KoreLogic, Terra-International, Chakpak.com