java.lang.IllegalArgumentException: Tool can only be initialized with a ViewContext

velocity-user | Mike Kienenberger | 1 decade ago
  1. 0

    Re: toolbox.xml and email templates

    velocity-user | 1 decade ago | Mike Kienenberger
    java.lang.IllegalArgumentException: Tool can only be initialized with a ViewContext
  2. 0

    Re: toolbox.xml and email templates

    velocity-user | 1 decade ago | Mike Kienenberger
    java.lang.IllegalArgumentException: Tool can only be initialized with a ViewContext
  3. 0
    This happened when I tried to insert an empty list of elements to a collection.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Some bots are sending malformed HTTP requests to your site. Try to find their IP addresses in the access logs and ask them to fix the bots or blacklist them.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Tool can only be initialized with a ViewContext

      at org.apache.velocity.tools.view.tools.LinkTool.init()
    2. VelocityTools
      XMLToolboxManager.getToolboxContext
      1. org.apache.velocity.tools.view.tools.LinkTool.init(LinkTool.java:291)
      2. org.apache.velocity.tools.view.ViewToolInfo.getInstance(ViewToolInfo.java:171)
      3. org.apache.velocity.tools.view.XMLToolboxManager.getToolboxContext(XMLToolboxManager.java:150)
      3 frames
    3. com.gvea.struts
      Application.getToolboxContext
      1. com.gvea.struts.ebpp.framework.Application.getToolboxContext(Application.java:124)
      1 frame