Here is the NullPointerException/bad error message.
Take a look at the velocity.err1.log file.  Notice that
the last error message on the stack is not the right one.
(And if you're on a UNIX machine, and use "tail velocity.log",
you wont even see the real error, because it is too far
up.  The template which caused this is HorseForm.err1.vm.
I've included HorseWithForm.java for you to look at,
but you will not be able to run it without some more
files.

D:\Joshua\rpg\gmht\examples\horses>java HorseWithForm
Velocity.evaluate failed
java.lang.NullPointerException
        at org.apache.velocity.app.Velocity.evaluate(Velocity.java:177)
        at Form.trans(Form.java:90)
        at HorseWithForm.main(HorseWithForm.java:19)

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

velocity.err1.log

Name: $name  Breed: $breed<BR>
Height: ${2d2+15}hh  Age: ${1d4}y<BR>
Color: $color  Face: $face<BR>

HorseWithForm.java

Reply via email to