Hi, Which CAS client version do you use? I'm thinking of this: https://github.com/Jasig/java-cas-client/pull/126
Thanks. Best regards, Jérôme 2015-08-12 16:17 GMT+02:00 Christian Brunotte <c...@lathspell.de>: > Hallo > > I'm using the following filters in a Glassfish 4.1 + JavaEE7 application > and > sometimes, apparently right after I redeploy/update the application I see > the > following exception in my server.log. Any idea what may cause this? > > After killing all cookies and reloading the page in the browser it usually > works again. > > [2015-08-12T15:54:28.726+0200] [glassfish 4.1] [WARNING] [] > [javax.enterprise.web] [tid: _ThreadID=28 _ThreadName=http-listener-1(4)] > [timeMillis: 1439387668726] [levelValue: 900] [[ > StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces > Servlet threw exception > java.lang.UnsupportedOperationException > at java.util.AbstractList.add(AbstractList.java:148) > at java.util.AbstractList.add(AbstractList.java:108) > at > org.jasig.cas.client.util.URIBuilder.addParameter(URIBuilder.java:402) > at > org.jasig.cas.client.util.CommonUtils.constructServiceUrl(CommonUtils.java:310) > at > org.jasig.cas.client.util.AbstractCasFilter.constructServiceUrl(AbstractCasFilter.java:104) > at > org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:159) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) > at > org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:97) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160) > at > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673) > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174) > at > org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) > at > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) > at java.lang.Thread.run(Thread.java:745) > ]] > > $ cat src/main/webapp/WEB-INF/web.xml > <?xml version="1.0" encoding="UTF-8"?> > <web-app version="3.1" > xmlns="http://xmlns.jcp.org/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee > http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"> > > <!-- resource-ref: > res-ref-name: component dependency" relative to java:comp/env > lookup-name: "physical appserver resource" relative to the > appserver's global namespace > --> > <resource-ref> > <res-ref-name>cas/service</res-ref-name> > <res-type>java.lang.String</res-type> > <lookup-name>cas/service</lookup-name> > </resource-ref> > <resource-ref> > <res-ref-name>cas/serverName</res-ref-name> > <res-type>java.lang.String</res-type> > <lookup-name>cas/serverName</lookup-name> > </resource-ref> > <resource-ref> > <res-ref-name>cas/casServerLogoutUrl</res-ref-name> > <res-type>java.lang.String</res-type> > <lookup-name>cas/casServerLogoutUrl</lookup-name> > </resource-ref> > <resource-ref> > > <res-ref-name>cas/AuthenticationFilter/casServerLoginUrl</res-ref-name> > <res-type>java.lang.String</res-type> > > <lookup-name>cas/AuthenticationFilter/casServerLoginUrl</lookup-name> > </resource-ref> > <resource-ref> > <res-ref-name>cas/casServerUrlPrefix</res-ref-name> > <res-type>java.lang.String</res-type> > <lookup-name>cas/casServerUrlPrefix</lookup-name> > </resource-ref> > <resource-ref> > <!-- überschreibt context-param javax.faces.PROJECT_STAGE --> > <res-ref-name>jsf/ProjectStage</res-ref-name> > <res-type>java.lang.String</res-type> > <lookup-name>jsf/ProjectStage</lookup-name> > </resource-ref> > > <context-param> > <!-- Damit ich munter in den XHTML Dateien kommentieren kann. --> > <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name> > <param-value>true</param-value> > </context-param> > > <session-config> > <session-timeout>30</session-timeout> > <cookie-config> > <http-only>true</http-only> > <secure>true</secure> > </cookie-config> > <tracking-mode>COOKIE</tracking-mode> > </session-config> > > <filter> > <filter-name>CAS Single Sign Out Filter</filter-name> > > <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>CAS Single Sign Out Filter</filter-name> > <url-pattern>/secured/*</url-pattern> > </filter-mapping> > <filter> > <filter-name>CAS Authentication Filter</filter-name> > > <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>CAS Authentication Filter</filter-name> > <url-pattern>/secured/*</url-pattern> > </filter-mapping> > <filter> > <filter-name>CAS Validation Filter</filter-name> > > <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>CAS Validation Filter</filter-name> > <url-pattern>/secured/*</url-pattern> > </filter-mapping> > <filter> > <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name> > > <filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name> > <url-pattern>/secured/*</url-pattern> > </filter-mapping> > <listener> > > <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class> > </listener> > > <servlet> > <servlet-name>Faces Servlet</servlet-name> > <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>Faces Servlet</servlet-name> > <url-pattern>*.xhtml</url-pattern> > </servlet-mapping> > > <welcome-file-list> > <welcome-file>secured/index.xhtml</welcome-file> > </welcome-file-list> > <error-page> > <error-code>404</error-code> > <location>/secured/errors/not_found.xhtml</location> > </error-page> > <error-page> > <error-code>500</error-code> > <location>/secured/errors/internal.xhtml</location> > </error-page> > </web-app> > > > best regards, > > -christian- > > -- > You are currently subscribed to cas-user@lists.jasig.org as: > lel...@gmail.com > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user