標籤:dubbo-admin啟動報錯
因為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