Metadata aggregator: java.lang.IllegalArgumentException.Yeah, but still?

Mehdi Hached mehdi.hached at surfnet.nl
Tue Jan 6 08:12:02 EST 2015


Hi,

I am testing the metadata aggregator command line. I tried the eduGAIN « packaged » version and the basic version (both aggregator-cli-0.8.0).
I tested different tasks (XML config files) with the basic version and the eduGAIN one and I always end up with an incomprehensible error:

[main] ERROR net.shibboleth.metadata.cli.SimpleCommandLine - Unable to initialize Spring context
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validateSignature' defined in URL [file:/opt/aggregator-cli-0.8.0/../eduGAIN-Metadata-Processing/config/UKsimpleConfig.xml]: Cannot create inner bean 'net.shibboleth.ext.spring.factory.X509CertificateFactoryBean#491cc5c9' of type [net.shibboleth.ext.spring.factory.X509CertificateFactoryBean] while setting bean property 'verificationCertificate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'net.shibboleth.ext.spring.factory.X509CertificateFactoryBean#491cc5c9' defined in URL [file:/opt/aggregator-cli-0.8.0/../eduGAIN-Metadata-Processing/config/UKsimpleConfig.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:282)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:121)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'net.shibboleth.ext.spring.factory.X509CertificateFactoryBean#491cc5c9' defined in URL [file:/opt/aggregator-cli-0.8.0/../eduGAIN-Metadata-Processing/config/UKsimpleConfig.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:532)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
Caused by: java.lang.IllegalArgumentException: null
	at org.springframework.asm.ClassReader.<init>(Unknown Source)
	at org.springframework.asm.ClassReader.<init>(Unknown Source)

If I comment out that signature Bean I will get:

[main] ERROR net.shibboleth.metadata.cli.SimpleCommandLine - Unable to initialize Spring context
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serialize' defined in URL [file:/opt/aggregator-cli-0.8.0/../eduGAIN-Metadata-Processing/config/UKsimpleConfig.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:532)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
Caused by: java.lang.IllegalArgumentException: null
	at org.springframework.asm.ClassReader.<init>(Unknown Source)
	at org.springframework.asm.ClassReader.<init>(Unknown Source)

If I comment out the serialize bean It looks like it is working but I have no output to check that and indeed the aggregator do not perform « interesting » things then.

So, lets focus on the basic aggregator client. I run it as root with the command:
# JMVOPTS=-Xmx256M ./mda.sh --logConfig /opt/eduGAIN-Metadata-Processing/config/logback.xml /opt/eduGAIN-Metadata-Processing/config/UKsimpleConfig.xml main

The latter file is attached.

I have enabled the verbose and the log file outputs but have no other elements.
I have checked the URLs, the rights on file system, the paths, the files names and their existence...
I have started simple and added some Beans progressively. It looks like it is related to reading (key/cert) and writing (outputs) things on the filesystem...

Any help or insight would be really appreciated.

Cheers,




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20150106/52c14b33/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config1-1.xml
Type: application/xml
Size: 5081 bytes
Desc: not available
Url : http://shibboleth.net/pipermail/users/attachments/20150106/52c14b33/attachment.rdf 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20150106/52c14b33/attachment-0001.html 


More information about the users mailing list