This discussion is archived
0 Replies Latest reply: Jan 19, 2013 11:09 PM by 985945 RSS

xeres- Unexpected runtime&NullPointer exceptions under load-multithread app

985945 Newbie
Currently Being Moderated
Issue in production, throws nullpointer exception on simple load - URGENT, need to resolve on priority

XML Messages posted to IBM MQ Queue wnith MQ API -

Exception occurs when simple load of messages (approx. 5000 messages of 4 - 5KB) posted

Unexpected runtime exception; nested exception is: java.lang.NullPointerException

Please find complete stacktrace below -

Unexpected runtime exception; nested exception is: t
java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown Source)
at org.apache.xerces.dom.ParentNode.insertBefore(Unknown Source)
at org.apache.xerces.dom.NodeImpl.appendChild(Unknown Source)

Have put synchronization in code wherever required assuming DOM (xerces) API is not thread safe. Still throws NPE..

** Pls note it happens under load only > 4K
** Using xercesImpl.jar

Need resolution on top priority, issue in production.
Any help is appreciated.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points