Emmanuel Lecharny wrote:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ldapService' defined in URL [file:/home/elecharny/apacheds/replication/apacheds/server-xml/target/classes/serverReplication.xml]: Cannot create inner bean '(inner bean)' of type [org.apache.directory.server.ldap.replication.ReplicaPeerConfiguration] while setting bean property 'replicationSystem'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#5' defined in URL [file:/home/elecharny/apacheds/replication/apacheds/server-xml/target/classes/serverReplication.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [org.apache.directory.shared.ldap.name.LdapDN] for property 'principalDN'; nested exception is java.lang.IllegalArgumentException: Original must not be null
Insane, isn't it ?
Absolutely.Insane is spending six weeks hunting down a problem where a set of clustered calculations would intermittently return "different" answers for the same input data, and it turned out that someone, somewhere, had cut and pasted 'singleton="true"' into some bean, somewhere. Disaster.
Spring is just an attempt to turn a strongly typed language (Java) into a weak typed language, which has the effect of moving problems that would have been picked up by your compiler, and moving them to be picked up by your end user instead, in the form of incomprehensible exceptions like the one above.
Regards, Graham --
smime.p7s
Description: S/MIME Cryptographic Signature
