Here's the stack trace

The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would not 
have initialized.
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'characterEncodingFilter' defined in ServletContext resource 
[/WEB-INF/spring-configuration/filters.xml]: Initial
ization of bean failed; nested exception is 
org.springframework.beans.TypeMismatchException: Failed to convert property 
value of type 'java.lang.String' to required type 'boolean' for property 'forceE
ncoding'; nested exception is java.lang.IllegalArgumentException: Invalid 
boolean value []
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
        at 
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
        at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
        at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
        at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:75)
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4772)
        at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:917)
        at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1701)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert 
property value of type 'java.lang.String' to required type 'boolean' for 
property 'forceEncoding'; nested exception is jav
a.lang.IllegalArgumentException: Invalid boolean value []
        at 
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:468)
        at 
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:494)
        at 
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:488)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1463)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1422)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        ... 25 more
Caused by: java.lang.IllegalArgumentException: Invalid boolean value []
        at 
org.springframework.beans.propertyeditors.CustomBooleanEditor.setAsText(CustomBooleanEditor.java:124)
        at 
org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:455)
        at 
org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:427)
        at 
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:181)
        at 
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:448)
        ... 31 more

​


________________________________
From: Jérôme LELEU <[email protected]>
Sent: Wednesday, August 5, 2015 12:36 AM
To: [email protected]
Subject: Re: [cas-user] [cas-announce] CAS v.4.0.3 is released

Hi,

There are default values for these placeholders so you shouldn't have any error 
(${propertyname:defaultvalue}). What's your error?

Thanks.
Best regards,
Jérôme


2015-08-05 6:13 GMT+02:00 Batni, Sourabh 
<[email protected]<mailto:[email protected]>>:


________________________________
From: Batni, Sourabh
Sent: Tuesday, August 4, 2015 2:28 PM
To: Misagh Moayyed; 
[email protected]<mailto:[email protected]>
Subject: RE: [cas-announce] CAS v.4.0.3 is released

Hi Misagh

After I updated the cas.version in pom.xml to 4.0.3 from 4.0.1 the war file 
failed to deploy on tomcat and I was getting errors relating to 
characterEncodingFilter in 
filters.xml(WEB-INF/spring-configuration/filters.xml) on further looking into 
the file and comparing it with the version which was working(4.0.1) it looks 
like it is failing to load  some properties (httprequest.web.encoding:UTF-8 and 
httprequest.web.encoding.force:true) in this file. Below are the 2 versions the 
first one is the one which has the problem (4.0.3) and the second one is from 
4.0.1.

I haven’t changed anything else and use the same script to build both of them,

<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:p="http://www.springframework.org/schema/p"; 
xmlns:aop="http://www.springframework.org/schema/aop";
       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd";>
    <bean id="characterEncodingFilter" 
class="org.springframework.web.filter.CharacterEncodingFilter"
          p:encoding="${httprequest.web.encoding:UTF-8}"
          p:forceEncoding="${httprequest.web.encoding.force:true}" />
</beans>



<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:p="http://www.springframework.org/schema/p"; 
xmlns:aop="http://www.springframework.org/schema/aop";
       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd";>
    <bean id="characterEncodingFilter" 
class="org.springframework.web.filter.CharacterEncodingFilter"
            p:encoding="UTF-8"
            p:forceEncoding="true" />
</beans>

I am not sure what is  going wrong with the build after I updated the 
cas.version ?


Thanks

Sourabh

From: 
[email protected]<mailto:[email protected]>
 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Misagh Moayyed
Sent: Friday, July 10, 2015 10:18 AM
To: [email protected]<mailto:[email protected]>
Subject: [cas-announce] CAS v.4.0.3 is released

CAS Community,

CAS version 4.0.3 [1] has been released and should shortly make its way into 
Maven central repositories, if not already. We encourage you to integrate this 
release into your own CAS maven overlay environment and provide feedback. 
Upgrading to this release from a 4.0.x version should be totally painless. You 
should find the full changelog at the linked provided herein.

A similar announcement will shortly be posted to the Apereo.org website as well.

Misagh

[1] https://github.com/Jasig/cas/releases/tag/v4.0.3



--



You are currently subscribed to 
[email protected]<mailto:[email protected]> as: 
[email protected]<mailto:[email protected]>

To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-announce

--
You are currently subscribed to 
[email protected]<mailto:[email protected]> as: 
[email protected]<mailto:[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

-- 
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

Reply via email to