[ http://issues.apache.org/jira/browse/VELTOOLS-11?page=all ]

Tim Colson moved VELOCITY-294 to VELTOOLS-11:
---------------------------------------------

      Project: VelocityTools  (was: Velocity)
          Key: VELTOOLS-11  (was: VELOCITY-294)
    Component:     (was: Tools)
      Version:     (was: 1.1)

> RenderTool on separate instance model fails
> -------------------------------------------
>
>          Key: VELTOOLS-11
>          URL: http://issues.apache.org/jira/browse/VELTOOLS-11
>      Project: VelocityTools
>         Type: Bug
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Shinobu Kawai

>
> Using RenderTool on the separate instance model causes a 
> NullPointerException.  
> This happens because RenderTool uses the singleton model which is not 
> initialized when you use the separate instance model.
> You can reproduce this easily:
>     VelocityEngine engine = new VelocityEngine();
>     engine.init();
>     
>     Context context = new VelocityContext();
>     context.put("render", new RenderTool());
>     context.put("ctx", context);
>     
>     StringWriter writer = new StringWriter();
>     String eval = "$render.eval($ctx, '')";
>     engine.evaluate(context, writer, "bug", eval);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to