Unable to parse properly for a large number of requests

Hi all

in weblogic 9 .2 when a request comes which parses and reads a xml file then there is no problem. But at a time when a large number of request comes to read the xml file then it is behaving differently .One node it is unable to locate.The meaning of error is actually inappropriate

java.lang.NullPointerException

at com.sun.org.apache.xerces.internal.dom.ParentNode.nodeListItem(ParentNode.java:814)

at com.sun.org.apache.xerces.internal.dom.ParentNode.item(ParentNode.java:828)

at com.test.ObjectPersistanceXMLParser.getData(ObjectPersistanceXMLParser.java:46)

at com.test.testservlet.doPost(testservlet.java:634)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)

at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)

at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)

at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)

at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

But there is a node and is found while processing in a java program for the same xml file. But this occurs when a large number of request comes.

Please suggest.

[2069 byte] By [suryanarayana] at [2007-11-27 6:44:18]
# 1
ObjectPersistanceXMLParser.java is my class . So please dont get confused , null pointer it showing is appropriate actuaaly as this happens at a time when a lage number of request comes. and not for single or few requests
suryanarayana at 2007-7-12 18:15:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
My guess is, you are doing something that is not thread-safe. These kinds of errors tend to show up when a lot of threads start running at the same time.
DrClapa at 2007-7-12 18:15:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...