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: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] "Dave Brosius" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
