Did that make the build fail?
No.
Now what it's about it all in the stack trace, feel free to dig it up and try to understand ;)

(yes, ideally, that test should not barf that stacktrace, since it's actually testing the behaviour of the FreemarkerHelper class when an invalid expression is used; again, feel free to fix and send a patch ;) )

g

On May 11, 2007, at 13:15 , dieter wrote:


Hi,

I have been trying for many days now to try and build Magnolia 3.1. There
seem to be very many ways and means of getting there, but I seem to be
getting an actual error. Does anyone know what this is about..

Running info.magnolia.freemarker.FreemarkerHelperTest
ERROR  freemarker.runtime Log4JLoggerFactory.java(error:96) 11.05.2007
12:03:32

Expression contextPath is undefined on line 1, column 4 in pouet.
The problematic instruction:
----------
==> ${contextPath} [on line 1, column 2 in pouet]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression contextPath is
undefined o
n line 1, column 4 in pouet.
        at
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)

at freemarker.core.Expression.getStringValue (Expression.java:118) at freemarker.core.Expression.getStringValue (Expression.java:93) at freemarker.core.DollarVariable.accept (DollarVariable.java:76)
        at freemarker.core.Environment.visit(Environment.java:196)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:196)
        at freemarker.core.Environment.process(Environment.java:176)
        at freemarker.template.Template.process(Template.java:232)
        at
info.magnolia.freemarker.FreemarkerHelper.render(FreemarkerHelper.jav
a:73)
        at
info.magnolia.freemarker.FreemarkerHelperTest.testContextPathIsNotAdd
edWithNotWebContext(FreemarkerHelperTest.java:292)
--
View this message in context: http://www.nabble.com/Unable-to-build- magnolia-3.1-tf3726819.html#a10429895
Sent from the Magnolia - User mailing list archive at Nabble.com.


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to