It's not a secret anymore!*
The moose likes I/O and Streams and the fly likes Null SAXParser while creating getXmlReader() in Digeter class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Null SAXParser while creating getXmlReader() in Digeter class" Watch "Null SAXParser while creating getXmlReader() in Digeter class" New topic
Author

Null SAXParser while creating getXmlReader() in Digeter class

Viswanath ar
Greenhorn

Joined: Feb 17, 2010
Posts: 1
Hi All,

I am trying to read an xml file and it gives me the following error :

java.lang.NullPointerException
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)
at org.apache.commons.digester.Digester.parse(Digester.java:1887)
at com.bof.BusinessObjectFactory.getInstance(BusinessObjectFactory.java:57)
at com.servlets.MyProcessingServlet.doPost(MyProcessingServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3504)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

When I checked the Digester API, I understand that getParser() is returning null. Looks like it's unable to find SAXParser. I have xerces.jar in the classpath, but have no idea why it's not finding it.
Appreciate your valuable inputs in Advance...
 
 
subject: Null SAXParser while creating getXmlReader() in Digeter class
 
Similar Threads
Does anyone know what this error means?
com.oroad.stxx.transform.TransformerException: Unable to retrieve template null
SocketTimeoutException weblogic 9.2
Finding the java file of the compiled jsp file in Weblogic 9.2
java.net.SocketException: Broken pipe