Incidentally and more strategically for Inspektr, it might be worth revisiting the assertions to make unexpected inputs to the audit trail logging not induce failure in the functionality being logged.
Captured thought to issue #16 in the Inspektr project. https://github.com/dima767/inspektr/issues/16 On Mon, Feb 25, 2013 at 10:50 AM, Andrew Petro <[email protected]> wrote: > Hi, > > Oh dear. These things do tend to happily work well for months and months > until they don't. > > Ok. The Granted bit is a good sign. However, that happens when the end > user interacts with /cas/login . The failure you're seeing happens when > your application interacts with /cas/proxyValidate to validate a ticket. > There should be corresponding audit log entries for the ticket validation > attempt. > > Except there won't be, given that stack trace you've posted. It looks > like the audit trail system itself is failing, for lack of a > "resourceOperatedOn" to log. > > What version of Inspektr are you using? For that matter, what version of > CAS are you using? You can determine the versions of both of these by > looking at the .jar files in /WEB-INF/lib -- say, cas-server-core for the > CAS version and something inspektr for the Inspektr version. > > This issue sounds familiar to me. I think something like this came up > before and led to better diagnostics in the latest Inspektr release. > > https://github.com/dima767/inspektr/issues/13 > > > https://github.com/dima767/inspektr/commit/a7c9187fc59db572478929508e0f90bb2ec12da6 > > If you're on a back version, you might try bumping up to the 1.0.7 version > and see if it helps or at least you get better errors in the log. > > http://mvnrepository.com/artifact/com.github.inspektr/inspektr > > Kind regards, > > Andrew > > > > > On Mon, Feb 25, 2013 at 10:10 AM, E.LT <[email protected]> wrote: > >> Hello, >> >> Thank you for your answer. >> >> Unfortunatly, i don't know how to exactly make the changes you're asking. >> >> I don't know why it asks for a PGT. When i'm having this error, i can >> find (i've put debug mode for logs) that i'm getting a Service Ticket >> >> " Granted service ticket [ST-744-DA4yHAXUv6a2xxMJgpdOr9-cas] for service [ >> http://ent2.xxx.fr/Login] for user [xxx]" >> >> Yet, it still displays the HTTP 500 error. >> >> On the catalina.out, i do have a trace : >> >> "25 févr. 2013 16:09:55 org.apache.catalina.core.StandardWrapperValve >> invoke >> GRAVE: "Servlet.service()" pour la servlet cas a généré une exception >> java.lang.IllegalArgumentException: resourceOperatedUpon cannot be null >> at >> com.github.inspektr.audit.AuditActionContext.assertNotNull(AuditActionContext.java:81) >> at >> com.github.inspektr.audit.AuditActionContext.<init>(AuditActionContext.java:64) >> at >> com.github.inspektr.audit.AuditTrailManagementAspect.executeAuditCode(AuditTrailManagementAspect.java:148) >> at >> com.github.inspektr.audit.AuditTrailManagementAspect.handleAuditTrail(AuditTrailManagementAspect.java:139) >> at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) >> 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.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) >> at >> org.perf4j.aop.AbstractTimingAspect$1.proceed(AbstractTimingAspect.java:47) >> at >> org.perf4j.aop.AgnosticTimingAspect.runProfiledMethod(AgnosticTimingAspect.java:44) >> at >> org.perf4j.aop.AbstractTimingAspect.doPerfLogging(AbstractTimingAspect.java:45) >> at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) >> 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 $Proxy44.delegateTicketGrantingTicket(Unknown Source) >> at >> org.jasig.cas.web.ServiceValidateController.handleRequestInternal(ServiceValidateController.java:127) >> 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:790) >> at >> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) >> at >> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) >> 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.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody2(SafeDispatcherServlet.java:115) >> at >> org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody3$advice(SafeDispatcherServlet.java:44) >> at >> org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:1) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at >> com.github.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:63) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at >> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) >> at >> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >> 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 >> com.googlecode.psiprobe.Tomcat60AgentValve.invoke(Tomcat60AgentValve.java:30) >> 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:859) >> 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:662) >> " >> >> >> I really don't get it... I'm panicking, 400 users are calling saying >> there is an error. And i can't just simply tell them to try again. >> >> 1) I don't know how to do that ... I found some examples in JASIG cas >> wiki saying to test with "Foo" app. But i get the "you're not authorized to >> use this application on CAS" >> >> 2) I don't know why, or where this is configured. This Uportal + Cas have >> been working for 2 years. >> >> 3)crank ? >> >> >> Thank you again for your time. >> -- >> 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
