java.lang.IllegalArgumentException: null source

Apereo Issues | Gregory Szorc | 1 decade ago
  1. 0

    In the default install of CAS 3.0.3, when /WEB-INF/auditTrailContext.xml is placed in <contextConfigLocation> in web.xml, the CentralAuthenticationServiceAfterReturningAdvice invokation will throw an unhandled exception when validate or serviceValidate is accessed with a valid service ticket. Before CentralAuthenticationServiceAfterReturningAdvice is called upon access of validate or serviceValidate, the existing serviceTicket is destroyed. When the ticketRegistry is queried for this ticket for a second time, the return is NULL. A ticketEvent is then created with a NULL ticket, causing an exception. The following is the DEBUG output, complete with stack dump of the problem: 2006-01-25 22:53:54,101 DEBUG [org.springframework.web.servlet.DispatcherServlet] - Testing handler map [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping@326074] in DispatcherServlet with name 'cas' 2006-01-25 22:53:54,101 DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Looking up handler for [/validate] 2006-01-25 22:53:54,101 DEBUG [org.springframework.web.servlet.DispatcherServlet] - Testing handler adapter [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@15a64e6] 2006-01-25 22:53:54,101 DEBUG [org.springframework.web.servlet.DispatcherServlet] - Last-Modified value for [/cas-dev/validate] is [-1] 2006-01-25 22:53:54,101 DEBUG [org.springframework.web.servlet.DispatcherServlet] - DispatcherServlet with name 'cas' received request for [/cas-dev/validate] 2006-01-25 22:53:54,101 DEBUG [org.springframework.web.servlet.DispatcherServlet] - Testing handler adapter [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@15a64e6] 2006-01-25 22:53:54,101 DEBUG [org.springframework.beans.CachedIntrospectionResults] - Using cached introspection results for class [org.jasig.cas.validation.Cas10ProtocolValidationSpecification] 2006-01-25 22:53:54,102 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Attempting to retrieve ticket [ST-2-4wgfg7SofXD2AZjWaiFp] 2006-01-25 22:53:54,102 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Ticket [ST-2-4wgfg7SofXD2AZjWaiFp] found in registry. 2006-01-25 22:53:54,102 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Removing ticket [ST-2-4wgfg7SofXD2AZjWaiFp] from registry 2006-01-25 22:53:54,106 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Attempting to retrieve ticket [ST-2-4wgfg7SofXD2AZjWaiFp] 2006-01-25 22:53:54,109 ERROR [org.springframework.web.servlet.DispatcherServlet] - Could not complete request java.lang.IllegalArgumentException: null source at java.util.EventObject.<init>(EventObject.java:38) at org.springframework.context.ApplicationEvent.<init>(ApplicationEvent.java:38) at org.jasig.cas.event.AbstractEvent.<init>(AbstractEvent.java:32) at org.jasig.cas.event.TicketEvent.<init>(TicketEvent.java:82) at org.jasig.cas.event.TicketEvent.<init>(TicketEvent.java:55) at org.jasig.cas.event.advice.CentralAuthenticationServiceAfterReturningAdvice.afterReturning(CentralAuthenticationServiceAfterReturningAdvice.java:68) at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:52) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy21.validateServiceTicket(Unknown Source) at org.jasig.cas.web.ServiceValidateController.handleRequestInternal(ServiceValidateController.java:142) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)

    Apereo Issues | 1 decade ago | Gregory Szorc
    java.lang.IllegalArgumentException: null source
  2. 0

    In the default install of CAS 3.0.3, when /WEB-INF/auditTrailContext.xml is placed in <contextConfigLocation> in web.xml, the CentralAuthenticationServiceAfterReturningAdvice invokation will throw an unhandled exception when validate or serviceValidate is accessed with a valid service ticket. Before CentralAuthenticationServiceAfterReturningAdvice is called upon access of validate or serviceValidate, the existing serviceTicket is destroyed. When the ticketRegistry is queried for this ticket for a second time, the return is NULL. A ticketEvent is then created with a NULL ticket, causing an exception. The following is the DEBUG output, complete with stack dump of the problem: 2006-01-25 22:53:54,101 DEBUG [org.springframework.web.servlet.DispatcherServlet] - Testing handler map [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping@326074] in DispatcherServlet with name 'cas' 2006-01-25 22:53:54,101 DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Looking up handler for [/validate] 2006-01-25 22:53:54,101 DEBUG [org.springframework.web.servlet.DispatcherServlet] - Testing handler adapter [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@15a64e6] 2006-01-25 22:53:54,101 DEBUG [org.springframework.web.servlet.DispatcherServlet] - Last-Modified value for [/cas-dev/validate] is [-1] 2006-01-25 22:53:54,101 DEBUG [org.springframework.web.servlet.DispatcherServlet] - DispatcherServlet with name 'cas' received request for [/cas-dev/validate] 2006-01-25 22:53:54,101 DEBUG [org.springframework.web.servlet.DispatcherServlet] - Testing handler adapter [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@15a64e6] 2006-01-25 22:53:54,101 DEBUG [org.springframework.beans.CachedIntrospectionResults] - Using cached introspection results for class [org.jasig.cas.validation.Cas10ProtocolValidationSpecification] 2006-01-25 22:53:54,102 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Attempting to retrieve ticket [ST-2-4wgfg7SofXD2AZjWaiFp] 2006-01-25 22:53:54,102 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Ticket [ST-2-4wgfg7SofXD2AZjWaiFp] found in registry. 2006-01-25 22:53:54,102 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Removing ticket [ST-2-4wgfg7SofXD2AZjWaiFp] from registry 2006-01-25 22:53:54,106 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Attempting to retrieve ticket [ST-2-4wgfg7SofXD2AZjWaiFp] 2006-01-25 22:53:54,109 ERROR [org.springframework.web.servlet.DispatcherServlet] - Could not complete request java.lang.IllegalArgumentException: null source at java.util.EventObject.<init>(EventObject.java:38) at org.springframework.context.ApplicationEvent.<init>(ApplicationEvent.java:38) at org.jasig.cas.event.AbstractEvent.<init>(AbstractEvent.java:32) at org.jasig.cas.event.TicketEvent.<init>(TicketEvent.java:82) at org.jasig.cas.event.TicketEvent.<init>(TicketEvent.java:55) at org.jasig.cas.event.advice.CentralAuthenticationServiceAfterReturningAdvice.afterReturning(CentralAuthenticationServiceAfterReturningAdvice.java:68) at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:52) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy21.validateServiceTicket(Unknown Source) at org.jasig.cas.web.ServiceValidateController.handleRequestInternal(ServiceValidateController.java:142) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)

    Apereo Issues | 1 decade ago | Gregory Szorc
    java.lang.IllegalArgumentException: null source
  3. 0

    filter handling on WildFly

    GitHub | 2 years ago | wkrix
    java.lang.IllegalArgumentException: null source
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When trying to access resources from Spring MVC (named custom DELETEs/PUTs above) like this: DELETE http://172.16.56.1:8080/service/entity/removeBySubInstanceId?subInstanceId=ec81d9fc48f328052fc59e1c6a34ea2f A NPE in AbstractRepositoryRestController is thrown. {code:bash} OGBACK:12:02:59.986 [tomcat-http--5] ERROR o.s.d.r.w.AbstractRepositoryRestController - null source java.lang.IllegalArgumentException: null source at java.util.EventObject.<init>(EventObject.java:56) ~[na:1.7.0_45] at org.springframework.context.ApplicationEvent.<init>(ApplicationEvent.java:42) ~[spring-context-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.data.rest.core.event.RepositoryEvent.<init>(RepositoryEvent.java:15) ~[spring-data-rest-core-2.2.0.BUILD-SNAPSHOT.jar:na] at org.springframework.data.rest.core.event.BeforeDeleteEvent.<init>(BeforeDeleteEvent.java:13) ~[spring-data-rest-core-2.2.0.BUILD-SNAPSHOT.jar:na] at org.springframework.data.rest.webmvc.RepositoryEntityController.deleteItemResource(RepositoryEntityController.java:356) ~[spring-data-rest-webmvc-2.2.0.BUILD-SNAPSHOT.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_45] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_45] at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215) ~[spring-web-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132) ~[spring-web-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) ~[spring-webmvc-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:749) ~[spring-webmvc-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:690) ~[spring-webmvc-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83) ~[spring-webmvc-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945) ~[spring-webmvc-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876) ~[spring-webmvc-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961) [spring-webmvc-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doDelete(FrameworkServlet.java:885) [spring-webmvc-4.0.2.RELEASE.jar:4.0.2.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:653) [servlet-api.jar:na] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837) [spring-webmvc-4.0.2.RELEASE.jar:4.0.2.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) [servlet-api.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) [catalina.jar:7.0.42.A] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.42.A] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] {code} Same behaviour applies for custom PUT operations afaik.

    Spring JIRA | 2 years ago | Johannes Hiemer
    java.lang.IllegalArgumentException: null source

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      null source

      at java.util.EventObject.<init>()
    2. Java RT
      EventObject.<init>
      1. java.util.EventObject.<init>(EventObject.java:38)
      1 frame
    3. Spring Context
      ApplicationEvent.<init>
      1. org.springframework.context.ApplicationEvent.<init>(ApplicationEvent.java:38)
      1 frame
    4. org.jasig.cas
      CentralAuthenticationServiceAfterReturningAdvice.afterReturning
      1. org.jasig.cas.event.AbstractEvent.<init>(AbstractEvent.java:32)
      2. org.jasig.cas.event.TicketEvent.<init>(TicketEvent.java:82)
      3. org.jasig.cas.event.TicketEvent.<init>(TicketEvent.java:55)
      4. org.jasig.cas.event.advice.CentralAuthenticationServiceAfterReturningAdvice.afterReturning(CentralAuthenticationServiceAfterReturningAdvice.java:68)
      4 frames
    5. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:52)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
      3. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
      3 frames
    6. Unknown
      $Proxy21.validateServiceTicket
      1. $Proxy21.validateServiceTicket(Unknown Source)
      1 frame
    7. Jasig CAS Core
      ServiceValidateController.handleRequestInternal
      1. org.jasig.cas.web.ServiceValidateController.handleRequestInternal(ServiceValidateController.java:142)
      1 frame
    8. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
      2. org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
      3. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717)
      4. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
      5. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
      6. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
      6 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      2 frames
    10. Jasig CAS Core
      SafeDispatcherServlet.service
      1. org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115)
      1 frame
    11. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      8 frames
    12. Embedded GlassFish Web
      SocketConnection.runIt
      1. org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
      2. org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
      3. org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
      4. org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
      5. org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
      5 frames
    13. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      1 frame
    14. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame