Of course. :)

So, done. And that worked around that problem for now.
But now the Credentials object ends up empty by the time it gets to my 
AuthenticationHandler - again, *IF* I use 'request.getParameter(x)' within my 
RestletFrameworkServlet subclass.
And if I don't - everything works fine.
Here's the stack:

Jun 9, 2011 10:18:08 AM com.noelios.restlet.StatusFilter getStatus
SEVERE: Unhandled exception or error intercepted
java.lang.NullPointerException
                at 
org.jasig.cas.util.LdapUtils.getFilterWithValues_aroundBody0(LdapUtils.java:47)
                at 
org.jasig.cas.util.LdapUtils.getFilterWithValues_aroundBody1$advice(LdapUtils.java:44)
                at 
org.jasig.cas.util.LdapUtils.getFilterWithValues(LdapUtils.java:1)
                at 
org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler.authenticateUsernamePasswordInternal(FastBindLdapAuthenticationHandler.java:30)
                at 
org.jasig.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler.doAuthentication(AbstractUsernamePasswordAuthenticationHandler.java:58)
                at 
org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler.authenticate_aroundBody2(AbstractPreAndPostProcessingAuthenticationHandler.java:72)
                at 
org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler.authenticate_aroundBody3$advice(AbstractPreAndPostProcessingAuthenticationHandler.java:44)
                at 
org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler.authenticate(AbstractPreAndPostProcessingAuthenticationHandler.java:1)
                at 
org.jasig.cas.authentication.AuthenticationManagerImpl.authenticateAndObtainPrincipal(AuthenticationManagerImpl.java:78)
                at 
org.jasig.cas.authentication.AbstractAuthenticationManager.authenticate_aroundBody0(AbstractAuthenticationManager.java:41)
                at 
org.jasig.cas.authentication.AbstractAuthenticationManager.authenticate_aroundBody1$advice(AbstractAuthenticationManager.java:44)
                at 
org.jasig.cas.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:1)
                at 
org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket_aroundBody10(CentralAuthenticationServiceImpl.java:413)
                at 
org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket_aroundBody11$advice(CentralAuthenticationServiceImpl.java:44)
                at 
org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(CentralAuthenticationServiceImpl.java:1)
                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 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
                at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
                at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
                at 
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
                at 
org.perf4j.aop.AbstractTimingAspect$1.proceed(AbstractTimingAspect.java:47)
                at 
org.perf4j.aop.AgnosticTimingAspect.runProfiledMethod(AgnosticTimingAspect.java:53)
                at 
org.perf4j.aop.AbstractTimingAspect.doPerfLogging(AbstractTimingAspect.java:45)
                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 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
                at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
                at 
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
                at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
                at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
                at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
                at $Proxy21.createTicketGrantingTicket(Unknown Source)
                at 
org.jasig.cas.integration.restlet.TicketResource.acceptRepresentation(TicketResource.java:65)
                at org.restlet.resource.Resource.post(Resource.java:688)
                at org.restlet.resource.Resource.handlePost(Resource.java:537)
                at org.restlet.Finder.handle(Finder.java:357)
                at org.restlet.Filter.doHandle(Filter.java:150)
                at org.restlet.Filter.handle(Filter.java:195)
                at org.restlet.Router.handle(Router.java:504)
                at org.restlet.Filter.doHandle(Filter.java:150)
                at org.restlet.Filter.handle(Filter.java:195)
                at org.restlet.Filter.doHandle(Filter.java:150)
                at org.restlet.Filter.handle(Filter.java:195)
                at org.restlet.Filter.doHandle(Filter.java:150)
                at 
com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)
                at org.restlet.Filter.handle(Filter.java:195)
                at org.restlet.Filter.doHandle(Filter.java:150)
                at org.restlet.Filter.handle(Filter.java:195)
                at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)
                at 
com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)
                at org.restlet.Application.handle(Application.java:341)
                at 
com.noelios.restlet.ext.servlet.ServletConverter.service(ServletConverter.java:198)
                at 
com.noelios.restlet.ext.spring.RestletFrameworkServlet.doService(RestletFrameworkServlet.java:106)
                at 
com.truegames.cas.restlet.ext.spring.IgnitionRestletFrameworkServlet.doService(IgnitionRestletFrameworkServlet.java:27)
                at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
                at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)

From: Scott Battaglia [mailto:[email protected]]
Sent: Thursday, June 09, 2011 10:03 AM
To: [email protected]
Subject: Re: [cas-user] Causing CAS to make a REST call at each auth attempt

You can overwrite it with an empty XML file (i.e. one with just the minimal 
subset to be a Spring configuration file)

On Thu, Jun 9, 2011 at 10:59 AM, Eric Turley 
<[email protected]<mailto:[email protected]>> wrote:
I'm using the war overlay method.
Rather than build and then have to manually remove the file, do you know of a 
way to exclude that file?
Just a matter of convenience, of course.

-----Original Message-----
From: Marvin Addison 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Thursday, June 09, 2011 9:22 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: [cas-user] Causing CAS to make a REST call at each auth attempt
> Is there any workaround for this that I can do?

I believe simplest workaround is to disable Inspektr if you don't
want/need it.  I believe it's as simple as removing the following file
from your deployable:

cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/auditTrailContext.xml

M

--
You are currently subscribed to 
[email protected]<mailto:[email protected]> as: 
[email protected]<mailto:[email protected]>
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

--
You are currently subscribed to 
[email protected]<mailto:[email protected]> as: 
[email protected]<mailto:[email protected]>
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user


--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to