Hi,
I am configuring edge server which connects to a separate machine running
Origin and Edge server. I am getting an exception on the edge server which
says
org.springframework.beans.factory.BeanCreationException: Error creating bean
wit
h name 'red5.core' defined in class path resource [red5.xml]: Instantiation
of b
ean failed; nested exception is
org.springframework.beans.BeanInstantiationExcep
tion: Could not instantiate bean class
[org.springframework.context.support.File
SystemXmlApplicationContext]: Constructor threw exception; nested exception
is o
rg.springframework.beans.factory.BeanCreationException: Error creating bean
with
name 'rtmpTransport' defined in class path resource [red5-edge-core.xml]:
Error
setting property values; nested exception is
org.springframework.beans.NotWrita
blePropertyException: Invalid property 'address' of bean class
[org.red5.server.
net.rtmp.RTMPMinaTransport]: Bean property 'address' is not writable or has
an i
nvalid setter method. Does the parameter type of the setter match the return
typ
e of the getter?
at
org.springframework.beans.factory.support.ConstructorResolver.autowir
eConstructor(ConstructorResolver.java:254)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finish
BeanFactoryInitialization(AbstractApplicationContext.java:728)
at
org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:380)
at org.red5.server.Launcher.launch(Launcher.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:106)
at org.red5.server.Bootstrap.main(Bootstrap.java:50)
Caused by: org.springframework.beans.BeanInstantiationException: Could not
insta
ntiate bean class
[org.springframework.context.support.FileSystemXmlApplicationC
ontext]: Constructor threw exception; nested exception is
org.springframework.be
ans.factory.BeanCreationException: Error creating bean with name
'rtmpTransport'
defined in class path resource [red5-edge-core.xml]: Error setting property
val
ues; nested exception is
org.springframework.beans.NotWritablePropertyException:
Invalid property 'address' of bean class
[org.red5.server.net.rtmp.RTMPMinaTran
sport]: Bean property 'address' 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.BeanUtils.instantiateClass(BeanUtils.java:1
15)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy
.instantiate(SimpleInstantiationStrategy.java:87)
at
org.springframework.beans.factory.support.ConstructorResolver.autowir
eConstructor(ConstructorResolver.java:248)
... 21 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creati
ng bean with name 'rtmpTransport' defined in class path resource
[red5-edge-core
.xml]: Error setting property values; nested exception is
org.springframework.be
ans.NotWritablePropertyException: Invalid property 'address' of bean class
[org.
red5.server.net.rtmp.RTMPMinaTransport]: Bean property 'address' is not
writable
or has an invalid setter method. Does the parameter type of the setter
match th
e return type of the getter?
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finish
BeanFactoryInitialization(AbstractApplicationContext.java:728)
at
org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:380)
at
org.springframework.context.support.FileSystemXmlApplicationContext.<
init>(FileSystemXmlApplicationContext.java:140)
at
org.springframework.context.support.FileSystemXmlApplicationContext.<
init>(FileSystemXmlApplicationContext.java:106)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:1
00)
... 23 more
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
prope
rty 'address' of bean class [org.red5.server.net.rtmp.RTMPMinaTransport]:
Bean p
roperty 'address' is not writable or has an invalid setter method. Does the
para
meter type of the setter match the return type of the getter?
at
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrappe
rImpl.java:801)
at
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrappe
rImpl.java:651)
at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(
AbstractPropertyAccessor.java:78)
at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(
AbstractPropertyAccessor.java:59)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
... 43 more
Bootstrap complete
I have tried to troubleshoot it but I could not resolve it. If anyone knows
how to resolve this exception, kindly let me know. I will be obliged.
cheers,
Murtaza Ali
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org