Menu

stack overflow error while calling toHtml()

Help
2009-08-11
2013-04-27
  • Vijaya Bhaskar  Peddinti

    Dear All,

    In our application once we parse the html file in the generated node list we are adding new attributes to the tags but when we are trying to call the toHtml() method to print the html it is giving us stack over flow error.

    I have tried to increase the java stack size significantly but still i am getting the same error.

    I have seen the bugs list on this exception, the new attribute is being added correctly to the node.

    Any help regarding this highly appreciated.

    thanks and regards,
    Vijaya Bhaskar Peddinti
    PS: I tried with both 1.6 and 2.0 version.

     
    • Vijaya Bhaskar  Peddinti

      new attributes are added to almost all the tags in the node list.

       
      • Derrick Oswald

        Derrick Oswald - 2009-08-11

        Perhaps you have included an element that references itself or its parent. It's recursive you know. Elements contain other elements and printing recurses down the hierarchy so if you ever add an element that you 'borrowed' from somewhere else in the parse, it's likely that it references itself directly or indirectly after your edits.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.