java.lang.IllegalArgumentException: casServerUrlPrefix cannot be null.

Apereo Issues | Justin Sabelko | 8 years ago
  1. 0

    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)

    Apereo Issues | 8 years ago | Justin Sabelko
    java.lang.IllegalArgumentException: casServerUrlPrefix cannot be null.
  2. 0

    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)

    Apereo Issues | 8 years ago | Justin Sabelko
    java.lang.IllegalArgumentException: casServerUrlPrefix cannot be null.
  3. 0

    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.

    Apereo Issues | 6 years ago | Tomeu Ramis
    java.lang.IllegalArgumentException: casServerUrlPrefix cannot be null.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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.

    Apereo Issues | 6 years ago | Tomeu Ramis
    java.lang.IllegalArgumentException: casServerUrlPrefix cannot be null.
  6. 0

    Configure a CAS with Spring (Boot) without web.xml

    Stack Overflow | 1 year ago | Obscur Moirage
    java.lang.IllegalArgumentException: serverName or service must be set.

    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

      casServerUrlPrefix cannot be null.

      at org.jasig.cas.client.util.CommonUtils.assertNotNull()
    2. Jasig CAS Client for Java - Core
      AbstractCasFilter.init
      1. org.jasig.cas.client.util.CommonUtils.assertNotNull(CommonUtils.java:55)
      2. org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.<init>(AbstractUrlBasedTicketValidator.java:58)
      3. org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator.<init>(AbstractCasProtocolUrlBasedTicketValidator.java:24)
      4. org.jasig.cas.client.validation.Cas20ServiceTicketValidator.<init>(Cas20ServiceTicketValidator.java:51)
      5. org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter.getTicketValidator(Cas20ProxyReceivingTicketValidationFilter.java:86)
      6. org.jasig.cas.client.validation.AbstractTicketValidationFilter.initInternal(AbstractTicketValidationFilter.java:70)
      7. org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter.initInternal(Cas20ProxyReceivingTicketValidationFilter.java:55)
      8. org.jasig.cas.client.util.AbstractCasFilter.init(AbstractCasFilter.java:62)
      8 frames
    3. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
      2. org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
      3. org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
      4. org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
      5. org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
      6. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      7. org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
      8. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      9. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      10. org.apache.catalina.core.StandardService.start(StandardService.java:516)
      11. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
      12. org.apache.catalina.startup.Catalina.start(Catalina.java:566)
      12 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    5. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      2 frames