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

OpenID Exception When a User Loses Their Session

XMLWordPrintable

    • Icon: Defect Defect
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 2.0.6
    • Login
    • None

      For whatever reason a User might lose their Session between the time that OpenID consumption starts and the OpenID Provider returns the user to our site.

      If the User does lose their Session the following exception occurs:

      Message: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException

      Values:
      ESKE Session Id: e42fcd23-300d-4a0a-9381-ccfc9b10bb6a
      User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1
      Server Name: www.earthsystemgrid.org
      Server Port: 443
      Context Path:
      Method: POST
      URL: /openid/login.htm
      Query String: openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.claimed_id=https%3A%2F%2Fwww.earthsystemgrid.org%2Fmyopenid%2Fmlosic&openid.identity=https%3A%2F%2Fwww.earthsystemgrid.org%2Fmyopenid%2Fmlosic&openid.return_to=https%3A%2F%2Fwww.earthsystemgrid.org%2Fj_spring_openid_security_check&openid.realm=https%3A%2F%2Fwww.earthsystemgrid.org%2F&openid.assoc_handle=1343683397528-305&openid.mode=checkid_setup&openid.ns.ext1=http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0&openid.ext1.mode=fetch_request&openid.ext1.type.axschema_email=http%3A%2F%2Faxschema.org%2Fcontact%2Femail&openid.ext1.type.axschema_firstName=http%3A%2F%2Faxschema.org%2FnamePerson%2Ffirst&openid.ext1.type.axschema_lastName=http%3A%2F%2Faxschema.org%2FnamePerson%2Flast&openid.ext1.type.openid_email=http%3A%2F%2Fopenid.net%2Fschema%2Fcontact%2Femail&openid.ext1.type.openid_firstName=http%3A%2F%2Fopenid.net%2Fschema%2FnamePerson%2Ffirst&openid.ext1.type.openid_lastName=http%3A%2F%2Fopenid.net%2Fschema%2FnamePerson%2Flast&openid.ext1.type.schema_email=http%3A%2F%2Fschema.openid.net%2Fcontact%2Femail&openid.ext1.type.schema_firstName=http%3A%2F%2Fschema.openid.net%2Fcontact%2Ffirstname&openid.ext1.type.schema_lastName=http%3A%2F%2Fschema.openid.net%2Fcontact%2Flastname&openid.ext1.if_available=axschema_email%2Caxschema_firstName%2Caxschema_lastName%2Copenid_email%2Copenid_firstName%2Copenid_lastName%2Cschema_email%2Cschema_firstName%2Cschema_lastName
      openid.ns.ext1: 'http://openid.net/srv/ax/1.0'
      openid.ext1.type.openid_firstName: 'http://openid.net/schema/namePerson/first'
      openid.ext1.type.axschema_email: 'http://axschema.org/contact/email'
      j_password: '********'
      openid.ext1.type.openid_email: 'http://openid.net/schema/contact/email'
      openid.ext1.type.schema_email: 'http://schema.openid.net/contact/email'
      openid.claimed_id: 'https://www.earthsystemgrid.org/myopenid/mlosic'
      openid.assoc_handle: '1343683397528-305'
      j_username: 'https://www.earthsystemgrid.org/myopenid/mlosic'
      openid.ext1.type.axschema_firstName: 'http://axschema.org/namePerson/first'
      openid.ext1.type.openid_lastName: 'http://openid.net/schema/namePerson/last'
      openid.ext1.type.axschema_lastName: 'http://axschema.org/namePerson/last'
      openid.ns: 'http://specs.openid.net/auth/2.0'
      openid.identity: 'https://www.earthsystemgrid.org/myopenid/mlosic'
      openid.ext1.type.schema_lastName: 'http://schema.openid.net/contact/lastname'
      openid.ext1.mode: 'fetch_request'
      openid.mode: 'checkid_setup'
      openid.ext1.type.schema_firstName: 'http://schema.openid.net/contact/firstname'
      openid.realm: 'https://www.earthsystemgrid.org/'
      openid.ext1.if_available: 'axschema_email,axschema_firstName,axschema_lastName,openid_email,openid_firstName,openid_lastName,schema_email,schema_firstName,schema_lastName'
      openid.return_to: 'https://www.earthsystemgrid.org/j_spring_openid_security_check'


      org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.filters.RequestDumperFilter.doFilter(RequestDumperFilter.java:203)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      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:346)
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      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:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.doFilter(UnhandledExceptionFilter.java:86)
      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.valves.CometConnectionManagerValve.invoke(CometConnectionManagerValve.java:186)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.NullPointerException
      at org.openid4java.message.Message.<init>(Message.java:71)
      at org.openid4java.message.AuthRequest.<init>(AuthRequest.java:81)
      at org.openid4java.message.AuthRequest.createAuthRequest(AuthRequest.java:112)
      at sgf.gateway.web.controllers.security.openid.OpenidProviderLoginController.formBackingObject(OpenidProviderLoginController.java:83)
      at org.springframework.web.servlet.mvc.AbstractFormController.getCommand(AbstractFormController.java:435)
      at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:265)
      at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
      at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
      ... 61 more



      This message was generated by the ESG-NCAR Portal (version: 2.0.6-20120724-160741)
      http://www.earthsystemgrid.org/

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

                Created:
                Updated:
                Resolved: