velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans Schmid" <Hans.Sch...@einsurance.de>
Subject AW: AW: AW: AW: AW: Empty reply from server from time to time (Stacktrace attatched)
Date Fri, 09 Jan 2004 17:44:33 GMT
OK, intermixed

> -----Ursprungliche Nachricht-----
> Von: Geir Magnusson Jr [mailto:geir@4quarters.com]
> Gesendet: Freitag, 9. Januar 2004 18:14
> An: Velocity Users List
> Betreff: Re: AW: AW: AW: AW: Empty reply from server from time to time
> (Stacktrace attatched)
>
>
>
> On Jan 9, 2004, at 11:57 AM, Hans Schmid wrote:
>
> > And even better (after some more loadtests)
> >
> > 2004-01-09 18:00:02,210 98439 [Thread-3] ERROR
> > (gui.framework.AbstractScreen)  - Stacktrace:
> > java.lang.NullPointerException
> >         at org.apache.velocity.Template.initDocument(Template.java:239)
> >         at org.apache.velocity.Template.process(Template.java:164)
> >         at
>
> This is exactly what I expected to see earlier w/ your first stack
> trace, as I couldn't understand how it couldn't be there when you saw
> the error that you did saying
>
> "Template.merge() failure. The document is null most likely due to
> parsing error."
>
> Now it all fits, sort of.
>
> More questions :
>
> 1) What resource loader are you using?
>

FileResourceLoader


> 2) Why does your code, specifically
>
>
> de.einsurance.gui.framework.AbstractScreen.handleRequest(AbstractScreen.
> java:261)
>
> call the process() method on the template?
>

I have to investigate (as I said, a contractor who already left wrote the
code)
The code was developed back in late 2001 against Velocity 1.2rc1 or even
earlier.


> SNIP
>
> >
> > which indicates an initialisation problem as well
> >
> > and
> >
> > 2004-01-09 17:59:57,001 93230 [Thread-25] ERROR
> > (gui.framework.AbstractScreen)  - Stacktrace:
> > java.lang.NullPointerException
> >         at
> > org.apache.velocity.runtime.parser.node.ASTStringLiteral.value(ASTStrin
> > gLite
> > ral.java:204)
>
>
> Something is very sick here.  This looks again like the same thing -
> that the AST wasn't init-ed properly...
>
> Can we see the code for AbstractScreen?
>

Will send you the stuff privately

> If you don't want to post to a public list, send to me privately...
>
> geir
>
> --
> Geir Magnusson Jr                                   203-247-1713(m)
> geir@4quarters.com
>
>
> ---------------------------------------------------------------------
> 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