struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piero Sartini <li...@pierosartini.de>
Subject [S2] NPE when using struts form tags in sitemesh decorator
Date Mon, 14 Jul 2008 13:23:16 GMT
The S2 version is 2.1.3-SNAPSHOT. The exact same project was working some time 
ago with 2.1.1-SNAPSHOT. So maybe this is something that got broken in newer 
builds.

The problem seems to be that Freemarker can't get its configuration at this 
point. But ActionContextCleanUp is the first filter in chain, and tags like 
@s.url do work, only the form and input fields do not work.

If I try the exact same form outside the decorator in a normal, decorated 
page, everything works like expected.

Any ideas?

java.lang.NullPointerException
        at 
org.apache.struts2.views.freemarker.FreemarkerManager.getConfiguration(FreemarkerManager.java:159)
        at 
org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:90)
        at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:558)
        at org.apache.struts2.components.Submit.end(Submit.java:109)
        at 
org.apache.struts2.views.freemarker.tags.CallbackWriter.afterBody(CallbackWriter.java:84)
        at freemarker.core.Environment.visit(Environment.java:299)
        at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.Environment.include(Environment.java:1477)
        at freemarker.core.Include.accept(Include.java:169)
	at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.Environment.process(Environment.java:188)
        at freemarker.template.Template.process(Template.java:237)
        at 
org.apache.struts2.sitemesh.FreeMarkerPageFilter.applyDecorator(FreeMarkerPageFilter.java:160)
        at 
org.apache.struts2.sitemesh.TemplatePageFilter.applyDecorator(TemplatePageFilter.java:116)
        at 
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:62)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
...
...
...

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


Mime
View raw message