[opencms-dev] CmsFlexRequestDispatcher Include Method
Raúl Lorenzo
raul.lorenzo at altia.es
Wed May 9 11:14:03 CEST 2007
Hello,
I am using include method from CmsFlexRequestDispatcher getting a
NullPointer Exception.
Is there any limitation to use this?
I want to use this class to mantain all the data in the request object
(parameters, etc...) to delegate the control to another JSP.
the code I am using within a JSP is:
CmsFlexRequest flexRequest = (CmsFlexRequest) pageContext.getRequest();
CmsFlexResponse flexResponse = (CmsFlexResponse) pageContext.getResponse();
traza.info("getServletPath = " + flexRequest.getServletPath());
CmsFlexRequestDispatcher frd = (CmsFlexRequestDispatcher)
flexRequest.getRequestDispatcher(flexRequest.getServletPath() +
recursoAcceso);
frd.include(flexRequest, flexResponse);
traza.info("Casi Fin.....");
And the trace is:
java.lang.NullPointerException
at
org.opencms.flex.CmsFlexController.updateRequestContextInfo(CmsFlexController.java:674)
at org.opencms.flex.CmsFlexController.pop(CmsFlexController.java:576)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:469)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:174)
at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:467)
at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:412)
at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:730)
at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1349)
at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:151)
at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:163)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Thanks in advance.
--
Raúl Lorenzo Boullosa
Desarrollador Aplicaciones Informáticas
Altia Consultores S.L.
http://www.altia.es
C/Pontevedra nº 4, 6º
36201 Vigo (Pontevedra - España)
Telf: +34 986 446 191
Fax: +34 986 439 128
Email: raul.lorenzo at altia.es
More information about the opencms-dev
mailing list