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

velocity-user | Mike Kienenberger | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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

    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