Menu

#4 Program Crash/Hang for invalid string (RCP Application)

v1.0_(example)
open
nobody
None
5
2015-05-21
2015-05-21
No

Hi,

I am using chaperon for generating xml file by parsing a string of a particular sort with all the functionality provided for an RCP application.
When the string adheres to the grammar provided in .grm format then the xml file is generated perfectly fine. However, on being provided a string that does not adhere to the context free grammar in the grm file, the RCP application hangs up (possibly due to an infinite loop) and crashes.

I debugged the code and realized that the failure point was at the code line:

lexer.endElement("http://chaperon.sourceforge.net/schema/text/1.0", "text", "text");

where the lexer is an object of class LexicalProcessor.

Could you please suggest what could be the possible cause of the problem?

Regards,
Pulkit Manocha

Discussion


Log in to post a comment.