Java XML SAXParser throws NullPointerException on method .parse(InputSource,XMLCommandsHandler) -


I am a very malicious NullPointerException while parsing the incoming stream from the socket with JKK javax.xml.parsers.SAXParser get.

My input source is a RecordingInputStream which I created by expanding the filter intestine so that in a log file all the data that I have been able to record parsing before getting it on the socket, goes down. In this way I can now see that when NullPointerException is thrown exclusively, the following tag appears in the stream:

  & lt; Order act = "d" order_id = "16508679" scn = "147185767940" Reason = "DELETE_ORDR" who_id = "90296" />  

Otherwise the parsing of the stream is working properly. All other XML tags that come often, are successfully parsed (no exception is thrown), and the respective XML commands handler methods are implemented correctly.

Please, no clue why this NullPointerException appears? Otherwise, I am facing the option to curse all ready-made XML stream parsers, and write your own simple parser. Tired of looking for other software bugs, or poor design: (

You may want to try Or.


Comments