java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi all, i'm trying to "Casify" CA Clarity application. I've configured web.xml under <clarity-root>\webroot\WEB-INF with the follow filters: <filter> <filter-name>CAS Authentication Filter</filter-name> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class> <init-param> <param-name>casServerLoginUrl</param-name> <param-value>https://<cas_server>/cas/login</param-value> </init-param> <init-param> <param-name>service</param-name> <param-value>http://<clarity_server>:80/niku/sso.jsp</param-value> </init-param> <init-param> <param-name>serverName</param-name> <param-value>http://<clarity_server>:80</param-value> </init-param> <init-param> <param-name>artifactParameterName</param-name> <param-value>ticket</param-value> </init-param> </filter> <filter> <filter-name>CAS Validation Filter</filter-name> <filter-class>org.jasig.cas.client.validation.Cas10TicketValidationFilter</filter-class> <init-param> <param-name>casServerUrlPrefix</param-name> <param-value>https://<cas_server/cas</param-value> </init-param> <init-param> <param-name>serverName</param-name> <param-value>http://<clarity_server>:80</param-value> </init-param> <init-param> <param-name>redirectAfterValidation</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>useSession</param-name> <param-value>true</param-value> </init-param> </filter> <filter> <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name> <filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class> </filter> <filter> <description>GZip Content Compression Filter</description> <display-name>GZip Filter</display-name> <filter-name>GZipFilter</filter-name> <filter-class> com.niku.union.web.filter.GZIPResponseFilter </filter-class> </filter> <filter-mapping> <filter-name>CAS Authentication Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>CAS Validation Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> Then when i try to restart the app server, appear that error: - The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\\HEPYCA\\niku\\clarity\\bin;C:\oracle\product\10.2.0\client_2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\HEPYCA\Java\jdk1.5.0_11\bin;C:\HEPYCA\niku\clarity\bin - Initializing Coyote HTTP/1.1 on http-80 - Initialization processed in 1203 ms - Starting service Catalina - Starting Servlet Engine: Apache Tomcat/5.5.17 - XML validation disabled - Exception starting filter CAS Validation Filter java.lang.IllegalArgumentException: casServerUrlPrefix cannot be null. at org.jasig.cas.client.util.CommonUtils.assertNotNull(CommonUtils.java:42) at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.<init>(AbstractUrlBasedTicketValidator.java:53) at org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator.<init>(AbstractCasProtocolUrlBasedTicketValidator.java:24) at org.jasig.cas.client.validation.Cas10TicketValidator.<init>(Cas10TicketValidator.java:22) at org.jasig.cas.client.validation.Cas10TicketValidationFilter.getTicketValidator(Cas10TicketValidationFilter.java:23) at org.jasig.cas.client.validation.AbstractTicketValidationFilter.initInternal(AbstractTicketValidationFilter.java:67) at org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4193) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) 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:585) at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238) at java.lang.Thread.run(Thread.java:595) ERROR 2011-01-24 12:44:56,292 [WrapperStartStopAppMain] [localhost].[/niku] Exception starting filter CAS Validation Filter java.lang.IllegalArgumentException: casServerUrlPrefix cannot be null. at org.jasig.cas.client.util.CommonUtils.assertNotNull(CommonUtils.java:42) at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.<init>(AbstractUrlBasedTicketValidator.java:53) at org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator.<init>(AbstractCasProtocolUrlBasedTicketValidator.java:24) at org.jasig.cas.client.validation.Cas10TicketValidator.<init>(Cas10TicketValidator.java:22) at org.jasig.cas.client.validation.Cas10TicketValidationFilter.getTicketValidator(Cas10TicketValidationFilter.java:23) at org.jasig.cas.client.validation.AbstractTicketValidationFilter.initInternal(AbstractTicketValidationFilter.java:67) at org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4193) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) 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:585) at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238) at java.lang.Thread.run(Thread.java:595) - Error filterStart ERROR 2011-01-24 12:44:56,323 [WrapperStartStopAppMain] core.StandardContext Error filterStart - Context [/niku] startup failed due to previous errors ERROR 2011-01-24 12:44:56,323 [WrapperStartStopAppMain] core.StandardContext Context [/niku] startup failed due to previous errors Is my filter configured correctly? Any help will be highly appreciated Thanks Tomeu.
    via by Tomeu Ramis,
  • Hi all, i'm trying to "Casify" CA Clarity application. I've configured web.xml under <clarity-root>\webroot\WEB-INF with the follow filters: <filter> <filter-name>CAS Authentication Filter</filter-name> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class> <init-param> <param-name>casServerLoginUrl</param-name> <param-value>https://<cas_server>/cas/login</param-value> </init-param> <init-param> <param-name>service</param-name> <param-value>http://<clarity_server>:80/niku/sso.jsp</param-value> </init-param> <init-param> <param-name>serverName</param-name> <param-value>http://<clarity_server>:80</param-value> </init-param> <init-param> <param-name>artifactParameterName</param-name> <param-value>ticket</param-value> </init-param> </filter> <filter> <filter-name>CAS Validation Filter</filter-name> <filter-class>org.jasig.cas.client.validation.Cas10TicketValidationFilter</filter-class> <init-param> <param-name>casServerUrlPrefix</param-name> <param-value>https://<cas_server/cas</param-value> </init-param> <init-param> <param-name>serverName</param-name> <param-value>http://<clarity_server>:80</param-value> </init-param> <init-param> <param-name>redirectAfterValidation</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>useSession</param-name> <param-value>true</param-value> </init-param> </filter> <filter> <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name> <filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class> </filter> <filter> <description>GZip Content Compression Filter</description> <display-name>GZip Filter</display-name> <filter-name>GZipFilter</filter-name> <filter-class> com.niku.union.web.filter.GZIPResponseFilter </filter-class> </filter> <filter-mapping> <filter-name>CAS Authentication Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>CAS Validation Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> Then when i try to restart the app server, appear that error: - The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\\HEPYCA\\niku\\clarity\\bin;C:\oracle\product\10.2.0\client_2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\HEPYCA\Java\jdk1.5.0_11\bin;C:\HEPYCA\niku\clarity\bin - Initializing Coyote HTTP/1.1 on http-80 - Initialization processed in 1203 ms - Starting service Catalina - Starting Servlet Engine: Apache Tomcat/5.5.17 - XML validation disabled - Exception starting filter CAS Validation Filter java.lang.IllegalArgumentException: casServerUrlPrefix cannot be null. at org.jasig.cas.client.util.CommonUtils.assertNotNull(CommonUtils.java:42) at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.<init>(AbstractUrlBasedTicketValidator.java:53) at org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator.<init>(AbstractCasProtocolUrlBasedTicketValidator.java:24) at org.jasig.cas.client.validation.Cas10TicketValidator.<init>(Cas10TicketValidator.java:22) at org.jasig.cas.client.validation.Cas10TicketValidationFilter.getTicketValidator(Cas10TicketValidationFilter.java:23) at org.jasig.cas.client.validation.AbstractTicketValidationFilter.initInternal(AbstractTicketValidationFilter.java:67) at org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4193) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) 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:585) at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238) at java.lang.Thread.run(Thread.java:595) ERROR 2011-01-24 12:44:56,292 [WrapperStartStopAppMain] [localhost].[/niku] Exception starting filter CAS Validation Filter java.lang.IllegalArgumentException: casServerUrlPrefix cannot be null. at org.jasig.cas.client.util.CommonUtils.assertNotNull(CommonUtils.java:42) at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.<init>(AbstractUrlBasedTicketValidator.java:53) at org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator.<init>(AbstractCasProtocolUrlBasedTicketValidator.java:24) at org.jasig.cas.client.validation.Cas10TicketValidator.<init>(Cas10TicketValidator.java:22) at org.jasig.cas.client.validation.Cas10TicketValidationFilter.getTicketValidator(Cas10TicketValidationFilter.java:23) at org.jasig.cas.client.validation.AbstractTicketValidationFilter.initInternal(AbstractTicketValidationFilter.java:67) at org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4193) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) 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:585) at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238) at java.lang.Thread.run(Thread.java:595) - Error filterStart ERROR 2011-01-24 12:44:56,323 [WrapperStartStopAppMain] core.StandardContext Error filterStart - Context [/niku] startup failed due to previous errors ERROR 2011-01-24 12:44:56,323 [WrapperStartStopAppMain] core.StandardContext Context [/niku] startup failed due to previous errors Is my filter configured correctly? Any help will be highly appreciated Thanks Tomeu.
    via by Tomeu Ramis,
  • I attempted to configure the CAS Client via Spring as documented here: http://www.ja-sig.org/wiki/display/CASC/Configuring+the+JA-SIG+CAS+Client+for+Java+using+Spring I'm using the instructions for using Cas20ProxyReceivingTicketValidationFilter/Cas20ServiceTicketValidator (the top one in that section). When I try to start Confluence, it goes through almost the entire bootup process but fails at the end with the exception shown below. In my brief glance at the code, it seems the problem is in Cas20ProxyReceivingTicketValidationFilter.getTicketValidator. It doesn't seem to check for the ticketValidator that was supposed to be created in the Spring configuration and instead tries to create a new Cas20ServiceTicketValidator object, but doesn't have a casServerUrlPrefix to pass to it. I'm attaching my Spring configuration file. Thanks! Justin SEVERE: Exception starting filter CasValidationFilter java.lang.IllegalArgumentException: casServerUrlPrefix cannot be null. at org.jasig.cas.client.util.CommonUtils.assertNotNull(CommonUtils.java:55) at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.<init>(AbstractUrlBasedTicketValidator.java:58) at org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator.<init>(AbstractCasProtocolUrlBasedTicketValidator.java:24) at org.jasig.cas.client.validation.Cas20ServiceTicketValidator.<init>(Cas20ServiceTicketValidator.java:51) at org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter.getTicketValidator(Cas20ProxyReceivingTicketValidationFilter.java:86) at org.jasig.cas.client.validation.AbstractTicketValidationFilter.initInternal(AbstractTicketValidationFilter.java:70) at org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter.initInternal(Cas20ProxyReceivingTicketValidationFilter.java:55) at org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:62) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    via by Justin Sabelko,
  • I attempted to configure the CAS Client via Spring as documented here: http://www.ja-sig.org/wiki/display/CASC/Configuring+the+JA-SIG+CAS+Client+for+Java+using+Spring I'm using the instructions for using Cas20ProxyReceivingTicketValidationFilter/Cas20ServiceTicketValidator (the top one in that section). When I try to start Confluence, it goes through almost the entire bootup process but fails at the end with the exception shown below. In my brief glance at the code, it seems the problem is in Cas20ProxyReceivingTicketValidationFilter.getTicketValidator. It doesn't seem to check for the ticketValidator that was supposed to be created in the Spring configuration and instead tries to create a new Cas20ServiceTicketValidator object, but doesn't have a casServerUrlPrefix to pass to it. I'm attaching my Spring configuration file. Thanks! Justin SEVERE: Exception starting filter CasValidationFilter java.lang.IllegalArgumentException: casServerUrlPrefix cannot be null. at org.jasig.cas.client.util.CommonUtils.assertNotNull(CommonUtils.java:55) at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.<init>(AbstractUrlBasedTicketValidator.java:58) at org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator.<init>(AbstractCasProtocolUrlBasedTicketValidator.java:24) at org.jasig.cas.client.validation.Cas20ServiceTicketValidator.<init>(Cas20ServiceTicketValidator.java:51) at org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter.getTicketValidator(Cas20ProxyReceivingTicketValidationFilter.java:86) at org.jasig.cas.client.validation.AbstractTicketValidationFilter.initInternal(AbstractTicketValidationFilter.java:70) at org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter.initInternal(Cas20ProxyReceivingTicketValidationFilter.java:55) at org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:62) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    via by Justin Sabelko,
  • I"m attempting to add CAS authentication & validation filters to a web.xml of a demo app for a university client using CAS. Found cas-client-3.1.1 but my attempts to deploy it have failed. Tomcat tries to load the auth filter and says "casServerLogin cannot be null" but I have one in there! Looking over the code, its failing in the AuthenticationFilter constructor (line #67 on stack). When I insert the ValidationFilter (Cas20ProxyReceivingTicketValidationFilter to be precise) it says that casServerUrlPrefix cannot be null. But its there too. I don't know why its not picking up the parameters for these filters. I hunted down and studied the examples. Still trying to figure out how to integrate the source code with my project and debug it myself (I'm a bit rusty with Eclipse these days.) Here's an excerpt from my web.xml where it declares the filter (and cases the failure): <filter> <filter-name>CAS Authentication Filter</filter-name> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class> <init-param> <param-name>casServerLoginUrl</param-name> <param-value>https://theschool.edu/cas/login</param-value> <param-name>serverName</param-name> <param-value>http://mydevbox.ingeniux.com:8080</param-value> </init-param> </filter> and the Tomcat stack portion: [2008-03-21 15:28:44,006] [DEBUG] Starting filter 'CAS Authentication Filter' [2008-03-21 15:28:44,022] [ERROR] Exception starting filter CAS Authentication Filter java.lang.IllegalArgumentException: casServerLoginUrl cannot be null. at org.jasig.cas.client.util.CommonUtils.assertNotNull(CommonUtils.java:42) at org.jasig.cas.client.authentication.AuthenticationFilter.init(AuthenticationFilter.java:67) at org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:58) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)
    via by Rick Gordon,
  • I"m attempting to add CAS authentication & validation filters to a web.xml of a demo app for a university client using CAS. Found cas-client-3.1.1 but my attempts to deploy it have failed. Tomcat tries to load the auth filter and says "casServerLogin cannot be null" but I have one in there! Looking over the code, its failing in the AuthenticationFilter constructor (line #67 on stack). When I insert the ValidationFilter (Cas20ProxyReceivingTicketValidationFilter to be precise) it says that casServerUrlPrefix cannot be null. But its there too. I don't know why its not picking up the parameters for these filters. I hunted down and studied the examples. Still trying to figure out how to integrate the source code with my project and debug it myself (I'm a bit rusty with Eclipse these days.) Here's an excerpt from my web.xml where it declares the filter (and cases the failure): <filter> <filter-name>CAS Authentication Filter</filter-name> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class> <init-param> <param-name>casServerLoginUrl</param-name> <param-value>https://theschool.edu/cas/login</param-value> <param-name>serverName</param-name> <param-value>http://mydevbox.ingeniux.com:8080</param-value> </init-param> </filter> and the Tomcat stack portion: [2008-03-21 15:28:44,006] [DEBUG] Starting filter 'CAS Authentication Filter' [2008-03-21 15:28:44,022] [ERROR] Exception starting filter CAS Authentication Filter java.lang.IllegalArgumentException: casServerLoginUrl cannot be null. at org.jasig.cas.client.util.CommonUtils.assertNotNull(CommonUtils.java:42) at org.jasig.cas.client.authentication.AuthenticationFilter.init(AuthenticationFilter.java:67) at org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:58) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)
    via by Rick Gordon,
  • Grails 2.5.4 Spring Security CAS not working
    via Stack Overflow by YAT
    ,
  • Spring Boot Security upgrade breaks CAS
    via Stack Overflow by modorono
    ,
    • java.lang.IllegalArgumentException: casServerUrlPrefix cannot be null. at org.jasig.cas.client.util.CommonUtils.assertNotNull(CommonUtils.java:42) at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.<init>(AbstractUrlBasedTicketValidator.java:53) at org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator.<init>(AbstractCasProtocolUrlBasedTicketValidator.java:24) at org.jasig.cas.client.validation.Cas10TicketValidator.<init>(Cas10TicketValidator.java:22) at org.jasig.cas.client.validation.Cas10TicketValidationFilter.getTicketValidator(Cas10TicketValidationFilter.java:23) at org.jasig.cas.client.validation.AbstractTicketValidationFilter.initInternal(AbstractTicketValidationFilter.java:67) at org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4193) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) 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:585) at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238) at java.lang.Thread.run(Thread.java:595)
    No Bugmate found.