dubbo-admin在jdk 1.8上部署出錯問題

今天在linux上部署dubbo-admin-2.5.4,一直報錯:java

ERROR context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uriBrokerService': Cannot create inner bean '(inner bean)' of type [com.alibaba.citrus.service.uribroker.impl.URIBrokerServiceImpl$URIBrokerInfo] while setting bean property 'brokers' with key [0]; nested excepti
on is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#25': Cannot create inner bean 'server' of type [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker] while setting constructor argument; nested exception is org.springframework.beans.fact
ory.BeanCreationException: Error creating bean with name 'server': Error setting property values; nested exception is 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.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)linux

仔細對比了一下部署成功的環境,發現配置沒有什麼不一樣。因而從新下載了一個部署包,也在本身的電腦上安裝了一次,仍是報一樣的錯誤。git

反編譯dubbo的代碼看了一下,發現getter和setter方法確實不是很符合規範:github

折騰了半天,終於在網上找到遇到一樣問題的帖子,見https://github.com/alibaba/dubbo/issues/50spring

從新安裝了jdk 1.7後,問題解決。server

相關文章
相關標籤/搜索