Uploaded image for project: 'Velocity Tools'
  1. Velocity Tools
  2. VELTOOLS-4

bad errors description

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • GenericTools
    • None
    • Operating System: All
      Platform: All
    • 34576

    Description

      Hello,

      I've created toolbox.xml like this:

      <toolbox><tool/></toolbox>

      (yes, empty <tool/> tag). I got exception

      java.lang.NullPointerException
      org.apache.velocity.tools.view.ViewToolInfo.getInstance(ViewToolInfo.java:115)
      org.apache.velocity.tools.view.servlet.ServletToolboxManager.getToolboxContext(ServletToolboxManager.java:354)
      org.springframework.web.servlet.view.velocity.VelocityToolboxView.createVelocityContext(VelocityToolboxView.java:106)
      ...
      Yes, I know, it's my fault, but I think that errors in toolbox.xml should be

      1. Not fatal;
      2. Should be better explained.

      I used velocity-tools-1.1.

      And also I have a request – could you please compile velocity-tools with
      debugging info? I had to compile velocity-tools by myself to find error. (I did
      this before I've looked at my toolbox.xml

      Thanks.

      Attachments

        1. velocity-tools.patch
          15 kB
          Henning Schmiedehausen

        Activity

          People

            Unassigned Unassigned
            yozh Stepan Koltsov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: