Announcement Announcement Module
Collapse
No announcement yet.
Exception explanation Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception explanation

    I'm converting an database based authentication system to acegi and I'm getting the following exception when attempting initial access to a secured resource. I note that it is a debug level statement, so is this to be ignored?
    Code:
    [2004-09-13 15:02:07,516] DEBUG (net.sf.acegisecurity.ui.AbstractIntegrationFilter doFilter.164)  - Authentication not added to ContextHolder (could not extract an authentication object from the container which is an instance of Authentication)
     [2004-09-13 15:02:07,516] DEBUG (net.sf.acegisecurity.intercept.web.PathBasedFilterInvocationDefinitionMap lookupAttributes.112)  - Converted URL to lowercase, from: 'com.ibm.ws.webcontainer.srt.SRTServletRequest@2388f76f'; to: '/secure/test.jsp'
     [2004-09-13 15:02:07,516] DEBUG (net.sf.acegisecurity.intercept.web.PathBasedFilterInvocationDefinitionMap lookupAttributes.123)  - Candidate is: '/secure/test.jsp'; pattern is /secure/**; matched=true
     [2004-09-13 15:02:07,516] DEBUG (net.sf.acegisecurity.intercept.AbstractSecurityInterceptor interceptor.273)  - Secure object: FilterInvocation: URL: /secure/test.jsp; ConfigAttributes: [ROLE_admin]
     [2004-09-13 15:02:07,516] DEBUG (net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter doFilter.191)  - Authentication failed - adding target URL to Session: http://localhost:9080/secure/test.jsp
     net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid SecureContext was not provided in the RequestContext
    	at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.interceptor(AbstractSecurityInterceptor.java:280)
    	at net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:78)
    	at net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:165)
    	at net.sf.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:88)
    	at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
    	at net.sf.acegisecurity.ui.AbstractIntegrationFilter.doFilter(AbstractIntegrationFilter.java:170)
    	at net.sf.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:88)
    	at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
    	at net.sf.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:368)
    	at net.sf.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:88)
    	at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
    	at gov.usps.team9243.utils.logging.LoggingFilter.doFilter(LoggingFilter.java:80)
    	at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
    	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:939)
    	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
    	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
    	at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
    	at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
    	at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    	at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    	at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    	at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    	at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
    	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)
    	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    [2004-09-13 15:02:07,532] DEBUG (net.sf.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint commence.176)  - Redirecting to: http://localhost:9080/acegilogin.jsp
     [2004-09-13 15:02:07,532] DEBUG (net.sf.acegisecurity.ui.AbstractIntegrationFilter doFilter.193)  - ContextHolder does not contain any authentication information
     
    [9/13/04 15:02:07:563 CDT] 5b0db745 WebGroup      I SRVE0180I: [Samsak Carrier] [/] [Servlet.LOG]: localhost tried to access /acegilogin.jsp on Mon Sep 13 15:02:07 CDT 2004
    [2004-09-13 15:02:07,563] DEBUG (net.sf.acegisecurity.ui.AbstractIntegrationFilter doFilter.164)  - Authentication not added to ContextHolder (could not extract an authentication object from the container which is an instance of Authentication)
     [2004-09-13 15:02:07,563] DEBUG (net.sf.acegisecurity.intercept.web.PathBasedFilterInvocationDefinitionMap lookupAttributes.112)  - Converted URL to lowercase, from: 'com.ibm.ws.webcontainer.srt.SRTServletRequest@1abb3760'; to: '/acegilogin.jsp'
     [2004-09-13 15:02:07,563] DEBUG (net.sf.acegisecurity.intercept.web.PathBasedFilterInvocationDefinitionMap lookupAttributes.123)  - Candidate is: '/acegilogin.jsp'; pattern is /secure/**; matched=false
     [2004-09-13 15:02:07,563] DEBUG (net.sf.acegisecurity.intercept.AbstractSecurityInterceptor interceptor.346)  - Public object - authentication not attempted

  • #2
    This exception can be safely ignored. It's quite normal, as the authentication process has to start at some point. This is the exception that causes authentication to commence.

    Comment

    Working...
    X