portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ate Douma <...@douma.nu>
Subject Re: VelocityViewServlet : Error processing the template
Date Tue, 11 Jan 2005 20:42:50 GMT
Hi Xavier,

I've had this error a few times today too. In my case the real cause wasn't displayed in the
Tomcat console
but in the jetspeed.log (under $TOMCAT_HOME/webapps/jetspeed/logs/).

Regards, Ate

NB: I'm in the process of finishing up a rather big upgrade to the current struts-bridge.
I hope to have it
done end of this week or sometime next week the latest. One of the new features will be much
better support
for migrating existing struts applications (much less things to change if the app is written
nicely). I also
plan to deliver the JPetstore struts application as a new demo portlet for Jetspeed 2, together
with a tutorial
and instruction set for the migration process.


Xavier Lawrence wrote:
> Hi all,
> 
> I am trying to portletize an existing Struts Application and jetspeed-2
> prints out this error, when I try to access the portlet.
> 
> I use the struts-portlet bridge.
> 
> Any ideas where I should start looking ??  The message is a little vague
> to me...
> 
> Thanks in advance for any help.
> 
> Regards
> 
> Xavier
> 
> 
> VelocityViewServlet : Error processing the template
> Invocation of method 'getRenderedContent' in class
> org.apache.jetspeed.om.page.psml.FragmentImpl threw exception class
> java.lang.IllegalStateException : You cannot invoke getRenderedContent()
> until the content has been set.
> 
> java.lang.IllegalStateException: You cannot invoke getRenderedContent()
> until the content has been set.
>         at
> org.apache.jetspeed.om.page.psml.FragmentImpl.getRenderedContent(FragmentImpl.java:326)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:111)
>         at
> org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:302)
>         at
> org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:157)
>         at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
>         at
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
>         at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
> at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
>         at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
>         at
> org.apache.velocity.runtime.directive.Parse.render(Parse.java:181)
> at
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
>         at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
> at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
>         at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
> at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
> at
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
>         at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
> at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
> at
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
>         at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
>         at org.apache.velocity.Template.merge(Template.java:256)
>         at
> org.apache.portals.bridges.velocity.BridgesVelocityViewServlet.mergeTemplate(BridgesVelocityViewServlet.java:118)
>         at
> org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(Unknown
> Source)
>         at
> org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(Unknown
> Source)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
>         at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
>         at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
>         at
> org.apache.jetspeed.dispatcher.JetspeedRequestDispatcher.include(JetspeedRequestDispatcher.java:65)
>         at
> org.apache.portals.bridges.common.GenericServletPortlet.doView(GenericServletPortlet.java:344)
>         at
> org.apache.jetspeed.portlets.layout.LayoutPortlet.doView(LayoutPortlet.java:134)
>         at
> org.apache.jetspeed.portlets.layout.MultiColumnPortlet.doView(MultiColumnPortlet.java:107)
>         at
> javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
> at
> javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
>         at
> org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:232)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
>         at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
>         at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
>         at
> org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:213)
>         at
> org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(ServletPortletInvoker.java:124)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61)
>         at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:142)
>         at $Proxy10.render(Unknown Source)
>         at
> org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:103)
>         at
> org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPortlet(JetspeedPortletContainerWrapper.java:88)
>         at
> org.apache.jetspeed.aggregator.impl.RenderingJob.execute(RenderingJob.java:109)
>         at
> org.apache.jetspeed.aggregator.impl.RenderingJob.run(RenderingJob.java:79)
>         at
> org.apache.jetspeed.aggregator.impl.Worker$1.run(Worker.java:171)
> at
> java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAsPrivileged(Subject.java:437)
>         at org.apache.jetspeed.aggregator.impl.Worker.run(Worker.java:165)
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
> 
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message