[opencms-dev] Problem with CmsFlexController when using Spring & Tiles

Mathias Lin mail at mathiaslin.com
Fri Jan 9 19:08:58 CET 2009


Hi,

I use Spring integrated into OpenCms7.0.5 and now want to break the
templates into smaller parts using Tiles. 

Tiles are configured so far, and in my template I put 

<%@ taglib prefix="tiles" uri="http://jakarta.apache.org/struts/tags-tiles"
%>
...
<tiles:insert name="content" />

When opening the page I get the following exception in
CmsFlexController.java:693.
I found exactly this problem posted here: 
http://www.opencms-forum.de/opencms-forum/viewthread?thread=3278
http://www.opencms-forum.de/opencms-forum/viewthread?thread=3278  but no
resolution to it.

I also tried to turn off the Flex Cache in opencms-system.xml, but after
Tomcat restart, I still get the same error.

Anybody who got Tiles running with OpenCms7.0.5?


java.lang.NullPointerException
	at
org.opencms.flex.CmsFlexController.updateRequestContextInfo(CmsFlexController.java:693)
	at org.opencms.flex.CmsFlexController.pop(CmsFlexController.java:594)
	at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:469)
	at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)
	at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:1227)
	at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1171)
	at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)
	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1498)
	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
	at
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:142)
	at
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:239)
	at
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1140)
	at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:877)
	at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:790)
	at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
	at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
	at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:835)
	at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
	at java.lang.Thread.run(Thread.java:595)


The link to CmsFlexController.java in CVS:
http://cvs.opencms.org/viewvc.cgi/opencms/src/org/opencms/flex/CmsFlexController.java?revision=1.42&view=markup
http://cvs.opencms.org/viewvc.cgi/opencms/src/org/opencms/flex/CmsFlexController.java?revision=1.42&view=markup 

line 693: m_cmsObject.getRequestContext().setAttribute(

Thanks,
Mathias Lin
SYSVISION Ltd., China

-- 
View this message in context: http://www.nabble.com/Problem-with-CmsFlexController-when-using-Spring---Tiles-tp21377454p21377454.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list