I'm getting errors trying to start after updating to both the latest
milestones and the latest trunk versions of the STK and magnolia core.
The stacktrace points to this method:
java.lang.IllegalStateException: No site configuration found for [/demo-project]
info.magnolia.module.templatingkit.renderers.STKTemplateRenderer.getSite(STKTemplateRenderer.java:120)
info.magnolia.module.templatingkit.renderers.STKTemplateRenderer.render(STKTemplateRenderer.java:85)
info.magnolia.module.templating.renderers.AbstractTemplateRenderer.renderTemplate(AbstractTemplateRenderer.java:76)
info.magnolia.module.templating.RenderingFilter.doFilter(RenderingFilter.java:93)
which looks like this:
public static Site getSite() {
// TODO we should use the aggregation state
Object object = MgnlContext.getAggregationState();
try {
return (Site) object.getClass().getMethod("getSite").invoke(object);
}
catch (Exception e) {
throw new RuntimeException(e);
}
...
This method seems to me to be broken because it's always trying to
call the "getSite" method on the AggregationState - which has no
getSite() method.
Also, why the use of reflection here when there is no need for it at
all? MgnlContext.getAggregationState will always return an
AggregationState ?
In any case, I can't render any pages on my site because of this error
- is there something I'm doing wrong or is this just broken for now?
Ryan
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------