1. 程式人生 > >Dubbo admin在JDK1.8環境執行報Invalid property 'URIType' of bean class

Dubbo admin在JDK1.8環境執行報Invalid property 'URIType' of bean class

系統環境:java version "1.8.0_11" 64-Bit,apache-tomcat-6.0.37

發生的問題

Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'URIType' of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker]: 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(BeanWrapperImpl.java:801)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.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.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)

... 61 more

原因URIType 的get和set方法寫得不規範。

解決方法降級jdk到1.7。