Menu

#190 print error stack exception

undecided
closed-out-of-date
nobody
None
5
2014-10-12
2007-11-07
john
No

notice in the exception stack that this blows up when trying to print the exception.

java.lang.StringIndexOutOfBoundsException
at java.lang.StringBuffer.delete(StringBuffer.java:330)
at freemarker.template.Template.getSource(Template.java:488)
at freemarker.core.TemplateObject.getSource(TemplateObject.java:167)
at freemarker.core.DollarVariable.getDescription(DollarVariable.java:84)
at freemarker.core.Environment.outputInstructionStack(Environment.java:1081)
at freemarker.template.TemplateException.<init>(TemplateException.java:137)
at freemarker.template.TemplateException.<init>(TemplateException.java:106)
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)

Discussion

  • Attila Szegedi

    Attila Szegedi - 2007-11-15

    Logged In: YES
    user_id=52489
    Originator: NO

    Hi,

    could you provide us with a reproducible testcase? A template file + Java code trying to render it would be sufficient.

     
  • Dániel Dékány

    Not enough info to reproduce... if the bug still exists anyway.

     
  • Dániel Dékány

    • status: open --> closed-out-of-date
    • Group: --> undecided
     

Log in to post a comment.

MongoDB Logo MongoDB