velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Toppe" <joc...@jtoee.com>
Subject Re: how to get detailed line number in velocity exception
Date Fri, 08 Oct 2004 07:14:51 GMT

Plug in an event cartridge:

EventCartridge ec = new EventCartridge();
ec.addEventHandler(<something that implements MethodExceptionEventHandler>);
ec.attachToContext(velocCtx);

cheers,
  j.

> Hi,
>
>
> I am debugging my app, and there is an exception when velocity renders a
> template. Something like:
>
> org.apache.velocity.exception.MethodInvocationException: Invocation of
> method 'get' in class XYZ threw exception class
> java.lang.NullPointerException : null at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:
> 246)
> ..
>
>
> It does not tell which line in class XYZ throws that null exception.
>
>
> Is there anyway to configure velocity to dump the detailed line number?
>
>
> Thanks,
>
>
> Jian
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
>
>
>



---------------------------------------------------------------------
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