•  

jdk1.8部署dubbo-admin时报错,已结解决

2017-12-06

公司框架使用了dubbo这个牛B的框架,有时候想查看一下注册的服务,所以部署了dubbo-admin,自己的环境是jdk1.8,可部署起来的时候,发现报错!信息如下

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) 

解决的办法其实很简单,直接升级dubbo-admin即可了,你可以从下面的地址下载我提供的dubbo-admin即可。

进入下载界面
申明:本文受法律保护,未经作者同意不得用于商业用途,如转载请说明出处!
评论