Velocity
  1. Velocity
  2. VELOCITY-424

directive.Parse eating RuntimeException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5
    • Component/s: Engine
    • Labels:
      None

      Description

      The org.apache.velocity.runtime.directive.Parse class is "eating" RuntimeExceptions thrown by Nodes being rendered on line 195. These errors are logged, but are not rethrown.

      These types of errors are typically NPE being thrown by model objects trying to render themselves using their toString() method.

      It is better if any RuntimeExceptions are not caught by this method, as it allows the calling code to document/report the error.

      1. Parse_patch.txt
        0.7 kB
        Malcolm Edgar

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551364 ] jira [ 12552072 ]
        Mark Thomas made changes -
        Workflow jira [ 12344002 ] Default workflow, editable Closed status [ 12551364 ]
        Henning Schmiedehausen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Henning Schmiedehausen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Henning Schmiedehausen made changes -
        Assignee Henning Schmiedehausen [ henning ]
        Will Glass-Husain made changes -
        Fix Version/s 1.5 [ 12310253 ]
        Malcolm Edgar made changes -
        Field Original Value New Value
        Attachment Parse_patch.txt [ 12320854 ]
        Malcolm Edgar created issue -

          People

          • Assignee:
            Henning Schmiedehausen
            Reporter:
            Malcolm Edgar
          • Votes:
            5 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development