Carolyn Beeton wrote: Carolyn Beeton wrote: > Scott suggested that I add the Alarm Server URL into domain-config, but > I am having a hard time figuring out how to do this, as the Java side > controls the domain-config file. > > The Alarm Server URL looks like this: > _https://example.domain.com:8092_ > > The code builds and tests properly, but fails at runtime with an exception: > > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'domainManagerImpl' defined in class path resource > [org/sipfoundry/sipxconfig/domain/domain.beans.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 > [java.lang.String] for property 'alarmServerUrl'; nested exception is > java.lang.IllegalArgumentException: Method must not be null > > I've attached the files which relate to this. Could someone with some > bean know-how advise on what I'm missing? > <<domain-config-add.diff>> > Thanks, > Carolyn >
> Scott suggested that I add the Alarm Server URL into domain-config, but > I am having a hard time figuring out how to do this, as the Java side > controls the domain-config file. > > The Alarm Server URL looks like this: > _https://example.domain.com:8092_ > > The code builds and tests properly, but fails at runtime with an exception: > > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'domainManagerImpl' defined in class path resource > [org/sipfoundry/sipxconfig/domain/domain.beans.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 > [java.lang.String] for property 'alarmServerUrl'; nested exception is > java.lang.IllegalArgumentException: Method must not be null > > I've attached the files which relate to this. Could someone with some > bean know-how advise on what I'm missing? > <<domain-config-add.diff>> > Thanks, > Carolyn > There is a typo in DomainManagerImpl.java: public void setAlarmServerUr(String alarmServerUrl) setAlarmServerUrl is misspelled, so spring cannot do the injection as the method it is trying to use to inject the property doesn't exist Kevin _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
