Metadata Aggregator 0.9.0: "Error creating bean with name 'httpClientBuilder'

Steve Thorpe thorpe at mailbox.mcnc.org
Fri Feb 12 06:53:42 EST 2016


Hello Ian Young (and all),

I'm experimenting with the Metadata Aggregator 0.9.0 and am getting an 
"Error creating bean with name 'httpClientBuilder'".

If you have any pointers to help resolve this I would be grateful.... 
hopeing it is an easy fix.  Thanks!



Below I show output from using JAVA_HOME=/usr/java/jre1.7.0_80.  I also 
tried with JAVA_HOME=/usr/java/jre1.8.0_73 and had the same result.


[root at fedora20 aggregator-cli-0.9.0]# JAVA_HOME=/usr/java/jre1.7.0_80 
JMVOPTS=-Xmx512M ./mda.sh --verbose /home/thorpe/fim/mda/config3.xml 
main 2>&1 | tee /tmp/java7.output
2016-02-12 00:47:10,166 - DEBUG 
[net.shibboleth.metadata.cli.SimpleCommandLine:89] - Initializing Spring 
context with configuration file file:/home/thorpe/fim/mda/config3.xml
2016-02-12 00:47:10,677 - WARN 
[org.springframework.context.support.FileSystemXmlApplicationContext:545] - 
Exception encountered during context initialization - cancelling refresh 
attempt: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'httpClientBuilder' defined in URL 
[file:/home/thorpe/fim/mda/config3.xml]: Error setting property values; 
nested exception is 
org.springframework.beans.NotWritablePropertyException: Invalid property 
'connectionDisregardSslCertificate' of bean class 
[net.shibboleth.utilities.java.support.httpclient.HttpClientBuilder]: 
Bean property 'connectionDisregardSslCertificate' is not writable or has 
an invalid setter method. Does the parameter type of the setter match 
the return type of the getter?
2016-02-12 00:47:10,684 - ERROR 
[net.shibboleth.metadata.cli.SimpleCommandLine:96] - Unable to 
initialize Spring context
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'httpClientBuilder' defined in URL 
[file:/home/thorpe/fim/mda/config3.xml]: Error setting property values; 
nested exception is 
org.springframework.beans.NotWritablePropertyException: Invalid property 
'connectionDisregardSslCertificate' of bean class 
[net.shibboleth.utilities.java.support.httpclient.HttpClientBuilder]: 
Bean property 'connectionDisregardSslCertificate' is not writable or has 
an invalid setter method. Does the parameter type of the setter match 
the return type of the getter?
	at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1518) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:838) 
~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537) 
~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:140) 
~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:84) 
~[spring-context-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
net.shibboleth.metadata.cli.SimpleCommandLine.main(SimpleCommandLine.java:90) 
~[aggregator-cli-0.9.0.jar:na]
Caused by: org.springframework.beans.NotWritablePropertyException: 
Invalid property 'connectionDisregardSslCertificate' of bean class 
[net.shibboleth.utilities.java.support.httpclient.HttpClientBuilder]: 
Bean property 'connectionDisregardSslCertificate' is not writable or has 
an invalid setter method. Does the parameter type of the setter match 
the return type of the getter?
	at 
org.springframework.beans.BeanWrapperImpl.createNotWritablePropertyException(BeanWrapperImpl.java:231) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:423) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:280) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:95) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1514) 
~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
	... 13 common frames omitted



Here is some info on the host OS and environment variables:


[root at fedora20 aggregator-cli-0.9.0]# cat /etc/redhat-release
Fedora release 20 (Heisenbug)


[root at fedora20 aggregator-cli-0.9.0]# uname -a
Linux fedora20 3.17.8-200.fc20.x86_64 #1 SMP Thu Jan 8 23:26:57 UTC 2015 
x86_64 x86_64 x86_64 GNU/Linux


[root at fedora20 aggregator-cli-0.9.0]# printenv
HOSTNAME=fedora20
SHELL=/bin/bash
TERM=xterm-color
HISTSIZE=1000
OLDPWD=/home/thorpe/fim/mda
USER=root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=0
 1
;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
SUDO_USER=thorpe
SUDO_UID=1000
USERNAME=root
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAIL=/var/spool/mail/thorpe
PWD=/home/thorpe/fim/mda/aggregator-cli-0.9.0
LANG=en_US.UTF-8
SHLVL=1
SUDO_COMMAND=/bin/bash
HOME=/root
LOGNAME=root
LESSOPEN=||/usr/bin/lesspipe.sh %s
SUDO_GID=1000
DISPLAY=localhost:10.0
_=/bin/printenv



Thanks,

Steve






More information about the users mailing list