Uploaded image for project: 'Gateway'
  1. Gateway
  2. GTWY-2281

Lazy Load Exception when Applying to a Group

XMLWordPrintable

    • Icon: Defect Defect
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0-M4
    • 1.3.0-M3
    • User Account
    • None

      The following stack trace occurs when attempting to apply for a group with a user already logged into the system.

      In this case I was attempting to register for the CCSM4 Pop Group.


      [ERROR] sgf.gateway.service.messaging.impl.handler.LoggingExceptionHandler: An exception occurred.
      sgf.gateway.exceptions.UnhandledException: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'groupApplicationForm' of flow 'groupApplication-flow'
      at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.setupExceptionDetails(UnhandledExceptionFilter.java:174)
      at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.reportException(UnhandledExceptionFilter.java:157)
      at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.doHandleException(UnhandledExceptionFilter.java:141)
      at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.handleException(UnhandledExceptionFilter.java:114)
      at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.doFilter(UnhandledExceptionFilter.java:92)
      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'groupApplicationForm' of flow 'groupApplication-flow'
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:656)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at sgf.gateway.web.filters.metrics.ClickstreamFilter.doFilter(ClickstreamFilter.java:62)
      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at sgf.gateway.web.filters.metrics.UserAgentFilter.doFilter(UserAgentFilter.java:73)
      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:366)
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      at org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:89)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:109)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:167)
      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.doFilter(UnhandledExceptionFilter.java:86)
      ... 14 more
      Caused by: org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'groupApplicationForm' of flow 'groupApplication-flow'
      at org.springframework.webflow.engine.impl.FlowExecutionImpl.wrap(FlowExecutionImpl.java:567)
      at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:266)
      at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:163)
      at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:173)
      at org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:174)
      at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
      ... 63 more
      Caused by: java.lang.IllegalStateException: Exception occurred rendering view org.springframework.web.servlet.view.JstlView: name '/ac/guest/secure/membership/groupApplicationForm'; URL [/WEB-INF/views/jsp//ac/guest/secure/membership/groupApplicationForm.jsp]
      at org.springframework.webflow.mvc.view.AbstractMvcView.render(AbstractMvcView.java:169)
      at org.springframework.webflow.engine.ViewState.render(ViewState.java:245)
      at org.springframework.webflow.engine.ViewState.resume(ViewState.java:204)
      at org.springframework.webflow.engine.Flow.resume(Flow.java:545)
      at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:262)
      ... 70 more
      Caused by: org.apache.jasper.JasperException: org.apache.jasper.el.JspELException: /WEB-INF/views/jsp/ac/guest/secure/membership/groupApplicationForm.jsp(43,7) '${groupApplicationCommand.user.userDataMap}' Error reading 'userDataMap' on type sgf.gateway.model.security.User
      at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
      at org.springframework.security.web.firewall.RequestDispatcherAwareHttpFirewall$ForwardAndIncludeAwareHttpFirewalledRequest$FirewalledRequestAwareRequestDispatcher.forward(RequestDispatcherAwareHttpFirewall.java:51)
      at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
      at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
      at org.springframework.webflow.mvc.servlet.ServletMvcView.doRender(ServletMvcView.java:50)
      at org.springframework.webflow.mvc.view.AbstractMvcView.render(AbstractMvcView.java:165)
      ... 74 more
      Caused by: org.apache.jasper.el.JspELException: /WEB-INF/views/jsp/ac/guest/secure/membership/groupApplicationForm.jsp(43,7) '${groupApplicationCommand.user.userDataMap}' Error reading 'userDataMap' on type sgf.gateway.model.security.User
      at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:107)
      at org.apache.jsp.WEB_002dINF.views.jsp.ac.guest.secure.membership.groupApplicationForm_jsp._jspx_meth_c_005fset_005f11(groupApplicationForm_jsp.java:813)
      at org.apache.jsp.WEB_002dINF.views.jsp.ac.guest.secure.membership.groupApplicationForm_jsp._jspx_meth_c_005fwhen_005f0(groupApplicationForm_jsp.java:750)
      at org.apache.jsp.WEB_002dINF.views.jsp.ac.guest.secure.membership.groupApplicationForm_jsp._jspx_meth_c_005fchoose_005f0(groupApplicationForm_jsp.java:703)
      at org.apache.jsp.WEB_002dINF.views.jsp.ac.guest.secure.membership.groupApplicationForm_jsp._jspx_meth_springForm_005fform_005f0(groupApplicationForm_jsp.java:618)
      at org.apache.jsp.WEB_002dINF.views.jsp.ac.guest.secure.membership.groupApplicationForm_jsp._jspx_meth_tiles_005fputAttribute_005f3(groupApplicationForm_jsp.java:545)
      at org.apache.jsp.WEB_002dINF.views.jsp.ac.guest.secure.membership.groupApplicationForm_jsp._jspx_meth_tiles_005finsertDefinition_005f0(groupApplicationForm_jsp.java:370)
      at org.apache.jsp.WEB_002dINF.views.jsp.ac.guest.secure.membership.groupApplicationForm_jsp._jspService(groupApplicationForm_jsp.java:313)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
      ... 88 more
      Caused by: org.hibernate.LazyInitializationException: could not initialize proxy - no Session
      at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:86)
      at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:140)
      at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
      at sgf.gateway.model.security.GroupData_$$_javassist_66.hashCode(GroupData_$$_javassist_66.java)
      at java.util.HashMap.put(HashMap.java:372)
      at sgf.gateway.model.security.User.getUserDataMap(User.java:415)
      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:597)
      at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
      at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
      at org.apache.el.parser.AstValue.getValue(AstValue.java:123)
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
      at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
      ... 98 more

              nhook Nathan Hook
              nhook Nathan Hook
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: