PDA

View Full Version : Spring Portlet MVC and Session Problem


dowser
Feb 8th, 2006, 06:02 AM
Hello,

we convert our current application from spring mvc to pring portlet mvc. everthing works fine, but a small error occurs. this error causes that the application redirects to an error view.

The formBackingObject set a command object to the form.
The web form calls a SimpleFormController and is bind with a validator.
On Submit the validator is called an then the onBindandValidate Method.
Then an warning comes up (no errors are set in the validator).

- What does this warning mean?

11:42:53,740 WARN [DispatcherPortlet] Handler execution resulted in exception - forwarding to resolved error view
org.springframework.web.portlet.handler.SessionReq uiredException: Could not obtain portlet session
at org.springframework.web.portlet.mvc.BaseCommandCon troller.getRenderCommand(BaseCommandController.jav a:496)
at org.springframework.web.portlet.mvc.AbstractFormCo ntroller.handleRenderRequestInternal(AbstractFormC ontroller.java:386)
at org.springframework.web.portlet.mvc.AbstractContro ller.handleRenderRequest(AbstractController.java:1 98)
at org.springframework.web.portlet.mvc.SimpleControll erHandlerAdapter.handleRender(SimpleControllerHand lerAdapter.java:46)
at org.springframework.web.portlet.DispatcherPortlet. doRenderService(DispatcherPortlet.java:637)
at org.springframework.web.portlet.FrameworkPortlet.p rocessRequest(FrameworkPortlet.java:419)
at org.springframework.web.portlet.FrameworkPortlet.d oDispatch(FrameworkPortlet.java:390)
at javax.portlet.GenericPortlet.render(GenericPortlet .java:163)
at com.artisgroup.sitebase.server.portal.servlet.Site basePortletDispatcherServlet.service(SitebasePortl etDispatcherServlet.java:357)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve .invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:153)
at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:482)
at org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:59)
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.invok e(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread .run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)

Thx,

dowser

dowser
Feb 23rd, 2006, 03:43 AM
Hello,

we solved our problem, by updating the portal container.

thx,

dowser

ridder.ashok
Jul 13th, 2007, 06:06 AM
Hi dowser,

I am having the similar problem like you with sessions when using Spring PortletMVC integrating to Vignette portal Server.

Can you please help me out by mentioning your portal server name and the wat exactly u have done as a solution to the session problem.

Thanks
Ashok Kumar