關於dubbo-admin不能在jdk1.8的環境下執行

瀟兮水寒發表於2018-02-10

在部署linux專案的使用,使用了dubbo的監視器admin,但是發現,在Tomcat上釋出的時候會報錯

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 

於是乎就開始百度,發現這是出現在jdk1.8上才有的問題,然後有的網友進行的反編譯

點選開啟連結

在官方的issues也討論相關問題:https://github.com/alibaba/dubbo/issues/50

於是在linux上切換成了jdk1.7可以輕鬆解決

相關文章