首页 > 代码库 > 网上下载的dubbo-admin控制台程序启动报错Bean property 'URIType' is not writable

网上下载的dubbo-admin控制台程序启动报错Bean property 'URIType' is not writable

因为linux中使用的是jdk1.8,所以网上直接下载的dubbo-admin.war基本是2.5.4及以下的,如果放入tomcat中启动会报以下错误信息

Caused by: org.springframework.beans.NotWritablePropertyException: Invalid prope

rty ‘URIType‘ of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURI

Broker]: Bean property ‘URIType‘ 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.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)

       ... 50 more

大家自己从github上下载dubbo的源码然后重新打包dubbo-admin之后再部署就不会报错了。我也打包好了一个dubbo-admin文件,这个是支持jdk1.8的,大家去我的资料里即可找到下载。


本文出自 “菜鸟学习” 博客,请务必保留此出处http://biyusheng.blog.51cto.com/2626140/1864838

网上下载的dubbo-admin控制台程序启动报错Bean property 'URIType' is not writable