Using JMeter test client to load-test our application,
XSDElementTraverser.traverseLocal() throws a NullPointerException.  The test
I'm running simply creates multiple (10) threads sending exactly the same
xml message to our application.  Some threads work ok, others throw an
exception - see log below. This leads me to believe that this method is not
threadsafe.

I'm sure someone else must have come across this before, but I cannot check
the usergroup archives at the moment as they are down for temporary
upgrades.

All comments gratefully received.

Martin


Nested Final: java.lang.NullPointerException

2003-05-01 11:21:02,015 [ExecuteThread: '7' for queue: 'default'] DEBUG
com.rdf.nr.ctp.infrastructure.protocol.generic.r
esponsestatus.responseexception.logging - Http403SystemException Exception
caused by: java.lang.NullPointerException
        at
org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseLocal(Unkno
wn Source)
        at
org.apache.xerces.impl.xs.traversers.XSDHandler.traverseLocalElements(Unknow
n Source)
        at
org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
        at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown
Source)
        at
org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown
Source)
        at
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
Source)
        at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRoot
ElementHook(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:542)
        at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:631)
        at
com.rdf.infrastructure.xmlhandling.binding.castor.CastorXmlHandler.bind(Cast
orXmlHandler.java:74)
        at
com.rdf.nr.ctp.infrastructure.xmlhandling.ctpbinding.CtpXmlHandler.bindAipRe
quest(CtpXmlHandler.java:234)
        at
com.rdf.nr.ctp.infrastructure.xmlhandling.ctpbinding.CtpXmlHandler.bind(CtpX
mlHandler.java:121)
        at
com.rdf.nr.ctp.app.processctprequest.ProcessCtpRequestCommand.doIt(ProcessCt
pRequestCommand.java:281)
        at
com.rdf.infrastructure.command.ejb.ApplicationCommandInvokerBean.invokeTrans
actional(ApplicationCommandInvoke
rBean.java:101)
        at
com.rdf.infrastructure.command.ejb.ApplicationCommandInvokerBean_br6vzz_EOIm
pl.invokeTransactional(Applicatio
nCommandInvokerBean_br6vzz_EOImpl.java:125)
        at
com.rdf.infrastructure.command.DefaultCommandInvoker.invoke(DefaultCommandIn
voker.java:124)
        at
com.rdf.nr.ctp.application.processctprequest.ProcessCtpRequestServlet.doPost
(ProcessCtpRequestServlet.java:20
4)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:262)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:198)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2637)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2359)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Martin Wells
RDF Consulting Ltd
15 Queen Square
Brighton
BN13FD
01273 200132

This transmission is confidential and intended solely for the person or
organisation to whom it is addressed.  It may contain privileged and
confidential information.  If you are not the intended recipient, you should
not copy, distribute or take any action in reliance on it. If you have
received this transmission in error, please notify the sender immediately.
Any opinions or advice contained in this e-mail are those of the individual
sender except where they are stated to be the views of RDF Group or EMS plc.
All messages passing through this gateway are virus scanned.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to