velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darren Davison <dar...@davison.uk.net>
Subject exception using ViewRenderTool
Date Wed, 09 Jun 2004 00:02:26 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Trying to expose a render tool with;

ViewRenderTool viewRenderTool = new ViewRenderTool();
viewRenderTool.init(velocityContext);
velocityContext.put("render", viewRenderTool);



I get the following trace every time I attempt to invoke recurse() (or eval)

org.apache.velocity.exception.MethodInvocationException: Invocation of 
method 'recurse' in  class 
org.apache.velocity.tools.view.tools.ViewRenderTool threw exception class 
java.lang.NullPointerException : null
        org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
        org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:213)
        org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:258)
        org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:269)
        org.apache.velocity.Template.merge(Template.java:294)

Any pointers as to where to start looking for the cause?

Regards,
- -- 
Darren Davison
Public Key: http://www.davison.uk.net/pages/key.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD4DBQFAxlOSKLMLAN01aw0RAuRcAJiVhODOys8FoQUM0m2Y1tbiIEQPAJ9oh/mu
qypkp+4W8b5/tRRBzrhAEQ==
=Iqn5
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message