2 Replies Latest reply: Feb 4, 2013 8:02 AM by user3536752 RSS

    Code generating 'LPX-00651: VM Stack overflow'. What's the fix?

    657660
      While handling huge data, we are receiving the following error stack:

      ORA-31011: XML parsing failed
      ORA-19202: Error occurred in XML processing
      LPX-00663: VM String-Stack overflow.

      The suggested fix is to:
      Increase the size of VM stacks in XmlXslVMCreate().

      How to do this? We didnt find any XmlXslVMCreate method. No documents on this as well!

      Any workarounds to avoid this error?

      The code snippet:

      declare
      ....
      .....
      l_jpp_doc CLOB;
      lv_stylesheet VARCHAR2 (32767);
      lv_stylesheet_1 VARCHAR2 (32767);
      l_stylesheetdoc xmldom.domdocument;
      l_stylesheet xslprocessor.stylesheet;
      l_engine xslprocessor.processor;
      l_parser xmlparser.parser;
      l_xmldoc xmldom.domdocument;
      .....
      begin
      .....
      ....
      l_stylesheetdoc := xmlparser.getdocument (l_parser);
      l_stylesheet := xslprocessor.newstylesheet (l_stylesheetdoc, NULL);
      -- transform the queried xml document using the stylesheet
      xslprocessor.processxsl (l_engine,
      l_stylesheet,
      l_xmldoc,
      l_jpp_doc
      *);*
      ....
      end;


      Sid